Re: Broken compatibility with escaping { in php 5.2

From: Date: Thu, 18 Jan 2007 13:36:05 +0000
Subject: Re: Broken compatibility with escaping { in php 5.2
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-247326@lists.php.net to get a copy of this message
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 complaint is that whichever is "correct" version, it cannot be much more correct than the other, and certainly not worth breaking existing functionality. Mine was easy to fix, but this might introduce weird bugs somewhere else.

« previous php.general (#247326) next »