summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.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_http.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_http.c')
-rw-r--r--ext/soap/php_http.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index ca14219da9..0f33c2c767 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -318,12 +318,12 @@ try_again:
}
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);
if (use_ssl && php_stream_locate_url_wrapper("https://", NULL, STREAM_LOCATE_WRAPPERS_ONLY TSRMLS_CC) == NULL) {
php_url_free(phpurl);
if (request != buf) {efree(request);}
add_soap_fault(this_ptr, "HTTP", "SSL support is not available in this build", NULL, NULL TSRMLS_CC);
- 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);
return FALSE;
}
@@ -376,11 +376,11 @@ try_again:
php_url_free(phpurl);
if (request != buf) {efree(request);}
add_soap_fault(this_ptr, "HTTP", "Could not connect to host", NULL, NULL TSRMLS_CC);
- 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);
return FALSE;
}
}
- 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 (stream) {
if (client->url) {