Re: [PHP4BETA] Tests?

From: Date: Fri, 30 Apr 1999 14:39:51 +0000
Subject: Re: [PHP4BETA] Tests?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-596@lists.php.net to get a copy of this message
On Fri, 30 Apr 1999, Boris Erdmann wrote: > Zeev Suraski wrote: > > > > On Thu, 29 Apr 1999, Boris Erdmann wrote: > > > > > it did not work as cgi here at home and at SHonline/NetUSE when Kris and I > > > tried a few days ago. > > > > Did you report it? > > No. Ususally I investigate a little before reporting a bug. Had not time to. > > > > > > The serialization code of PHPLIB didn't run either because it heavily uses > > > "eval". I have a rewrite here in store that copes with the new features of > > > eval. So things should work once PHP4 does. > > > > eval() works under Zend/PHP 4, so what do you mean? > > > Well - this supposed-to-be-an-eval-problem seems to be an incopatibility > of the new parser: > > This perfectly valid PHP3 > > <?php > $var="text"; > print("${var}"); > ?> > > does not get parsed by PHP4. Well, it is indeed, and it's triggered by the fact that there's no full parsing of PHP code inside {}'s. Because 'var' is a keyword, you get this behavior. There might be a way out here, but I doubt it'll be easily doable. You're best off changing your variable's name to a non-keyword, or generate a proper string expression by changing it to be "var" instead of var. Zeev -- ----------------------------------------------------- Zeev Suraski <zeev@zend.com> For a PGP public key, finger bourbon@netvision.net.il -- PHP 4 Beta

« previous php.version4 (#596) next »