|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-23 09:31 UTC] helly@php.net
[2004-04-23 09:57 UTC] foospam at wp dot pl
[2004-04-23 10:04 UTC] helly@php.net
[2004-04-23 13:57 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 07:00:01 2025 UTC |
Description: ------------ seems, that "INT" string is some keyword for parser. Reproduce code: --------------- define('INT', 2); $types = array(1 * INT); foreach($types as $type) { echo $type . "<br />\n"; } echo "<hr />\n"; $types = array(INT); foreach($types as $type) { echo $type . "<br />\n"; } Expected result: ---------------- 2<br /> <hr /> 2<br /> Actual result: -------------- Parse error: parse error, expecting `'('' in X on line 7.