|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-01 15:47 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 19:00:01 2025 UTC |
Description: ------------ I expect that $i=0; echo $empty($i++) return true instead of parse error Reproduce code: --------------- $i=0; while($i<10){ if(empty($i++)){ echo 'firstline'; } else { echo $i++; } } Expected result: ---------------- Do the same as $i=0; while($i<10){ if($i++ == 0){ echo 'firstline'; } else { echo $i++; } } Actual result: -------------- Parse error: parse error, expecting `')''