From:             [EMAIL PROTECTED]
Operating system: Linux/Apache
PHP version:      4.0.4pl1
PHP Bug Type:     Reproduceable crash
Bug description:  Mac line endings cause error message with '?'

If a PHP source file is saved with Mac line endings (each line ends with character 13 
(0x0D) only) then any comment that starts with // and ends with a question mark such 
as:

// Comment?

will cause an error message to be output to the browser:

Parse error: parse error in /home/www/php/admin/syncdb.php on line 1

Note that the ? is NOT at the end of line 1 but can be anywhere in the script.

With either Unix line endings (0x0A) or PC line endings (0x0D + 0x0A) the problem does 
not occur.

The system is running apache 1.3.14 on a Linux (RedHat 6.0) i586 server.


-- 
Edit Bug report at: http://bugs.php.net/?id=8858&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to