|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-05-30 14:14 UTC] nlopess@php.net
Description:
------------
Using the provided script, PHP segfaults.
Reproduce code:
---------------
<?php
$tidy = tidy_parse_string('<? ?>');
?>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 07:00:02 2025 UTC |
PHP 5.0.0RC2. Run via CLI. I was able to reproduce this bug. My gut feeling, which I will check after I submit this debug info (I have the debugger attached at present), is that <?php ?> will parse correctly. Unhandled exception in php.exe (PHP_TIDY.DLL): 0xC00000005: Access Violation. Unfortunately, I do not have the debug build of PHP. Best I can offer you is this: PHP_TIDY! 00ab93fe() That's my call stack. Sorry. I'll get the debug version of PHP and recheck this later, if I remember. Rechecking my initial gut suspicion, this piece of code works fine. $tidy = tidy_parse_string('<?php ?>'); My advice at present is to not use short tags in tidy-parsed code, as tidy's logic probably does not recognize <? ?> and attempts to parse it. However, a worthy problem for looking into.