Bug #27332

Problems with declare(ENCODING = 'utf-8'); in file header

Added by Tim Wagner about 4 years ago. Updated about 4 years ago.

Status:Resolved Start date:2011-06-09
Priority:Could have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:-
Target version:1.0 beta 1
Affected Flow version:

Description

On MAC OS X 10.6.7 with default PHP installation (no Ports) every time you call command ./flow3_dev or ./flow3 it leads to the following error:

[09-Jun-2011 20:30:25] PHP Parse error: syntax error, unexpected '*', expecting ',' or ')' in /private/var/www/flow3/Packages/Framework/FLOW3/Scripts/flow3 on line 3

The same error occurs when requesting the welcome page on the browser.

After removing declare(ENCODING = 'utf-8'); from each files header FLOW3 works as expected.

History

#1 Updated by Karsten Dambekalns about 4 years ago

  • Status changed from New to Accepted
  • Assigned To set to Karsten Dambekalns
  • Target version set to 1.0 beta 1

#3 Updated by Karsten Dambekalns about 4 years ago

Another update: you can have either line 1 or 3, but not both and it will work:

#!/usr/bin/env php
<?php
declare(ENCODING = 'utf-8');

#4 Updated by Karsten Dambekalns about 4 years ago

  • Status changed from Accepted to Under Review

#5 Updated by Karsten Dambekalns about 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF