@@ -181,14 +181,14 @@ PHP_METHOD(XSLTProcessor, importStylesheet)
181
181
if (nodep && (nodep = nodep -> children )) {
182
182
while (nodep ) {
183
183
if (nodep -> type == XML_ELEMENT_NODE && xmlStrEqual (nodep -> name , (const xmlChar * ) "key" ) && xmlStrEqual (nodep -> ns -> href , XSLT_NAMESPACE )) {
184
- intern -> hasKeys = 1 ;
184
+ intern -> hasKeys = true ;
185
185
break ;
186
186
}
187
187
nodep = nodep -> next ;
188
188
}
189
189
}
190
190
} else {
191
- intern -> hasKeys = clone_docu ;
191
+ intern -> hasKeys = true ;
192
192
}
193
193
194
194
if ((oldsheetp = (xsltStylesheetPtr )intern -> ptr )) {
@@ -257,7 +257,7 @@ static xmlDocPtr php_xsl_apply_stylesheet(zval *id, xsl_object *intern, xsltStyl
257
257
intern -> doc = emalloc (sizeof (php_libxml_node_object ));
258
258
memset (intern -> doc , 0 , sizeof (php_libxml_node_object ));
259
259
260
- if (intern -> hasKeys == 1 ) {
260
+ if (intern -> hasKeys ) {
261
261
doc = xmlCopyDoc (doc , 1 );
262
262
} else {
263
263
object = Z_LIBXML_NODE_P (docp );
@@ -681,8 +681,6 @@ PHP_METHOD(XSLTProcessor, setSecurityPrefs)
681
681
intern = Z_XSL_P (id );
682
682
oldSecurityPrefs = intern -> securityPrefs ;
683
683
intern -> securityPrefs = securityPrefs ;
684
- /* set this to 1 so that we know, it was set through this method. Can be removed, when we remove the ini setting */
685
- intern -> securityPrefsSet = 1 ;
686
684
RETURN_LONG (oldSecurityPrefs );
687
685
}
688
686
/* }}} end XSLTProcessor::setSecurityPrefs */
0 commit comments