summaryrefslogtreecommitdiff
path: root/ext/zip/zip_stream.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-12-14 22:14:36 +0300
committerDmitry Stogov <dmitry@zend.com>2017-12-14 22:14:36 +0300
commit83e495e0fdc0c59b449bd173d0c8df1999239634 (patch)
tree80eb0e2e63b10f988add83a7d494838bd2cf9e56 /ext/zip/zip_stream.c
parent5d367636389506d3aff2220b0f4c6f14a59f98ea (diff)
downloadphp-git-83e495e0fdc0c59b449bd173d0c8df1999239634.tar.gz
Move constants into read-only data segment
Diffstat (limited to 'ext/zip/zip_stream.c')
-rw-r--r--ext/zip/zip_stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zip/zip_stream.c b/ext/zip/zip_stream.c
index fca18540b1..d4c9d9394b 100644
--- a/ext/zip/zip_stream.c
+++ b/ext/zip/zip_stream.c
@@ -199,7 +199,7 @@ static int php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb) /* {{{
}
/* }}} */
-php_stream_ops php_stream_zipio_ops = {
+const php_stream_ops php_stream_zipio_ops = {
php_zip_ops_write, php_zip_ops_read,
php_zip_ops_close, php_zip_ops_flush,
"zip",
@@ -348,7 +348,7 @@ php_stream *php_stream_zip_opener(php_stream_wrapper *wrapper,
}
/* }}} */
-static php_stream_wrapper_ops zip_stream_wops = {
+static const php_stream_wrapper_ops zip_stream_wops = {
php_stream_zip_opener,
NULL, /* close */
NULL, /* fstat */