diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/var_unserializer.c | 2 | ||||
| -rw-r--r-- | ext/standard/var_unserializer.re | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/var_unserializer.c b/ext/standard/var_unserializer.c index 5aa3bc8cb2..7cc465d01e 100644 --- a/ext/standard/var_unserializer.c +++ b/ext/standard/var_unserializer.c @@ -393,7 +393,7 @@ yy20: } if (zend_hash_find(CG(class_table), class_name, len2 + 1, (void **) &ce) != SUCCESS) { - if (PG(unserialize_callback_func) == NULL) { + if ((PG(unserialize_callback_func) == NULL) || (PG(unserialize_callback_func)[0] == '\0')) { incomplete_class = 1; ce = PHP_IC_ENTRY; } else { diff --git a/ext/standard/var_unserializer.re b/ext/standard/var_unserializer.re index 92087e0fc3..8820baa113 100644 --- a/ext/standard/var_unserializer.re +++ b/ext/standard/var_unserializer.re @@ -356,7 +356,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER) } if (zend_hash_find(CG(class_table), class_name, len2 + 1, (void **) &ce) != SUCCESS) { - if (PG(unserialize_callback_func) == NULL) { + if ((PG(unserialize_callback_func) == NULL) || (PG(unserialize_callback_func)[0] == '\0')) { incomplete_class = 1; ce = PHP_IC_ENTRY; } else { |
