]> granicus.if.org Git - php/commitdiff
Correct the location
authorXinchen Hui <laruence@gmail.com>
Sat, 27 May 2017 04:11:53 +0000 (12:11 +0800)
committerXinchen Hui <laruence@gmail.com>
Sat, 27 May 2017 04:11:53 +0000 (12:11 +0800)
Zend/zend_API.c

index 4f9f4f9b4607be34985c65586799d22ff5b8d4a8..43c6209ba401504127c146c73a25de8a8ede5484 100644 (file)
@@ -1160,10 +1160,9 @@ ZEND_API int zend_update_class_constants(zend_class_entry *class_type) /* {{{ */
 
                        *scope = old_scope;
                }
+               class_type->ce_flags |= ZEND_ACC_CONSTANTS_UPDATED;
        }
 
-       class_type->ce_flags |= ZEND_ACC_CONSTANTS_UPDATED;
-
        return SUCCESS;
 }
 /* }}} */