php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4566 Comments and strings containing 's give an error.
Submitted: 2000-05-23 21:04 UTC Modified: 2000-05-30 23:40 UTC
From: c dot just at phoenixdigital dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.0 Release OS: Win32
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: c dot just at phoenixdigital dot com
New email:
PHP Version: OS:

 

 [2000-05-23 21:04 UTC] c dot just at phoenixdigital dot com
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?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-30 19:07 UTC] stas at cvs dot php dot net
Failed to reporduce this. Does it still happen?
 [2000-05-30 19:07 UTC] stas at cvs dot php dot net
Failed to reporduce this. Does it still happen?
 [2000-05-30 23:40 UTC] c dot just at phoenixdigital dot com
The problem seems to be fixed now??????????

I have isntalled a few NT service packs and other updates
since I initalially found this bug. Maybe one of those fixed it.

Thanks for checking it anyway.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 21:01:26 2024 UTC