mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
(serialize/unserialize) _sleep_() -> __sleep(), _wakeup_() -> __wakeup() rename.
This commit is contained in:
parent
3092c10e93
commit
e4df84a8da
4
NEWS
4
NEWS
@ -2,11 +2,11 @@ PHP 4.0 NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
|
||||
???, Version 4.0 Release Candidate 1
|
||||
- serialize()/unserialize() now call __sleep() and __wakeup() when
|
||||
working on objects. (Thies)
|
||||
- Fixed a bug in the third argument to define()
|
||||
- Added is_numeric() that returns true if the argument is a number
|
||||
or a numeric string. (Andrei)
|
||||
- serialize()/unserialize() now call _sleep_() and _wakeup_() when
|
||||
working on objects. (Thies)
|
||||
- renamed to_string() method to _string_value_() for consistency.
|
||||
(Thies, Zend library)
|
||||
- domxml now supports libxml 2.0 Beta and drops support for older versions,
|
||||
|
@ -253,7 +253,7 @@ void php_var_serialize(pval *buf, pval **struc)
|
||||
CLS_FETCH();
|
||||
|
||||
MAKE_STD_ZVAL(fname);
|
||||
ZVAL_STRING(fname,"_sleep_",1);
|
||||
ZVAL_STRING(fname,"__sleep",1);
|
||||
|
||||
res = call_user_function_ex(CG(function_table), *struc, fname, &retval_ptr, 0, 0, 1);
|
||||
|
||||
@ -563,7 +563,7 @@ int php_var_unserialize(pval **rval, const char **p, const char *max)
|
||||
CLS_FETCH();
|
||||
|
||||
MAKE_STD_ZVAL(fname);
|
||||
ZVAL_STRING(fname,"_wakeup_",1);
|
||||
ZVAL_STRING(fname,"__wakeup",1);
|
||||
|
||||
call_user_function_ex(CG(function_table), *rval, fname, &retval_ptr, 0, 0, 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user