#39206 [Opn->Fbk]: php cli crashes on tidy_parse_string
| From: | tony2001@php.net | Date: | Fri, 20 Oct 2006 08:57:00 +0000 |
| Subject: | #39206 [Opn->Fbk]: php cli crashes on tidy_parse_string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103774@lists.php.net to get a copy of this message | ||
ID: 39206
Updated by: tony2001@php.net
Reported By: serban dot ghita at verasys dot com
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Windows XP SP1
PHP Version: 5.1.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2006-10-20 07:50:13] serban dot ghita at verasys dot com
Description:
------------
running PHP 5.1.6.6 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: 5.1.6.6 ModName: php_tidy.dll
ModVer: 5.1.6.6 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: http://sasa.verasys.ro/a932_appcompat.xml
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39206&edit=1