PHP 8.5.0 Alpha 4 available for testing

Voting

: max(zero, nine)?
(Example: nine)

The Note You're Voting On

kuzawinski dot marcin at NOSPAM dot gmail dot com
11 years ago
If your code looks like this:

<?php
namespace NS;
?>

...and you still get "Namespace declaration statement has to be the very first statement in the script" Fatal error, then you probably use UTF-8 encoding (which is good) with Byte Order Mark, aka BOM (which is bad). Try to convert your files to "UTF-8 without BOM", and it should be ok.

<< Back to user notes page

To Top