[TYPO3-50-general] PHP Fatal error with lampp on ubuntu
Helmut Hummel
typo3 at jhpc.de
Wed Jul 15 23:12:31 CEST 2009
Hi Karsten,
Am 15.07.2009 13:30 Uhr, schrieb Karsten Dambekalns:
> Hi.
>
> On 09.07.2009 15:31 Uhr, Helmut Hummel wrote:
>> Fatal error: Encoding declaration pragma must be the very first
>> statement in the script in
>> /var/www/flow3/Packages/Global/FLOW3/Classes/Core/Bootstrap.php on line 2
>
> Well, what is in the first lines of that file for you?
Well the Bootstrap.php starts like this:
<?php
declare(ENCODING = 'utf-8');
But I think this has nothing to do with flow3 since the problem also
occours if i have one PHP-File starting with the declare statement and
uses Include to include a second one also having this statement. PHP
throws an error complaining, the second (included) PHP-script not having
the declaration in the first line.
All works well with the Windows version of XAMPP or on my mac using the
php version provided by MacPorts...
I just wanted to let you know this fact, if someone encounters the same
problem.
Kind regards
Helmut
More information about the TYPO3-project-5_0-general
mailing list