(serialize/unserialize) _sleep_() -> __sleep(), _wakeup_() -> __wakeup() rename.

This commit is contained in:
Thies C. Arntzen 2000-03-18 15:04:02 +00:00
parent 3092c10e93
commit e4df84a8da
2 changed files with 4 additions and 4 deletions

4
NEWS
View File

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

View File

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