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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to