|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-01-21 11:45 UTC] nlopess@php.net
-Status: Open
+Status: Wont fix
-Package: tidy
+Package: Tidy
[2012-01-21 11:45 UTC] nlopess@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
Description: ------------ Tidy snapshot from: 2004-07-13 11:47 Functions tidy_error_count, tidy_warning_count and tidy_get_error_buffer are inconsistent in case of multiple calls in the same process. Reproduce code: --------------- <?php $file = file_get_contents("http://www.amazon.com/"); tidy_setopt("accessibility-check", 1); for ($i=0; $i < 4; $i++) { tidy_parse_string($file); echo tidy_error_count() ."+". tidy_warning_count() ." = ". substr_count(tidy_get_error_buffer(), "\n") ."\n"; } ?> Expected result: ---------------- 5+266 = 271 5+266 = 271 5+266 = 271 5+266 = 271 Actual result: -------------- 5+266 = 271 11+265 = 10 17+265 = 0 23+265 = 0