note 41261 deleted from function.class-exists by curt
| From: | curt@php.net | Date: | Fri, 02 Jul 2004 02:36:13 +0000 |
| Subject: | note 41261 deleted from function.class-exists by curt | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72298@lists.php.net to get a copy of this message | ||
Note Submitter: manicdepressive@mindless.com
----
to: Jazeps Basko, anonymous
sorry to drag this thread on, but i can't bear to see inaccuracies posted on the comments.
with regards to the below dialogue,
anonymous said:
>> the !$found check will only check the *last* value of $found that was set
This is simply wrong. The for() loop will exit as soon as $found evaluates to false,
making 'anonymous's substite code logically equivalent to Jazep's.
Additionally, anonymous implies that there is a syntax error in Jazep's code which is also
wrong. Anonymous may have meant that there is a *logic* error, but i believe this is also wrong.
I have experienced the same problem Jazeps did, and I found his workaround very helpful.
In a perfect information-world, all three of us would see this the same way and then the helpful
moderators would remove these last two (3?) comments.
email me for a copy of my ClassLoader class, which uses Jazeps's logic.
code till dawn,
mark meves