#43027 [Opn->Asn]: Declare cause fatal error
ID: 43027
Updated by: johannes@php.net
Reported By: felipensp at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 5.3CVS-2007-10-19 (snap)
-Assigned To:
+Assigned To: dmitry
New Comment:
Dmitry, please have a look.
Previous Comments:
------------------------------------------------------------------------
[2007-10-19 01:03:32] felipensp at gmail dot com
Description:
------------
README.namespaces said "The namespace declaration statement must be the
very first statement in
the file. The only exception is "declare" statement that can be used
before." But, declare statement cause fatal error.
Reproduce code:
---------------
<?php
declare(ticks=1);
namespace test;
Expected result:
----------------
No error.
Actual result:
--------------
Fatal error: Namespace declaration statement has to be the very first
statement
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43027&edit=1
Thread (3 messages)