--TEST-- xslt_set_opt function and public entities --SKIPIF-- --FILE-- ', 'foo

', $xslstring); // DEBUG: print $xslstring; xslt_setopt($xh, XSLT_SAB_PARSE_PUBLIC_ENTITIES | XSLT_SAB_DISABLE_ADDING_META); $result_nometa = xslt_process($xh, $xmlfile, 'arg:/_xsl', NULL, array('/_xsl' => $xslstring)); // DEBUG: print "$result_nometa\n"; xslt_setopt($xh, XSLT_SAB_PARSE_PUBLIC_ENTITIES); $result_meta = xslt_process($xh, $xmlfile, 'arg:/_xsl', NULL, array('/_xsl' => $xslstring)); // DEBUG: print "$result_meta\n"; /* Also test if they're equal. That would mean, that disable-adding-meta is set to off at compile time and our call to xslt_setopt failed to reset that */ if($result_meta != $result_nometa && FALSE === stristr($result_nometa, ' --EXPECT-- PHP QA® OK