com php-src: Reorder conditions: Zend/zend_object_handlers .c

From: Date: Tue, 19 Feb 2019 23:33:21 +0000
Subject: com php-src: Reorder conditions: Zend/zend_object_handlers .c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-104754@lists.php.net to get a copy of this message
Commit: a7c99f3dc52b16f4077819d75a30feb214bbd1c0 Author: Dmitry Stogov <dmitry@zend.com> Wed, 20 Feb 2019 02:33:21 +0300 Parents: f2e515e9eb78b09ecaed057241e7a43bf2d9f883 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a7c99f3dc52b16f4077819d75a30feb214bbd1c0 Log: Reorder conditions Changed paths: M Zend/zend_object_handlers.c Diff: diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 5339376..8a75c51 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -1416,7 +1416,7 @@ ZEND_API void zend_class_init_statics(zend_class_entry *class_type) /* {{{ */ int i; zval *p; - if (!CE_STATIC_MEMBERS(class_type) && class_type->default_static_members_count) { + if (class_type->default_static_members_count && !CE_STATIC_MEMBERS(class_type)) { if (class_type->parent) { zend_class_init_statics(class_type->parent); }

« previous php.cvs (#104754) next »