From 8ca1ed346d538621cb56893dfdbf16eb5abf9acb Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Wed, 17 Jan 2007 00:22:48 +0000 Subject: INI options should not be modified directly. Bad extension. No cookie for you. --- ext/soap/php_xml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/soap/php_xml.c') 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; -- cgit v1.2.1