|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-16 12:12 UTC] mike@php.net
[2006-03-16 16:10 UTC] colder@php.net
[2006-03-16 21:55 UTC] khan dot shadow at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 19:00:01 2025 UTC |
Description: ------------ " In case of a parse error in the evaluated code, eval() returns FALSE. In case of a fatal error in the evaluated code, the whole script exits." Reproduce code: --------------- $page = 'for(\$i=0;\$i<=2;\$i++){?>'; $page .= '<b>test code</b>'; $page .= '<? } ?>'; ' $cad = $page; $cad = @eval($cad)==false ? echo $cad : ob_get_contents(); Expected result: ---------------- $cad should be $cad='<b>test code</b><b>test code</b><b>test code</b>' Actual result: -------------- $cad is echod to the screen