Bug 280739 - [PHP 5.3] Precede a namespace declaration by non-PHP code - no error in Problems view
Summary: [PHP 5.3] Precede a namespace declaration by non-PHP code - no error in Probl...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-18 06:40 EDT by Kalin CLA
Modified: 2020-05-14 10:17 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kalin CLA 2009-06-18 06:40:04 EDT
Have the next code in PHP 5.3 project file:
<html>
<?php
namespace MyProject; 
?>

Expected:
An appropriate fatal error should be issued in problems view for line #3 (namespace MyProject;) : fatal error - namespace must be the first statement in the script

Actual:
No error was issued.


http://us.php.net/manual/en/language.namespaces.definition.php