Skip to content

Commit 4cfee3e

Browse files
committed
Add comments
1 parent a246807 commit 4cfee3e

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

UPGRADING

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ PHP 8.6 UPGRADE NOTES
101101
5. Changed Functions
102102
========================================
103103

104+
- mysqli:
105+
. The return structure of mysqli_get_charset() no longer contains
106+
the undocumented "comment" element. The value of "charsetnr" is
107+
now set to a constant 0 as this number was an implementation detail
108+
that should not have been exposed to the public.
109+
104110
- OpenSSL:
105111
. Output of openssl_x509_parse() contains criticalExtensions listing all
106112
critical certificate extensions.

ext/mysqli/mysqli_nonapi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -988,11 +988,11 @@ PHP_FUNCTION(mysqli_get_charset)
988988

989989
add_property_string(return_value, "charset", (name) ? (char *)name : "");
990990
add_property_string(return_value, "collation",(collation) ? (char *)collation : "");
991-
add_property_string(return_value, "dir", "");
991+
add_property_string(return_value, "dir", ""); /* Kept for backward compatibility */
992992
add_property_long(return_value, "min_length", minlength);
993993
add_property_long(return_value, "max_length", maxlength);
994-
add_property_long(return_value, "number", 0);
995-
add_property_long(return_value, "state", 1);
994+
add_property_long(return_value, "number", 0); /* Kept for backward compatibility */
995+
add_property_long(return_value, "state", 1); /* Kept for backward compatibility */
996996
}
997997
/* }}} */
998998

0 commit comments

Comments
 (0)