Skip to content

Commit

Permalink
Regenerate test extension
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Jan 16, 2020
1 parent e353eb2 commit a0583ef
Show file tree
Hide file tree
Showing 21 changed files with 193 additions and 70 deletions.
16 changes: 16 additions & 0 deletions ext/kernel/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,22 @@ int zephir_update_static_property_ce(zend_class_entry *ce, const char *property_
//#endif
}

int zephir_add_static_property_ce(zend_class_entry *ce, const char *property_name, uint32_t property_length, zval *value)
{
zval tmp_value, new_value;
zephir_read_static_property_ce(&tmp_value, ce, property_name, property_length, PH_NOISY | PH_READONLY);
zephir_add_function(&new_value, &tmp_value, value);
return zend_update_static_property(ce, property_name, property_length, &new_value);
}

int zephir_sub_static_property_ce(zend_class_entry *ce, const char *property_name, uint32_t property_length, zval *value)
{
zval tmp_value, new_value;
zephir_read_static_property_ce(&tmp_value, ce, property_name, property_length, PH_NOISY | PH_READONLY);
zephir_sub_function(&new_value, &tmp_value, value);
return zend_update_static_property(ce, property_name, property_length, &new_value);
}

/*
* Multiple array-offset update
*/
Expand Down
2 changes: 2 additions & 0 deletions ext/kernel/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ int zephir_unset_property_array(zval *object, char *property, unsigned int prope
/** Static properties */
int zephir_read_static_property_ce(zval *result, zend_class_entry *ce, const char *property, int len, int flags);
int zephir_update_static_property_ce(zend_class_entry *ce, const char *property, uint32_t len, zval *value);
int zephir_add_static_property_ce(zend_class_entry *ce, const char *property, uint32_t len, zval *value);
int zephir_sub_static_property_ce(zend_class_entry *ce, const char *property, uint32_t len, zval *value);
int zephir_update_static_property_array_multi_ce(zend_class_entry *ce, const char *property, uint32_t property_length, zval *value, const char *types, int types_length, int types_count, ...);

/** Create closures */
Expand Down
2 changes: 1 addition & 1 deletion ext/php_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define PHP_TEST_VERSION "1.0.0"
#define PHP_TEST_EXTNAME "test"
#define PHP_TEST_AUTHOR "Phalcon Team and contributors"
#define PHP_TEST_ZEPVERSION "0.12.15-$Id$"
#define PHP_TEST_ZEPVERSION "0.12.16-$Id$"
#define PHP_TEST_DESCRIPTION "Description <b>test</b> for<br/>Test Extension."

typedef struct _zephir_struct_db {
Expand Down
32 changes: 15 additions & 17 deletions ext/test/oo/oodestruct.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ext/test/optimizers/strreplace.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ext/test/properties/propertyarray.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 97 additions & 0 deletions ext/test/properties/staticpublicproperties.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions ext/test/properties/staticpublicproperties.zep.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ext/test/quantum.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ext/test/range.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ext/test/regexdna.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ext/test/requires.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a0583ef

Please sign in to comment.