Zend: Normalize empty string to NULL in OnUpdateStrNotEmpty - #23085
Zend: Normalize empty string to NULL in OnUpdateStrNotEmpty#23085arshidkv12 wants to merge 3 commits into
Conversation
|
This fixes the reported symptom, but
On master that It should also fail
- STD_PHP_INI_ENTRY("unserialize_callback_func", NULL, PHP_INI_ALL, OnUpdateStrNotEmpty, unserialize_callback_func, php_core_globals, core_globals)
+ STD_PHP_INI_ENTRY("unserialize_callback_func", NULL, PHP_INI_ALL, OnUpdateStr, unserialize_callback_func, php_core_globals, core_globals) /* Check for unserialize callback */
- if (PG(unserialize_callback_func) == NULL) {
+ if (PG(unserialize_callback_func) == NULL || ZSTR_LEN(PG(unserialize_callback_func)) == 0) {
incomplete_class = 1;
ce = PHP_IC_ENTRY;
break;
}The second hunk restores the empty check c82acef dropped, since I built and checked that: the GH-23082 reproducer matches 8.5 output, Your |
Zend: Normalize empty string to NULL in OnUpdateStrNotEmpty Zend: Normalize empty string to NULL in OnUpdateStrNotEmpty Zend: Normalize empty string to NULL in OnUpdateStrNotEmpty Zend: Normalize empty string to NULL in OnUpdateStrNotEmpty
4dbdf51 to
7e048fb
Compare
|
Thanks! You're right. Changing OnUpdateStrNotEmpty affects unrelated INI directives. Switching only |
|
Ok. Thank you |
#23082