#22503 [NEW]: classes have to be defined before they can be used

From: Date: Sun, 02 Mar 2003 11:07:56 +0000
Subject: #22503 [NEW]: classes have to be defined before they can be used
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34612@lists.php.net to get a copy of this message
From: sander@php.net 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

« previous php.bugs (#34612) next »