summaryrefslogtreecommitdiff
path: root/ext/xml
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-12-14 18:43:44 +0300
committerDmitry Stogov <dmitry@zend.com>2017-12-14 18:43:44 +0300
commit9e709e2fa02b85d0d10c864d6c996e3368e977ce (patch)
tree148bedd2674933ba40e59f15fcfa2981f7aead85 /ext/xml
parent71eaf0d97f173093253163db8c4720bd62387e34 (diff)
downloadphp-git-9e709e2fa02b85d0d10c864d6c996e3368e977ce.tar.gz
Move constants into read-only data segment
Diffstat (limited to 'ext/xml')
-rw-r--r--ext/xml/compat.c2
-rw-r--r--ext/xml/xml.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/xml/compat.c b/ext/xml/compat.c
index 694fde95c3..b6c19cc039 100644
--- a/ext/xml/compat.c
+++ b/ext/xml/compat.c
@@ -401,7 +401,7 @@ _get_entity(void *user, const xmlChar *name)
return ret;
}
-static xmlSAXHandler
+static const xmlSAXHandler
php_xml_compat_handlers = {
NULL, /* internalSubset */
NULL, /* isStandalone */
diff --git a/ext/xml/xml.c b/ext/xml/xml.c
index 3db00ab22f..bbfb7e20c1 100644
--- a/ext/xml/xml.c
+++ b/ext/xml/xml.c
@@ -212,7 +212,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_xml_parser_get_option, 0, 0, 2)
ZEND_ARG_INFO(0, option)
ZEND_END_ARG_INFO()
-const zend_function_entry xml_functions[] = {
+static const zend_function_entry xml_functions[] = {
PHP_FE(xml_parser_create, arginfo_xml_parser_create)
PHP_FE(xml_parser_create_ns, arginfo_xml_parser_create_ns)
PHP_FE(xml_set_object, arginfo_xml_set_object)