mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +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;
|
||||
FILE *f;
|
||||
int secPrefsError = 0;
|
||||
int secPrefsValue;
|
||||
xsltSecurityPrefsPtr secPrefs = NULL;
|
||||
|
||||
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);
|
||||
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 (secPrefsValue != XSL_SECPREF_NONE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue