|
|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-04-20 05:42 UTC] momo@php.net
coz the zendlex() function is recursive for some cases, it's quite easy dumping zend core. e.g, just repeat the comments enough times on the following script (i did it 500,000 times but may less is nedded): <? /**/ /**/ /*....... /**/ ?> is this consider a bug? PatchesPull RequestsAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
|
All rights reserved. |
Last updated: Thu Apr 09 09:00:01 2026 UTC |
the bug still exists using gcc version 3.2.2 20030222 here how u can easly reproduce it: [root@moshe-lap php4]# cat ../../gen-php-seg.php <? $p = fopen("tmp","wb"); $str=""; for($a=0;$a<1024;$a++) $str.="/**/ "; fwrite($p,"<? "); for($a=0;$a<512;$a++) fwrite($p,$str); fwrite($p," ?> "); fclose($p); ?> [root@moshe-lap php4]# ./sapi/cli/php ../../tmp Segmentation fault