]> granicus.if.org Git - php/commitdiff
- Fix problem Thies reported. We by mistake separated variables which were
authorAndi Gutmans <andi@php.net>
Tue, 30 Nov 1999 17:10:11 +0000 (17:10 +0000)
committerAndi Gutmans <andi@php.net>
Tue, 30 Nov 1999 17:10:11 +0000 (17:10 +0000)
  being fetched for read only.

Zend/zend_execute.c

index 80f325fb2171b4521d892a231509bb8fe7aa7d05..edfcc396febe64438957e2bbcfe5fd2686f28a66 100644 (file)
@@ -688,7 +688,7 @@ static inline void zend_fetch_dimension_address(znode *result, znode *op1, znode
                                                convert_to_long(&tmp);
                                                offset = &tmp;
                                        }
-                                       if (!container->is_ref) {
+                                       if (!container->is_ref && type!=BP_VAR_R) {
                                                SEPARATE_ZVAL(container_ptr);
                                        }
                                        container = *container_ptr;