Bug #63759 [NEW]: Linebreak in .php file before â<?phpâ destroys whole code
From: binary dot coder at web dot de
Operating system: Mac OS X 10.8.2
PHP version: Irrelevant
Package: *General Issues
Bug Type: Bug
Bug description:Linebreak in .php file before â<?phpâ destroys whole code
Description:
------------
Platform: Mac OS X 10.8.2, MAMP 2.1.1, PHPStorm 5.0.4
If I would sum the HR we needed to solve this problem, it would took us two
days. For some reason on my mac machine the code stop to work, while on
windows
machines everything runs perfect.
It was very hard to figure out was had gone wrong, because the error
message
does not gave us any clue and pointed us into several wrong directions like
sending wrong http header and things like that.
The solution was simple and we just figured it out trough line by line
compare
of some files in the svn history.
A simple break of line before "" destroyed the whole system. I really dont
know
how this is possible. Normally the php parser should ignore this.
I had to listen to Mac bashing for two days from my colleagues, which
really
sucks...
--
Edit bug report at https://bugs.php.net/bug.php?id=63759&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63759&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63759&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63759&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63759&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63759&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63759&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63759&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63759&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63759&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63759&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63759&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63759&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63759&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63759&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63759&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63759&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63759&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63759&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63759&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63759&r=mysqlcfg
Thread (2 messages)
- binary dot coder at web dot de