#39206 [NEW]: php cli crashes on tidy_parse_string
| From: | serban dot ghita at verasys dot com | Date: | Fri, 20 Oct 2006 07:50:13 +0000 |
| Subject: | #39206 [NEW]: php cli crashes on tidy_parse_string | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-103769@lists.php.net to get a copy of this message | ||
From: serban dot ghita at verasys dot com
Operating system: Windows XP SP1
PHP version: 5.1.6
PHP Bug Type: CGI related
Bug description: php cli crashes on tidy_parse_string
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 bug report at http://bugs.php.net/?id=39206&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39206&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39206&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39206&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39206&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39206&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39206&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39206&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39206&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39206&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39206&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39206&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39206&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39206&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39206&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39206&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39206&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39206&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39206&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39206&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39206&r=mysqlcfg