cvs: /php4 NEWS /php4/ext/standard var.c
| From: | Thies C. Arntzen | Date: | Sat, 18 Mar 2000 15:04:02 +0000 |
| Subject: | cvs: /php4 NEWS /php4/ext/standard var.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-12357@lists.php.net to get a copy of this message | ||
thies Sat Mar 18 07:04:02 2000 EDT
Modified files:
/php4 NEWS
/php4/ext/standard var.c
Log:
(serialize/unserialize) _sleep_() -> __sleep(), _wakeup_() -> __wakeup() rename.
Index: php4/NEWS
diff -u php4/NEWS:1.174 php4/NEWS:1.175
--- php4/NEWS:1.174 Sat Mar 18 06:51:58 2000
+++ php4/NEWS Sat Mar 18 07:04:01 2000
@@ -2,11 +2,11 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
???, 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,
Index: php4/ext/standard/var.c
diff -u php4/ext/standard/var.c:1.51 php4/ext/standard/var.c:1.52
--- php4/ext/standard/var.c:1.51 Thu Mar 16 10:24:43 2000
+++ php4/ext/standard/var.c Sat Mar 18 07:04:02 2000
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: var.c,v 1.51 2000/03/16 18:24:43 rubys Exp $ */
+/* $Id: var.c,v 1.52 2000/03/18 15:04:02 thies Exp $ */
/* {{{ includes
@@ -253,7 +253,7 @@
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 @@
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);