note 82652 added to language.oop5.basic
| From: | info at youwanttoremovethisvakantiebaas dot nl | Date: | Sun, 20 Apr 2008 22:40:51 +0000 |
| Subject: | note 82652 added to language.oop5.basic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138588@lists.php.net to get a copy of this message | ||
if you do this
<?php
$x = new b();
class b extends a {}
class a { }
?>
PHP will tell you "class b not found", because you've defined class b before a.
However, the error tells you something different.... Got me a little confused :)
----
Server IP: 195.184.64.198
Probable Submitter: 213.10.158.113
----
Manual Page -- http://www.php.net/manual/en/language.oop5.basic.php
Edit -- https://master.php.net/note/edit/82652
Del: integrated -- https://master.php.net/note/delete/82652/integrated
Del: useless -- https://master.php.net/note/delete/82652/useless
Del: bad code -- https://master.php.net/note/delete/82652/bad+code
Del: spam -- https://master.php.net/note/delete/82652/spam
Del: non-english -- https://master.php.net/note/delete/82652/non-english
Del: in docs -- https://master.php.net/note/delete/82652/in+docs
Del: other reasons-- https://master.php.net/note/delete/82652
Reject -- https://master.php.net/note/reject/82652
Search -- https://master.php.net/manage/user-notes.php