Re: [PHP] bug in addslashes command?

2003-07-22 Thread Robert Cummings
I recently upgraded from 4.1.2 all the way to 4.3.2 without a single
bump -- your experience may vary :)

Cheers,
Rob.

On Tue, 2003-07-22 at 16:11, Merlin wrote:
> 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" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]
> 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)
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
.-.
| Worlds of Carnage - http://www.wocmud.org   |
:-:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the  |
| stuff of nightmares grasp for your soul.|
`-'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] bug in addslashes command?

2003-07-22 Thread Curt Zirzow
* Thus wrote Merlin ([EMAIL PROTECTED]):
> 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?

Yes. Expecially since its not a major.  In fact you'll be getting quite
a few bug fixes: 

http://php.net/ChangeLog-4.php

PHP has been very good with upgrades.  As long as you arn't using the
'EXPERIMENTAL' extenstions, you should be fine.

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] bug in addslashes command?

2003-07-22 Thread Merlin
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" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
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)



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Fwd: Re: [PHP] bug in addslashes command?

2003-07-22 Thread David Nicholson
-
NOTE: This is a forwarded message, the message being
referred to can be found at the bottom of this e-mail.
-

Hello,

My mail client removed the backslashes from my mail.

The output had a backslash before each single quote.

David.


===8<===Original message
information===
From: David Nicholson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Tue, 22 Jul 2003, 20:58
Subject: Re: [PHP] bug in addslashes command?
===8<==Original message
text===
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)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] bug in addslashes command?

2003-07-22 Thread David Nicholson
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)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] bug in addslashes command?

2003-07-22 Thread Merlin
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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php