Incomplete index.php

(bvj) #1

i have tried to install and run piwik 0.5.4 and there is strange issue - the file index.php is incomplete - the php code is not closed and i don’t know if there is missing more.

And the same incomplete code is in SVN

(vipsoft) #2

This is valid in PHP and is intentional because it avoids the “headers already sent” scenario when someone inadvertently adds a newline after the closing tag.

Other than this, what problem are you encountering?


I’ve learned that it was common to omit the closing tag to prevent that king of problem some year ago but tell that to Dreamweaver !
The old version of Dream i previously had always wanted to close the php tag.
I dont know yet about the CS4 as i didn’t used much PHP in it yet.