Re: [nyphp-talk] Addcslashes bug

2008-02-12 Thread Matteo Rinaudo
> addcslashes failed to put a slash in front of a single quote. Can anyone > imagine how this could happen? Is it possible it didn't catch a multi-byte > character? Am I back to charset issues? I would guess: was the single quote something different than the standard single quote, like a very simi

Re: [nyphp-talk] Addcslashes bug

2008-02-12 Thread Rob Marscher
Cliff Hirsch wrote: I had a very strange error, catastrophic yesterday. PEAR Config writes a PHP array file like so: 'value', param2 => 'val'ue2', ... ); The writing process is what failed to generate the backslash. The parsing happens on subsequent page loads. The strange thing is that I

Re: [nyphp-talk] Addcslashes bug

2008-02-12 Thread Cliff Hirsch
> On Tue, Feb 12, 2008 at 07:15:37AM -0500, Cliff Hirsch wrote: >> PEAR Config writes a PHP array file like so: > > Your earlier description of the error coming up out of the blue makes it > sound like you're writing out configuration files on the fly. Is that > the case? If so, why? If not, pl

Re: [nyphp-talk] Addcslashes bug

2008-02-12 Thread Daniel Convissor
Cliff: On Tue, Feb 12, 2008 at 07:15:37AM -0500, Cliff Hirsch wrote: > > PEAR Config writes a PHP array file like so: Your earlier description of the error coming up out of the blue makes it sound like you're writing out configuration files on the fly. Is that the case? If so, why? If not,

Re: [nyphp-talk] Addcslashes bug

2008-02-12 Thread Cliff Hirsch
> This doesn't make sense. How would a slashing failure lead to a parse > error? Parsing should always happen first. Were you hacked? Are you > sure it isn't an unsafe include? No eval() in the code. PEAR Config writes a PHP array file like so: 'value', param2 => 'val'ue2', ... ); The

Re: [nyphp-talk] Addcslashes bug

2008-02-11 Thread Daniel Convissor
Hi Cliff: > The logs picked up the error after the damage was done: "PHP Parse error: > syntax error, unexpected T_STRING". But the logs don't indicate why > addcslashes failed to slash a single quote in this one instance. Are you eval()'ing code? If so, _that's_ your problem, not the inability

Re: [nyphp-talk] Addcslashes bug

2008-02-11 Thread John Campbell
> The logs picked up the error after the damage was done: "PHP Parse error: > syntax error, unexpected T_STRING". But the logs don't indicate why > addcslashes failed to slash a single quote in this one instance. This doesn't make sense. How would a slashing failure lead to a parse error? Parsin

Re: [nyphp-talk] Addcslashes bug

2008-02-11 Thread Cliff Hirsch
>> On Feb 11, 2008 6:40 PM, Cliff Hirsch <[EMAIL PROTECTED]> wrote: >>> I had a very strange error, catastrophic yesterday. addcslashes failed to >>> put a slash in front of a single quote. Can anyone imagine how this could >>> happen? Is it possible it didn't catch a multi-byte character? Am I ba

Re: [nyphp-talk] Addcslashes bug

2008-02-11 Thread Matteo Rinaudo
> Hi - do the Apache logs show you something (if you log them via > php.ini) like warning or errors related to this issue? Sorry, I meant `if you log the PHP errors using the log_errors directive in php.ini'. Matteo Rinaudo > On Feb 11, 2008 6:40 PM, Cliff Hirsch <[EMAIL PROTECTED]> wrote: > > >

Re: [nyphp-talk] Addcslashes bug

2008-02-11 Thread Matteo Rinaudo
Hi - do the Apache logs show you something (if you log them via php.ini) like warning or errors related to this issue? Matteo Rinaudo On Feb 11, 2008 6:40 PM, Cliff Hirsch <[EMAIL PROTECTED]> wrote: > > I had a very strange error, catastrophic yesterday. addcslashes failed to > put a slash in fro

[nyphp-talk] Addcslashes bug

2008-02-11 Thread Cliff Hirsch
I had a very strange error, catastrophic yesterday. addcslashes failed to put a slash in front of a single quote. Can anyone imagine how this could happen? Is it possible it didn¹t catch a multi-byte character? Am I back to charset issues? Unfortunately, I can¹t reproduce the error. Cliff