On Fri, Feb 21, 2003 at 10:47:16AM -0600, Brian Moon wrote:
> | 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_OBJEC
| 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".
Should this work? YOu are using new with a returned v
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 proble