#28243 [NEW]: strange parse error

From: Date: Sat, 01 May 2004 14:39:36 +0000
Subject: #28243 [NEW]: strange parse error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59101@lists.php.net to get a copy of this message
From: esflightsim at hotmail dot com Operating system: Linux PHP version: 5.0.0RC2 PHP Bug Type: Scripting Engine problem Bug description: strange parse error Description: ------------ When I use isset() with a constant, it returns a strange parse error Reproduce code: --------------- <?php // No direct access if(isset(MAIN_PAGE)) { Expected result: ---------------- Parse error: parse error, unexpected 'T_CONSTANT' expecting T_VAR in /home/eirik/public_html/fspage/include1.php on line 3 Actual result: -------------- Parse error: parse error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in /home/eirik/public_html/fspage/include1.php on line 3 -- Edit bug report at http://bugs.php.net/?id=28243&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28243&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28243&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28243&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28243&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28243&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28243&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28243&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28243&r=support Expected behavior: http://bugs.php.net/fix.php?id=28243&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28243&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28243&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28243&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28243&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28243&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28243&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28243&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28243&r=float

« previous php.bugs (#59101) next »