|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39206 php cli crashes on tidy_parse_string
Submitted: 2006-10-20 07:50 UTC Modified: 2006-10-28 01:00 UTC
From: serban dot ghita at verasys dot com Assigned:
Status: No Feedback Package: Tidy (PECL)
PHP Version: 5.1.6 OS: Windows XP SP1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-10-20 07:50 UTC] serban dot ghita at verasys dot com
running PHP from the cli on Windows XP. i parse some html strings, and then i run a tidy check on the code:

$config_tidy = array("show-errors" => 1, "accessibility-check" => 0);
$tidy = tidy_parse_string($arr['html'], $config_tidy, 'utf8');

On a certain html code that is contained in $arr['html'] it crashes: "Windows has encountered and error"
AppName: php.exe	 AppVer:	 ModName: php_tidy.dll
ModVer:	 Offset: 00015819

Reproduce code:
//$arr['html'] - contains html code (0-400 lines)

$config_tidy = array("show-errors" => 1, "accessibility-check" => 0);
$tidy = tidy_parse_string($arr['html'], $config_tidy, 'utf8');

Expected result:
the script should parse the html code just fine.

Actual result:
the debug info returned:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-20 08:57 UTC]
Please try using this CVS snapshot:
For Windows:

 [2006-10-20 09:39 UTC] serban dot ghita at verasys dot com
AppName: php.exe	 AppVer:	 ModName: php_tidy.dll
ModVer:	 Offset: 00015469

i'll try to recompile php on unix later, with the cvs version, to see if the same thing happens
 [2006-10-20 09:47 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

 [2006-10-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 08 13:05:53 2022 UTC