1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00

unserialize() takes a 2nd optional arg and it can't be a bool

This commit is contained in:
Rasmus Lerdorf
2015-07-15 09:59:31 -07:00
parent d0bea17d2e
commit 73773c2175
2 changed files with 3 additions and 2 deletions

View File

@@ -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)

View File

@@ -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)
{