Re: Is this a bug?

From: Date: Fri, 29 Aug 2008 08:08:12 +0000
Subject: Re: Is this a bug?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-278944@lists.php.net to get a copy of this message
Catalin Zamfir Alexandru, DATAGRAM SRL wrote: > Hello guys, > > I've been stalking on the list for some time. Didn't have > anything to report/talk, until now. I have a code like this, maybe you guys > can reproduce it, with output buffering started: > > Echo 'something'; > > Echo 'another thing'; > > Echo 'something <br />'\; > > > > What happens is that ANYTHING that was echo'ed until that \, > will not reach the buffer. Although, this should actually be a Parse Error, > it isn't, it just echoes what was echoed after the god damned \. It took me > two hours to find this typo in the code . > > > > Can you guys reproduce the error? I can actually give you a > link to the server where this code runs. > > > The script doesn't cause a parse error Instead it throws a warning. 'PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in' Don't think it's a bug. And the reason there's no syntax error is because the \ is a PHP escape character.

« previous php.general (#278944) next »