mirror of
https://github.com/php/php-src.git
synced 2026-04-06 15:43:13 +02:00
- fix bug #60879, unserialize does not invoke __wakeup
This commit is contained in:
2
NEWS
2
NEWS
@@ -13,6 +13,8 @@ PHP NEWS
|
||||
default (Stas).
|
||||
. Fixed bug #60965 (Buffer overflow on htmlspecialchars/entities with
|
||||
$double=false). (Gustavo)
|
||||
. Fixed bug #60879 (unserialize() Does not invoke __wakeup() on object).
|
||||
(Pierre, Steve)
|
||||
. Fixed output layer compat function not passing along input buffer with
|
||||
php_output_context_pass() if the output_handler_func does not set out_str
|
||||
(releaze3 at gmail dot com, Mike)
|
||||
|
||||
@@ -375,6 +375,9 @@ static inline long object_common1(UNSERIALIZE_PARAMETER, zend_class_entry *ce)
|
||||
return elements;
|
||||
}
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
# pragma optimize("", off)
|
||||
#endif
|
||||
static inline int object_common2(UNSERIALIZE_PARAMETER, long elements)
|
||||
{
|
||||
zval *retval_ptr = NULL;
|
||||
@@ -399,6 +402,9 @@ static inline int object_common2(UNSERIALIZE_PARAMETER, long elements)
|
||||
return finish_nested_data(UNSERIALIZE_PASSTHRU);
|
||||
|
||||
}
|
||||
#ifdef PHP_WIN32
|
||||
# pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
|
||||
{
|
||||
|
||||
@@ -379,6 +379,9 @@ static inline long object_common1(UNSERIALIZE_PARAMETER, zend_class_entry *ce)
|
||||
return elements;
|
||||
}
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
# pragma optimize("", off)
|
||||
#endif
|
||||
static inline int object_common2(UNSERIALIZE_PARAMETER, long elements)
|
||||
{
|
||||
zval *retval_ptr = NULL;
|
||||
@@ -403,6 +406,9 @@ static inline int object_common2(UNSERIALIZE_PARAMETER, long elements)
|
||||
return finish_nested_data(UNSERIALIZE_PASSTHRU);
|
||||
|
||||
}
|
||||
#ifdef PHP_WIN32
|
||||
# pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user