Re: bug in addslashes command?

From: Date: Tue, 22 Jul 2003 20:11:18 +0000
Subject: Re: bug in addslashes command?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-156313@lists.php.net to get a copy of this message
there is definatelly a bug in 4.2.1 since this sentence: Argostoli is the 'capitol' of Kefalonia / Kefallinia. One of the Greek Ionian islands. will be escaped by - instead of \ other examples run fine. Does anybody know if there are any serious changes between the new php version and 4.2.1 Can I upgrade without feering loosing functionality? Thanx for your help, Merlin "David Nicholson" <me@djnicholson.com> schrieb im Newsbeitrag news:57198de0fd9b28665ba93b8c07ccbae3@home.djnicholson.com... Hello, This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at 20:51, lines prefixed by '>' were originally written by you. > 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. On my PHP 4.3.2 installation, echo addslashes("the 'capitol-' of Kefalonia"); displays: the 'capitol-' of Kefalonia which appears to be correct. David. -- phpmachine :: The quick and easy to use service providing you with professionally developed PHP scripts :: http://www.phpmachine.com/ Professional Web Development by David Nicholson http://www.djnicholson.com/ QuizSender.com - How well do your friends actually know you? http://www.quizsender.com/ (developed entirely in PHP)

« previous php.general (#156313) next »