From: foospam at wp dot pl
Operating system: Debian GNU/Linux
PHP version: 4.3.4
PHP Bug Type: Compile Failure
Bug description: 'INT' constant produces parse error
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.
--
Edit bug report at http://bugs.php.net/?id=28118&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28118&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28118&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28118&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28118&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28118&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28118&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28118&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28118&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28118&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28118&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28118&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28118&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28118&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28118&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28118&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28118&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28118&r=float