#48595 [NEW]: Namespace is the first statement, but error is still thrown
| From: | spektom at gmail dot com | Date: | Thu, 18 Jun 2009 13:38:17 +0000 |
| Subject: | #48595 [NEW]: Namespace is the first statement, but error is still thrown | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-138454@lists.php.net to get a copy of this message | ||
From: spektom at gmail dot com
Operating system: Windows
PHP version: 5.3.0RC3
PHP Bug Type: Compile Failure
Bug description: Namespace is the first statement, but error is still thrown
Description:
------------
See the reproduce code... Namespace is the first statement in the PHP
section, but the error is still thrown.
Reproduce code:
---------------
<html>
<?php
namespace ABC;
Expected result:
----------------
Work without errors.
Actual result:
--------------
Fatal error: Namespace declaration statement has to be the very first
statement in the script in C:\Documents and
Settings\michael\workspace\runtime-pdt\php5.3\2.php on line 3
--
Edit bug report at http://bugs.php.net/?id=48595&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48595&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48595&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48595&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48595&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48595&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48595&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48595&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48595&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48595&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48595&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48595&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48595&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48595&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48595&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48595&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48595&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48595&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48595&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48595&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48595&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48595&r=mysqlcfg