Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Jochem Maas
Bogdan Ribic wrote: > >> >> be pragmatic - fix your script :-) > > I did :) > > It was a part of code generator, and I had something like : > $res .= "function $this->insert_prefix() \{$this->_global_db\n"; > > and replaced it with > > $res .= "function $this->insert_prefix() {{$this->_global_

Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Bogdan Ribic
be pragmatic - fix your script :-) I did :) It was a part of code generator, and I had something like : $res .= "function $this->insert_prefix() \{$this->_global_db\n"; and replaced it with $res .= "function $this->insert_prefix() {{$this->_global_db}\n"; ... in about 20 locations. But t

Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Jochem Maas
Németh Zoltán wrote: > On cs, 2007-01-18 at 14:19 +0100, Jochem Maas wrote: >> Bogdan Ribic wrote: >>> Hi all, >>> >>> Try this: >>> >>> $a = ''; >>> echo "\{$a}"; >>> >>> from php 4, it outputs "{}", from php 5.2 (one that comes with Zend 5.5) >> no-one here supports Zend. >> >>> it outputs "\{}",

Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Németh Zoltán
On cs, 2007-01-18 at 14:19 +0100, Jochem Maas wrote: > Bogdan Ribic wrote: > > Hi all, > > > > Try this: > > > > $a = ''; > > echo "\{$a}"; > > > > from php 4, it outputs "{}", from php 5.2 (one that comes with Zend 5.5) > > no-one here supports Zend. > > > it outputs "\{}", thus breaking exis

Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Jochem Maas
Bogdan Ribic wrote: > Hi all, > > Try this: > > $a = ''; > echo "\{$a}"; > > from php 4, it outputs "{}", from php 5.2 (one that comes with Zend 5.5) no-one here supports Zend. > it outputs "\{}", thus breaking existing scripts. AFAICT the escaping in that string is wrong - the fact that it d

[PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Bogdan Ribic
Hi all, Try this: $a = ''; echo "\{$a}"; from php 4, it outputs "{}", from php 5.2 (one that comes with Zend 5.5) it outputs "\{}", thus breaking existing scripts. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php