cvs: ZendEngine2(PHP_5_0) / zend_execute_API.c /tests bug30140.phpt php-src NEWS
| From: | Dmitry Stogov | Date: | Wed, 08 Jun 2005 13:21:01 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_0) / zend_execute_API.c /tests bug30140.phpt php-src NEWS | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3759@lists.php.net to get a copy of this message | ||
dmitry Wed Jun 8 09:21:01 2005 EDT
Added files: (Branch: PHP_5_0)
/ZendEngine2/tests bug30140.phpt
Modified files:
/php-src NEWS
/ZendEngine2 zend_execute_API.c
Log:
Fixed bug #30140 (Problem with array in static properties)
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1760.2.427&r2=1.1760.2.428&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1760.2.427 php-src/NEWS:1.1760.2.428
--- php-src/NEWS:1.1760.2.427 Wed Jun 8 04:05:17 2005
+++ php-src/NEWS Wed Jun 8 09:20:57 2005
@@ -143,6 +143,7 @@
array_push()). (Dmitry)
- Fixed bug #30162 (Catching exception in constructor causes lose of $this).
(Dmitry)
+- Fixed bug #30140 (Problem with array in static properties). (Dmitry)
- Fixed bug #30126 (Enhancement for error message for abstract classes).
(Marcus)
- Fixed bug #30080 (Passing array or non array of objects). (Dmitry)
http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.287.2.18&r2=1.287.2.19&ty=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.287.2.18 ZendEngine2/zend_execute_API.c:1.287.2.19
--- ZendEngine2/zend_execute_API.c:1.287.2.18 Mon Jun 6 05:50:07 2005
+++ ZendEngine2/zend_execute_API.c Wed Jun 8 09:21:00 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute_API.c,v 1.287.2.18 2005/06/06 09:50:07 dmitry Exp $ */
+/* $Id: zend_execute_API.c,v 1.287.2.19 2005/06/08 13:21:00 dmitry Exp $ */
#include <stdio.h>
#include <signal.h>
@@ -437,11 +437,13 @@
if (p->type == IS_CONSTANT) {
int refcount;
+ zend_uchar is_ref;
- SEPARATE_ZVAL(pp);
+ SEPARATE_ZVAL_IF_NOT_REF(pp);
p = *pp;
refcount = p->refcount;
+ is_ref = p->is_ref;
if (!zend_get_constant(p->value.str.val, p->value.str.len, &const_value TSRMLS_CC)) {
zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'",
@@ -458,15 +460,15 @@
*p = const_value;
}
- INIT_PZVAL(p);
p->refcount = refcount;
+ p->is_ref = is_ref;
} else if (p->type == IS_CONSTANT_ARRAY) {
zval **element, *new_val;
char *str_index;
uint str_index_len;
ulong num_index;
- SEPARATE_ZVAL(pp);
+ SEPARATE_ZVAL_IF_NOT_REF(pp);
p = *pp;
p->type = IS_ARRAY;
http://cvs.php.net/co.php/ZendEngine2/tests/bug30140.phpt?r=1.1&p=1
Index: ZendEngine2/tests/bug30140.phpt
+++ ZendEngine2/tests/bug30140.phpt