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