Yeah, I was in doubt about that one.

They are bug-related, but nothing spectacular indeed. I'll remove it.


At 13:45 4-10-2002, Sander Roobol wrote:

>Does this really deserve a news entry?
>
>On Fri, Oct 04, 2002 at 11:41:33AM -0000, Melvyn Sopacua wrote:
> > msopacua              Fri Oct  4 07:41:33 2002 EDT
> >
> >   Added files:
> >     /php4/ext/xslt/tests      002.phpt 003.phpt skipif.inc
> >                               xslt_set_error_handler.php
> >   Log:
> >   Improve testkit for xslt.
> >    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)
> >
> >
> >
> > Index: php4/ext/xslt/tests/002.phpt
> > +++ php4/ext/xslt/tests/002.phpt
> > --TEST--
> > Pass long string to 'file' argument, bug #17791
> > --SKIPIF--
> > <?php include("skipif.inc"); ?>
> > --FILE--
> > <?php
> > $xmlstring = str_repeat('x', 512);
> > $xslstring = 'x';
> > $xh = xslt_create();
> > $result = @xslt_process($xh, $xmlstring, $xslstring);
> > @xslt_free($xh);
> > echo("OK");
> > ?>
> > --EXPECT--
> > OK
> >
> > Index: php4/ext/xslt/tests/003.phpt
> > +++ php4/ext/xslt/tests/003.phpt
> > --TEST--
> > Pass object for xslt_error_handler, bug #17931
> > --SKIPIF--
> > <?php include("skipif.inc"); ?>
> > --FILE--
> > <?php
> > include('xslt_set_error_handler.php');
> > ?>
> > --EXPECT--
> > OK
> >
> > Index: php4/ext/xslt/tests/skipif.inc
> > +++ php4/ext/xslt/tests/skipif.inc
> > <?php
> > if(!extension_loaded("xslt") && ini_get("enable_dl")) {
> >       $dlext = (substr(PHP_OS, 0, 4) == "WIN") ? ".dll" : ".so";
> >       @dl("xlst$dlext");
> > }
> > if(!extension_loaded("xslt")) {
> >       die("skip\n");
> > }
> > ?>
> >
> > Index: php4/ext/xslt/tests/xslt_set_error_handler.php
> > +++ php4/ext/xslt/tests/xslt_set_error_handler.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();
> > ?>
> >
> >
> >
> > --
> > PHP CVS Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>--
>PHP CVS Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


Met vriendelijke groeten / With kind regards,

Webmaster IDG.nl
Melvyn Sopacua


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to