php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63759 Linebreak in .php file before “<?php” destroys whole code
Submitted: 2012-12-13 10:33 UTC Modified: 2012-12-13 11:42 UTC
From: binary dot coder at web dot de Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS: Mac OS X 10.8.2
Private report: No CVE-ID: None
 [2012-12-13 10:33 UTC] binary dot coder at web dot de
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...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-13 11:42 UTC] johannes@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

.
 [2012-12-13 11:42 UTC] johannes@php.net
-Status: Open +Status: Not a bug
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 18:01:35 2024 UTC