PHP 4.0 Bug #4566: Comments and strings containing 's give an error.
| From: | c dot just at phoenixdigital dot com | Date: | Wed, 24 May 2000 01:04:38 +0000 |
| Subject: | PHP 4.0 Bug #4566: Comments and strings containing 's give an error. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19343@lists.php.net to get a copy of this message | ||
From: c.just@phoenixdigital.com
Operating system: Win32
PHP version: 4.0.0 Release
PHP Bug Type: Scripting Engine problem
Bug description: Comments and strings containing 's give an error.
Comments containing apostrophes fail.
It works if they are escaped but I'm sure thats not a 'feature' of PHP4 ;)
It seems that the following causes parse errors
# THIS PASSWORD HAS BEEN MD5'D
and
/* THIS PASSWORD HAS BEEN MD5'D */
Also errors parse errors appear for the following unless the apostrophes are escaped.
$query = "select * from $database where status = -1 and datesubmitted >
'10/May/2000' order by status";
In PHP3 the 's never needed to be escaped.
Has that changed or is this a bug?