summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorBernd Roemer <bernd@php.net>2001-12-02 17:31:11 +0000
committerBernd Roemer <bernd@php.net>2001-12-02 17:31:11 +0000
commit99639f5812f0e803eea07626084096faec108fe0 (patch)
treeb83c8ce407d34a9b45902dc12b0748cbb1bba7e6 /ext
parent4bffed77698a20d5204da47aaeaf39070e84fc1f (diff)
downloadphp-git-99639f5812f0e803eea07626084096faec108fe0.tar.gz
Allow unserializer_callback_func to be turned off.
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/var_unserializer.c2
-rw-r--r--ext/standard/var_unserializer.re2
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 {