From: Melvyn Sopacua Date: Wed, 23 Oct 2002 19:52:26 +0000 (+0000) Subject: Make it work without .php files X-Git-Tag: php-4.3.0pre2~144 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d365b09ec3c2bc114ee523cfc32f11620be4d4b1;p=php Make it work without .php files --- diff --git a/ext/xslt/tests/003.phpt b/ext/xslt/tests/003.phpt index 5663b44503..a85dd0674e 100644 --- a/ext/xslt/tests/003.phpt +++ b/ext/xslt/tests/003.phpt @@ -4,7 +4,29 @@ Pass object for xslt_error_handler, bug #17931 --FILE-- _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(); ?> --EXPECT-- OK diff --git a/ext/xslt/tests/xslt_set_error_handler.php b/ext/xslt/tests/xslt_set_error_handler.php deleted file mode 100644 index f0a03a81b2..0000000000 --- a/ext/xslt/tests/xslt_set_error_handler.php +++ /dev/null @@ -1,25 +0,0 @@ -_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(); -?>