mirror of
https://github.com/php/php-src.git
synced 2024-10-14 04:52:33 +00:00
c4805ffeb1
002.phpt and 003.phpt are regression tests for reported bugs. 004.phpt has been known to cause problems in some Sab/PHP combinations. No known reports in bug db for that one. Added skip mechanism @- Added regression test for bugs #17791 and #17931 (Melvyn)
26 lines
447 B
PHP
26 lines
447 B
PHP
<?php
|
|
class xsl {
|
|
|
|
function xsl() {
|
|
$this->_parser = xslt_create();
|
|
}
|
|
|
|
function set_error() {
|
|
xslt_set_error_handler($this->_parser, array($this, 'xslt_trap_error'));
|
|
echo "OK";
|
|
}
|
|
|
|
function xslt_trap_error($parser, $errorno, $level, $fields) {
|
|
return TRUE;
|
|
}
|
|
function clean() {
|
|
xslt_free($this->_parser);
|
|
}
|
|
}
|
|
|
|
$x = new xsl;
|
|
// work-around for possible '$this does not exist' bug in constructor
|
|
$x->set_error();
|
|
$x->clean();
|
|
?>
|