com php-src: squish branches: Zend/zend_API.c

From: Date: Wed, 09 Mar 2016 13:21:20 +0000
Subject: com php-src: squish branches: Zend/zend_API.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95698@lists.php.net to get a copy of this message
Commit: 1d8a9d7e38f54de99fcf568f6dd741e626a99e8d Author: Joe Watkins <krakjoe@php.net> Wed, 9 Mar 2016 13:21:20 +0000 Parents: fa835f34936c4bfae2891b50d94a86a44f9122a5 Branches: typed_ref_properties Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1d8a9d7e38f54de99fcf568f6dd741e626a99e8d Log: squish branches Changed paths: M Zend/zend_API.c Diff: diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 5dea8f1..1cc7fda 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -3624,7 +3624,7 @@ ZEND_API int zend_declare_typed_property(zend_class_entry *ce, zend_string *name if (optional_type) { switch (Z_TYPE_P(property)) { - case IS_UNDEF: + case IS_UNDEF: case IS_CONSTANT: case IS_CONSTANT_AST: break; @@ -3641,6 +3641,7 @@ ZEND_API int zend_declare_typed_property(zend_class_entry *ce, zend_string *name } } } + ce->ce_flags |= ZEND_ACC_HAS_TYPE_HINTS; } if (Z_ISUNDEF_P(property)) { @@ -3708,10 +3709,6 @@ ZEND_API int zend_declare_typed_property(zend_class_entry *ce, zend_string *name zend_hash_update_ptr(&ce->properties_info, name, property_info); - if (property_info->type) { - ce->ce_flags |= ZEND_ACC_HAS_TYPE_HINTS; - } - return SUCCESS; } /* }}} */

« previous php.cvs (#95698) next »