]> granicus.if.org Git - php/commitdiff
Let's only read-only here
authorXinchen Hui <laruence@gmail.com>
Tue, 17 May 2016 10:07:20 +0000 (18:07 +0800)
committerXinchen Hui <laruence@gmail.com>
Tue, 17 May 2016 10:07:20 +0000 (18:07 +0800)
ext/standard/var.c

index 4f94ec34cb0641e91ec4635a54ebbbc030f2cc92..472cd62d8f57bca6815a81c87bb80913f5425513 100644 (file)
@@ -958,7 +958,7 @@ again:
                                        }
 
                                        if (Z_ISREF_P(data) && Z_REFCOUNT_P(data) == 1) {
-                                               ZVAL_UNREF(data);
+                                               data = Z_REFVAL_P(data);
                                        }
 
                                        /* we should still add element even if it's not OK,