diff options
| author | Nikita Popov <nikic@php.net> | 2014-09-10 18:06:21 +0200 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2015-03-09 11:06:18 +0100 |
| commit | a81e65a5018a04379914c605f7a9c69ac8941600 (patch) | |
| tree | 36fae2ed54e5741e32ad71ad5cfdcc63577351ee /ext/xsl/xsltprocessor.c | |
| parent | b5184ef33606c808b66c4b2738c80376c95de65b (diff) | |
| download | php-git-a81e65a5018a04379914c605f7a9c69ac8941600.tar.gz | |
Remove xsl.security_prefs ini option
Conflicts:
ext/xsl/php_xsl.c
ext/xsl/xsltprocessor.c
Diffstat (limited to 'ext/xsl/xsltprocessor.c')
| -rw-r--r-- | ext/xsl/xsltprocessor.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/ext/xsl/xsltprocessor.c b/ext/xsl/xsltprocessor.c index 6b97dca4dc..553836b8c5 100644 --- a/ext/xsl/xsltprocessor.c +++ b/ext/xsl/xsltprocessor.c @@ -483,7 +483,7 @@ static xmlDocPtr php_xsl_apply_stylesheet(zval *id, xsl_object *intern, xsltStyl zend_object_handlers *std_hnd; FILE *f; int secPrefsError = 0; - int secPrefsValue, secPrefsIni; + int secPrefsValue; xsltSecurityPrefsPtr secPrefs = NULL; node = php_libxml_import_node(docp); @@ -542,23 +542,6 @@ static xmlDocPtr php_xsl_apply_stylesheet(zval *id, xsl_object *intern, xsltStyl secPrefsValue = intern->securityPrefs; - /* This whole if block can be removed, when we remove the xsl.security_prefs php.ini option in PHP 6+ */ - secPrefsIni= INI_INT("xsl.security_prefs"); - /* if secPrefsIni has the same value as secPrefsValue, all is fine */ - if (secPrefsIni != secPrefsValue) { - if (secPrefsIni != XSL_SECPREF_DEFAULT) { - /* if the ini value is not set to the default, throw an E_DEPRECATED warning */ - php_error_docref(NULL, E_DEPRECATED, "The xsl.security_prefs php.ini option is deprecated; use XsltProcessor->setSecurityPrefs() instead"); - if (intern->securityPrefsSet == 0) { - /* if securityPrefs were not set through the setSecurityPrefs method, take the ini setting */ - secPrefsValue = secPrefsIni; - } else { - /* else throw a notice, that the ini setting was not used */ - php_error_docref(NULL, E_NOTICE, "The xsl.security_prefs php.ini was not used, since the XsltProcessor->setSecurityPrefs() method was used"); - } - } - } - /* if securityPrefs is set to NONE, we don't have to do any checks, but otherwise... */ if (secPrefsValue != XSL_SECPREF_NONE) { secPrefs = xsltNewSecurityPrefs(); |
