mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix narrowing warning
This commit is contained in:
parent
f16590637c
commit
c6d0181c75
1 changed files with 1 additions and 2 deletions
|
@ -295,7 +295,6 @@ static xmlDocPtr php_xsl_apply_stylesheet(zval *id, xsl_object *intern, xsltStyl
|
||||||
zend_string *member;
|
zend_string *member;
|
||||||
FILE *f;
|
FILE *f;
|
||||||
int secPrefsError = 0;
|
int secPrefsError = 0;
|
||||||
int secPrefsValue;
|
|
||||||
xsltSecurityPrefsPtr secPrefs = NULL;
|
xsltSecurityPrefsPtr secPrefs = NULL;
|
||||||
|
|
||||||
node = php_libxml_import_node(docp);
|
node = php_libxml_import_node(docp);
|
||||||
|
@ -362,7 +361,7 @@ static xmlDocPtr php_xsl_apply_stylesheet(zval *id, xsl_object *intern, xsltStyl
|
||||||
ZEND_ASSERT(Z_TYPE_P(max_template_vars) == IS_LONG);
|
ZEND_ASSERT(Z_TYPE_P(max_template_vars) == IS_LONG);
|
||||||
ctxt->maxTemplateVars = Z_LVAL_P(max_template_vars);
|
ctxt->maxTemplateVars = Z_LVAL_P(max_template_vars);
|
||||||
|
|
||||||
secPrefsValue = intern->securityPrefs;
|
zend_long secPrefsValue = intern->securityPrefs;
|
||||||
|
|
||||||
/* if securityPrefs is set to NONE, we don't have to do any checks, but otherwise... */
|
/* if securityPrefs is set to NONE, we don't have to do any checks, but otherwise... */
|
||||||
if (secPrefsValue != XSL_SECPREF_NONE) {
|
if (secPrefsValue != XSL_SECPREF_NONE) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue