cvs: php4 / NEWS /ext/overload overload.c
| From: | Andrei Zmievski | Date: | Wed, 12 Jun 2002 16:46:27 +0000 |
| Subject: | cvs: php4 / NEWS /ext/overload overload.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12330@lists.php.net to get a copy of this message | ||
andrei Wed Jun 12 12:46:27 2002 EDT
Modified files:
/php4 NEWS
/php4/ext/overload overload.c
Log:
Properly return the result of __call() handler.
Index: php4/NEWS
diff -u php4/NEWS:1.1009 php4/NEWS:1.1010
--- php4/NEWS:1.1009 Tue Jun 11 20:43:38 2002
+++ php4/NEWS Wed Jun 12 12:46:20 2002
@@ -1,8 +1,10 @@
PHP 4 NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2002, Version 4.3.0
-- Impelemented timeout functionality, and fixed error handling of fsockopen() on win32
-- Add --with-mysql-sock option (James Cox)
+- Fixed a memory corruption bug in overload extension. (Andrei)
+- Impelemented timeout functionality, and fixed error handling of fsockopen()
+ on win32.
+- Add --with-mysql-sock option. (James Cox)
- Fixed shuffle() to provide equal distribution of values. (Andrei)
- Added --with-mysql-sock configure option which can be used to override
the unix socket location. (e.g. NFS compiles, etc.) (James Cox)
Index: php4/ext/overload/overload.c
diff -u php4/ext/overload/overload.c:1.18 php4/ext/overload/overload.c:1.19
--- php4/ext/overload/overload.c:1.18 Tue Apr 30 19:34:09 2002
+++ php4/ext/overload/overload.c Wed Jun 12 12:46:24 2002
@@ -601,9 +601,9 @@
return;
}
- *return_value = *retval;
- INIT_PZVAL(return_value);
- FREE_ZVAL(retval);
+ return_value->value = retval->value;
+ zval_copy_ctor(return_value);
+ zval_ptr_dtor(&retval);
}
efree(args);