com php-src: rename function so it makes sense: Zend/zend_API .c Zend/zend_API.h Zend/zend_compile.c

From: Date: Sun, 06 Mar 2016 19:10:01 +0000
Subject: com php-src: rename function so it makes sense: Zend/zend_API .c Zend/zend_API.h Zend/zend_compile.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95633@lists.php.net to get a copy of this message
Commit: 37e169cda66ee1741f8a78e9216065d666d533a9 Author: Joe Watkins <krakjoe@php.net> Sun, 6 Mar 2016 19:10:01 +0000 Parents: 8c51aacd1fe32c93e844928f80c3f4219666eb7f Branches: typed_ref_properties Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=37e169cda66ee1741f8a78e9216065d666d533a9 Log: rename function so it makes sense Changed paths: M Zend/zend_API.c M Zend/zend_API.h M Zend/zend_compile.c Diff: diff --git a/Zend/zend_API.c b/Zend/zend_API.c index cd542a6..96ca7ed 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -3606,7 +3606,7 @@ ZEND_API const char *zend_get_module_version(const char *module_name) /* {{{ */ } /* }}} */ -ZEND_API int zend_declare_typed_property_ex(zend_class_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment, zend_uchar optional_type, zend_string *optional_type_name) /* {{{ */ +ZEND_API int zend_declare_typed_property(zend_class_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment, zend_uchar optional_type, zend_string *optional_type_name) /* {{{ */ { zend_property_info *property_info, *property_info_ptr; @@ -3692,7 +3692,7 @@ ZEND_API int zend_declare_typed_property_ex(zend_class_entry *ce, zend_string *n ZEND_API int zend_declare_property_ex(zend_class_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment) /* {{{ */ { - return zend_declare_typed_property_ex(ce, name, property, access_type, doc_comment, 0, NULL); + return zend_declare_typed_property(ce, name, property, access_type, doc_comment, 0, NULL); } /* }}} */ diff --git a/Zend/zend_API.h b/Zend/zend_API.h index e4fe6e4..b25ef86 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -314,7 +314,9 @@ ZEND_API zend_bool zend_is_callable(zval *callable, uint check_flags, zend_strin ZEND_API zend_bool zend_make_callable(zval *callable, zend_string **callable_name); ZEND_API const char *zend_get_module_version(const char *module_name); ZEND_API int zend_get_module_started(const char *module_name); -ZEND_API int zend_declare_typed_property_ex(zend_class_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment, zend_uchar type, zend_string *type_name); + +ZEND_API int zend_declare_typed_property(zend_class_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment, zend_uchar type, zend_string *type_name); + ZEND_API int zend_declare_property_ex(zend_class_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment); ZEND_API int zend_declare_property(zend_class_entry *ce, const char *name, size_t name_length, zval *property, int access_type); ZEND_API int zend_declare_property_null(zend_class_entry *ce, const char *name, size_t name_length, int access_type); diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index b27896e..cbda5c1 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -5379,7 +5379,7 @@ void zend_compile_prop_decl(zend_ast *ast) /* {{{ */ name = zend_new_interned_string_safe(name); if (optional_type) { - zend_declare_typed_property_ex(ce, name, &value_zv, flags, doc_comment, optional_type, optional_type_name); + zend_declare_typed_property(ce, name, &value_zv, flags, doc_comment, optional_type, optional_type_name); } else zend_declare_property_ex(ce, name, &value_zv, flags, doc_comment); } }

« previous php.cvs (#95633) next »