summaryrefslogtreecommitdiff
path: root/ext/soap/php_xml.c
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2007-01-17 00:22:48 +0000
committerSara Golemon <pollita@php.net>2007-01-17 00:22:48 +0000
commit8ca1ed346d538621cb56893dfdbf16eb5abf9acb (patch)
tree698e8299d6a72313a440074b6e6204435043d831 /ext/soap/php_xml.c
parentf26413f41b4151d7020fc62314ec1708cc9b22e0 (diff)
downloadphp-git-8ca1ed346d538621cb56893dfdbf16eb5abf9acb.tar.gz
INI options should not be modified directly.
Bad extension. No cookie for you.
Diffstat (limited to 'ext/soap/php_xml.c')
-rw-r--r--ext/soap/php_xml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c
index 65aed517dc..2e36751c26 100644
--- a/ext/soap/php_xml.c
+++ b/ext/soap/php_xml.c
@@ -87,9 +87,9 @@ xmlDocPtr soap_xmlParseFile(const char *filename TSRMLS_DC)
*/
old_allow_url_fopen = PG(allow_url_fopen);
- PG(allow_url_fopen) = 1;
+ zend_alter_ini_entry("allow_url_fopen", sizeof("allow_url_fopen"), "1", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_RUNTIME);
ctxt = xmlCreateFileParserCtxt(filename);
- PG(allow_url_fopen) = old_allow_url_fopen;
+ zend_alter_ini_entry("allow_url_fopen", sizeof("allow_url_fopen"), old_allow_url_fopen ? "1" : "0", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_RUNTIME);
if (ctxt) {
ctxt->keepBlanks = 0;
ctxt->sax->ignorableWhitespace = soap_ignorableWhitespace;