summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2015-07-15 09:59:31 -0700
committerRasmus Lerdorf <rasmus@php.net>2015-07-15 09:59:31 -0700
commit73773c2175c88a3171236fc0ffce85b0efcd65fa (patch)
tree891aba8308ed1a04e986b34d7fa18d2f817dea84
parentd0bea17d2ed97d889f919e92b93f922b4dff8e9e (diff)
downloadphp-git-73773c2175c88a3171236fc0ffce85b0efcd65fa.tar.gz
unserialize() takes a 2nd optional arg and it can't be a bool
-rw-r--r--ext/standard/basic_functions.c3
-rw-r--r--ext/standard/var.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 1d5e1dd7b2..488b71b900 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -2653,8 +2653,9 @@ ZEND_BEGIN_ARG_INFO(arginfo_serialize, 0)
ZEND_ARG_INFO(0, var)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO(arginfo_unserialize, 0)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_unserialize, 0, 0, 1)
ZEND_ARG_INFO(0, variable_representation)
+ ZEND_ARG_INFO(0, allowed_classes)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_memory_get_usage, 0, 0, 0)
diff --git a/ext/standard/var.c b/ext/standard/var.c
index 055110382b..b1f368f0c3 100644
--- a/ext/standard/var.c
+++ b/ext/standard/var.c
@@ -994,7 +994,7 @@ PHP_FUNCTION(serialize)
}
/* }}} */
-/* {{{ proto mixed unserialize(string variable_representation[, bool|array allowed_classes])
+/* {{{ proto mixed unserialize(string variable_representation[, array allowed_classes])
Takes a string representation of variable and recreates it */
PHP_FUNCTION(unserialize)
{