]> granicus.if.org Git - php/commitdiff
- Damn. It wasn't a correct fix. This should do it.
authorAndi Gutmans <andi@php.net>
Thu, 26 Aug 1999 07:33:53 +0000 (07:33 +0000)
committerAndi Gutmans <andi@php.net>
Thu, 26 Aug 1999 07:33:53 +0000 (07:33 +0000)
  When the zval ** are equal we don't want to assign_ref, in any other case
  I can think of we do want to assign_ref.

Zend/zend_execute_API.c

index 6eacb7419f32e61a058b7f659751b6999d8cf2e7..993cd3924f34bfe885c8d0943adceb5ccd6292cf 100644 (file)
@@ -471,7 +471,7 @@ ZEND_API inline void zend_assign_to_variable_reference(znode *result, zval **var
        if (variable_ptr == EG(error_zval_ptr) || value_ptr==EG(error_zval_ptr)) {
                variable_ptr_ptr = &EG(uninitialized_zval_ptr);
 //     } else if (variable_ptr==&EG(uninitialized_zval) || variable_ptr!=value_ptr) {
-       } else if (variable_ptr != value_ptr) {
+       } else if (variable_ptr_ptr != value_ptr_ptr) {
                variable_ptr->refcount--;
                if (variable_ptr->refcount==0) {
                        zendi_zval_dtor(*variable_ptr);