From: [EMAIL PROTECTED]
Operating system: Debian Linux (unstable)
PHP version: 5CVS-2003-03-02 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description: classes have to be defined before they can be used
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.
--
Edit bug report at http://bugs.php.net/?id=22503&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22503&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22503&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22503&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22503&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22503&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22503&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22503&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22503&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22503&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22503&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22503&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22503&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22503&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22503&r=gnused