ID: 39417 Comment by: yatiohi at ideopolis dot gr Reported By: konstantin dot ryabitsev at mcgill dot ca Status: Feedback Bug Type: Unknown/Other Function Operating System: Linux, Windows PHP Version: 5.2.0 New Comment:
We are at least two persons on earth :-) [EMAIL PROTECTED] tmp]$ php -version PHP 5.1.6 (cli) (built: Nov 2 2006 16:46:15) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies [EMAIL PROTECTED] tmp]$ rpm -q libtidy libtidy-0.99.0-11.20051025.fc6 [EMAIL PROTECTED] tmp]$ rpm -q php-tidy php-tidy-5.1.6-1.fc6 [EMAIL PROTECTED] tmp]$ cat tidy.php <?php $contents = ' <wps:block> <wps:var> <wps:value/> </wps:var> </wps:block>'; $config = array( 'new-blocklevel-tags' => 'wps:block,wps:value,wps:var' ); $tidy = tidy_parse_string($contents, $config, 'utf8'); $tidy->cleanRepair(); print "{$tidy->value}\n"; ?> [EMAIL PROTECTED] tmp]$ php tidy.php <html> <head> <title></title> </head> <body> <wps:block> </body> </html> Previous Comments: ------------------------------------------------------------------------ [2006-11-23 22:28:28] [EMAIL PROTECTED] You seem to be the only (unlucky?) person on the earth able to reproduce it, hence it doesn't seem to me as a problem of PHP. If you want to keep this report open and not to be marked as bogus, please provide at least some info required to reproduce it. I'm very excited that Python bindings work fine for you. So does ext/tidy for me. ------------------------------------------------------------------------ [2006-11-23 22:11:45] konstantin dot ryabitsev at mcgill dot ca It's great that it's working fine for you. However, it's not working for me, and I can now add Windows into the pile: http://blues.mcgill.ca/~icon/misc/not-making-it-up.png So, now reproduced on 3 different linux distros, and 2 different platforms. I'm not sure how much more I can do to convince you that I'm not making this up. I have tried the exact same parameters from tidy python bindings. I do not see the same error. The error only seems to occur when I use php bindings. If you are going to close this bug, please don't close as bogus. This bug is real. ------------------------------------------------------------------------ [2006-11-23 21:11:31] [EMAIL PROTECTED] Works just fine here using both libtidy-CVS and default SuSE version (built on Mar 19 2005). Please update libtidy to the latest CVS, and if that doesn't help, harp on this to libtidy developers. # ./sapi/cli/php /tmp/2.php <html> <head> <title></title> </head> <body> <wps:block><wps:var> <wps:value></wps:var></wps:block> </body> </html> # cat /tmp/2.php <?php $contents = ' <wps:block> <wps:var> <wps:value/> </wps:var> </wps:block>'; $config = array( 'new-blocklevel-tags' => 'wps:block,wps:value,wps:var' ); $tidy = tidy_parse_string($contents, $config, 'utf8'); $tidy->cleanRepair(); print "{$tidy->value}\n"; ?> ------------------------------------------------------------------------ [2006-11-23 20:59:58] konstantin dot ryabitsev at mcgill dot ca [EMAIL PROTECTED]:[~]$ rpm -q libtidy libtidy-0:0.99.0-11.20051025.fc6.i386 (this is the latest released -- I have previously built the latest CVS of libtidy while testing this bug, but there was no difference in the end-result) ------------------------------------------------------------------------ [2006-11-23 20:56:35] [EMAIL PROTECTED] Which Tidy version are you using? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/39417 -- Edit this bug report at http://bugs.php.net/?id=39417&edit=1