#22503 [Opn->Bgs]: classes have to be defined before they can be used
| From: | sterling@php.net | Date: | Tue, 03 Jun 2003 20:58:23 +0000 |
| Subject: | #22503 [Opn->Bgs]: classes have to be defined before they can be used | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-41069@lists.php.net to get a copy of this message | ||
ID: 22503
Updated by: sterling@php.net
Reported By: sander@php.net
-Status: Open
+Status: Bogus
Bug Type: Zend Engine 2 problem
Operating System: Debian Linux (unstable)
PHP Version: 5CVS-2003-03-02 (dev)
New Comment:
yep, this is a known bc break. its intentional, and here to stay.
Previous Comments:
------------------------------------------------------------------------
[2003-03-02 05:07:56] sander@php.net
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 this bug report at http://bugs.php.net/?id=22503&edit=1