#43027 [Opn->Asn]: Declare cause fatal error

From: Date: Fri, 19 Oct 2007 08:30:32 +0000
Subject: #43027 [Opn->Asn]: Declare cause fatal error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118701@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#118701) next »