Two ZE2 problems
| From: | Sander Roobol | Date: | Fri, 21 Feb 2003 16:20:11 +0000 |
| Subject: | Two ZE2 problems | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-94439@lists.php.net to get a copy of this message | ||
I recently discovered two problems in ZE2 that break BC.
The following snippet works fine on ZE1, but gives "Fatal error: Class
'foo' not found" on ZE2. Classes apparently need to be defined before
they can be used.
$bar = new foo();
class foo {}
Although it's easy to work around this problem, it breaks BC.
And there's another problem:
class foo {}
class bar {
var $baz = 'foo';
}
$bar = new bar();
$foo = new $bar->baz; // let's call this line 6
It runs fine on ZE1, but ZE2 bails out with "parse error, unexpected
T_OBJECT_OPERATOR on line 6".
Sander