ID: 42541 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Assigned Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 6CVS-2007-09-04 (CVS) -Assigned To: +Assigned To: dmitry New Comment:
Dmitry, could you please check this? Previous Comments: ------------------------------------------------------------------------ [2007-09-04 10:00:42] [EMAIL PROTECTED] Description: ------------ When extended info is enabled (to generate EXT_* opcodes for debuggers), the namespace decl. on the first line check is not correct (zend_compile.c:5049) Reproduce code: --------------- Just any file with a namespace decl, for example: Zend/tests/ns_010.php Run as: php -n -e /home/derick/dev/php/php-6.0dev/Zend/tests/ns_010.php Expected result: ---------------- class ok class ok class ok class ok method ok method ok method ok method ok const ok const ok const ok const ok var ok var ok var ok var ok Actual result: -------------- Fatal error: Namespace declaration statement has to be the very first statement in the script in /home/derick/dev/php/php-6.0dev/Zend/tests/ns_010.php on line 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42541&edit=1