@@ -3515,7 +3515,7 @@ static zend_always_inline zend_bool is_persistent_class(zend_class_entry *ce) {
35153515 && ce -> info .internal .module -> type == MODULE_PERSISTENT ;
35163516}
35173517
3518- ZEND_API int zend_declare_typed_property (zend_class_entry * ce , zend_string * name , zval * property , int access_type , zend_string * doc_comment , HashTable * attributes , zend_type type ) /* {{{ */
3518+ ZEND_API zend_property_info * zend_declare_typed_property (zend_class_entry * ce , zend_string * name , zval * property , int access_type , zend_string * doc_comment , zend_type type ) /* {{{ */
35193519{
35203520 zend_property_info * property_info , * property_info_ptr ;
35213521
@@ -3608,13 +3608,13 @@ ZEND_API int zend_declare_typed_property(zend_class_entry *ce, zend_string *name
36083608 property_info -> name = zend_new_interned_string (property_info -> name );
36093609 property_info -> flags = access_type ;
36103610 property_info -> doc_comment = doc_comment ;
3611- property_info -> attributes = attributes ;
3611+ property_info -> attributes = NULL ;
36123612 property_info -> ce = ce ;
36133613 property_info -> type = type ;
36143614
36153615 zend_hash_update_ptr (& ce -> properties_info , name , property_info );
36163616
3617- return SUCCESS ;
3617+ return property_info ;
36183618}
36193619/* }}} */
36203620
@@ -3745,16 +3745,17 @@ ZEND_API int zend_try_assign_typed_ref_zval_ex(zend_reference *ref, zval *zv, ze
37453745}
37463746/* }}} */
37473747
3748- ZEND_API int zend_declare_property_ex (zend_class_entry * ce , zend_string * name , zval * property , int access_type , zend_string * doc_comment , HashTable * attributes ) /* {{{ */
3748+ ZEND_API int zend_declare_property_ex (zend_class_entry * ce , zend_string * name , zval * property , int access_type , zend_string * doc_comment ) /* {{{ */
37493749{
3750- return zend_declare_typed_property (ce , name , property , access_type , doc_comment , attributes , (zend_type ) ZEND_TYPE_INIT_NONE (0 ));
3750+ zend_declare_typed_property (ce , name , property , access_type , doc_comment , (zend_type ) ZEND_TYPE_INIT_NONE (0 ));
3751+ return SUCCESS ;
37513752}
37523753/* }}} */
37533754
37543755ZEND_API int zend_declare_property (zend_class_entry * ce , const char * name , size_t name_length , zval * property , int access_type ) /* {{{ */
37553756{
37563757 zend_string * key = zend_string_init (name , name_length , is_persistent_class (ce ));
3757- int ret = zend_declare_property_ex (ce , key , property , access_type , NULL , NULL );
3758+ int ret = zend_declare_property_ex (ce , key , property , access_type , NULL );
37583759 zend_string_release (key );
37593760 return ret ;
37603761}
@@ -3814,7 +3815,7 @@ ZEND_API int zend_declare_property_stringl(zend_class_entry *ce, const char *nam
38143815}
38153816/* }}} */
38163817
3817- ZEND_API int zend_declare_class_constant_ex (zend_class_entry * ce , zend_string * name , zval * value , int access_type , zend_string * doc_comment , HashTable * attributes ) /* {{{ */
3818+ ZEND_API zend_class_constant * zend_declare_class_constant_ex (zend_class_entry * ce , zend_string * name , zval * value , int access_type , zend_string * doc_comment ) /* {{{ */
38183819{
38193820 zend_class_constant * c ;
38203821
@@ -3841,7 +3842,7 @@ ZEND_API int zend_declare_class_constant_ex(zend_class_entry *ce, zend_string *n
38413842 ZVAL_COPY_VALUE (& c -> value , value );
38423843 Z_ACCESS_FLAGS (c -> value ) = access_type ;
38433844 c -> doc_comment = doc_comment ;
3844- c -> attributes = attributes ;
3845+ c -> attributes = NULL ;
38453846 c -> ce = ce ;
38463847 if (Z_TYPE_P (value ) == IS_CONSTANT_AST ) {
38473848 ce -> ce_flags &= ~ZEND_ACC_CONSTANTS_UPDATED ;
@@ -3852,24 +3853,22 @@ ZEND_API int zend_declare_class_constant_ex(zend_class_entry *ce, zend_string *n
38523853 "Cannot redefine class constant %s::%s" , ZSTR_VAL (ce -> name ), ZSTR_VAL (name ));
38533854 }
38543855
3855- return SUCCESS ;
3856+ return c ;
38563857}
38573858/* }}} */
38583859
38593860ZEND_API int zend_declare_class_constant (zend_class_entry * ce , const char * name , size_t name_length , zval * value ) /* {{{ */
38603861{
3861- int ret ;
3862-
38633862 zend_string * key ;
38643863
38653864 if (ce -> type == ZEND_INTERNAL_CLASS ) {
38663865 key = zend_string_init_interned (name , name_length , 1 );
38673866 } else {
38683867 key = zend_string_init (name , name_length , 0 );
38693868 }
3870- ret = zend_declare_class_constant_ex (ce , key , value , ZEND_ACC_PUBLIC , NULL , NULL );
3869+ zend_declare_class_constant_ex (ce , key , value , ZEND_ACC_PUBLIC , NULL );
38713870 zend_string_release (key );
3872- return ret ;
3871+ return SUCCESS ;
38733872}
38743873/* }}} */
38753874
0 commit comments