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
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 did work
the
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 existing scripts.
AFAICT the
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 \{}, thus breaking existing scripts.
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 the
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_db}\n;
... in
6 matches
Mail list logo