#28243 [Opn->Bgs]: strange parse error
| From: | gschlossnagle@php.net | Date: | Sat, 01 May 2004 14:42:02 +0000 |
| Subject: | #28243 [Opn->Bgs]: strange parse error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-59102@lists.php.net to get a copy of this message | ||
ID: 28243
Updated by: gschlossnagle@php.net
Reported By: esflightsim at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 5.0.0RC2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
From the manual:
isset -- Determine whether a variable is set
Previous Comments:
------------------------------------------------------------------------
[2004-05-01 16:39:35] esflightsim at hotmail dot com
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 this bug report at http://bugs.php.net/?id=28243&edit=1