diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-03-14 14:01:45 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-03-14 14:01:45 +0300 |
commit | 1af60a2a7127cd8a366f614b43566123c1dcc80a (patch) | |
tree | 303bf4026ad283e43159dd699fb6c67bd484b3d0 /ext/zip/php_zip.c | |
parent | 12baec3dfa10a4ae87d90b0c785403d5b2303230 (diff) | |
download | php-git-1af60a2a7127cd8a366f614b43566123c1dcc80a.tar.gz |
Keep initialized object_handlers structures in read-only memory.
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r-- | ext/zip/php_zip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 6e19b16480..afb033f130 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -878,7 +878,7 @@ static zval *php_zip_get_property_ptr_ptr(zval *object, zval *member, int type, zval tmp_member; zval *retval = NULL; zip_prop_handler *hnd = NULL; - zend_object_handlers *std_hnd; + const zend_object_handlers *std_hnd; if (Z_TYPE_P(member) != IS_STRING) { ZVAL_STR(&tmp_member, zval_get_string_func(member)); @@ -911,7 +911,7 @@ static zval *php_zip_read_property(zval *object, zval *member, int type, void ** zval tmp_member; zval *retval = NULL; zip_prop_handler *hnd = NULL; - zend_object_handlers *std_hnd; + const zend_object_handlers *std_hnd; if (Z_TYPE_P(member) != IS_STRING) { ZVAL_STR(&tmp_member, zval_get_string_func(member)); @@ -948,7 +948,7 @@ static int php_zip_has_property(zval *object, zval *member, int type, void **cac ze_zip_object *obj; zval tmp_member; zip_prop_handler *hnd = NULL; - zend_object_handlers *std_hnd; + const zend_object_handlers *std_hnd; int retval = 0; if (Z_TYPE_P(member) != IS_STRING) { |