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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user