PHP 4.0 Bug #8858: Mac line endings cause error message with '?'
| From: | davidv at angliaed dot co dot uk | Date: | Tue, 23 Jan 2001 12:21:56 +0000 |
| Subject: | PHP 4.0 Bug #8858: Mac line endings cause error message with '?' | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44803@lists.php.net to get a copy of this message | ||
From: davidv@angliaed.co.uk
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