|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-01 20:31 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 06:00:01 2025 UTC |
Description: ------------ Scripts containing namespaces fail with an error if the file is saved in encoding UTF-8, but works as expected when saved in encoding ANSI using Windows Notepad. Only namespaces seem to be effected by this error. Reproduce code: --------------- <?php namespace { print 'Hello World'; } Expected result: ---------------- Hello World Actual result: -------------- Fatal error: Namespace declaration statement has to be the very first statement in the script in C:\home\public_html\name.php on line 4