Re: bug in addslashes command?
| From: | Kevin Stone | Date: | Tue, 22 Jul 2003 20:09:58 +0000 |
| Subject: | Re: bug in addslashes command? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156311@lists.php.net to get a copy of this message | ||
"Merlin" <news.groups@web.de> wrote in message
news:20030722195016.83128.qmail@pb1.pair.com...
> Hello there,
>
> I am running php 4.2.1 on a linux machine. Not sure, but I think there
might
> be a bug in there.
>
> While putting data into the db I do get an error in a verry rar case. All
> values are escaped by addslashes commands.
>
> This is the original string:
> the 'capitol-' of Kefalonia
>
> This is the string after addslashes:
> the \'capitol\-' of Kefalonia
>
> Which leaves the last ' unescaped.
>
> Am I wrong, or is this a bug? Anny suggestions?
>
> Thanx for any help,
>
> Merlin
That's strange. Tested on PHP v4.2.3 on Linux and it seems to be working
okay..
output: \'capitol-\' of Kefalonia
- Kevin