Re: bug 48541 - critical for PHP 5.3
| From: | Christian Seiler | Date: | Sat, 13 Jun 2009 20:25:58 +0000 |
| Subject: | Re: bug 48541 - critical for PHP 5.3 | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44268@lists.php.net to get a copy of this message | ||
Hi,
[quote from off-list:]
> I am in way over my head and would not do a good job
> fixing these (or have the time), care to take a crack at it?
Ok, I'll do that tomorrow morning.
> I wonder if the problem is that
> spl_autoload_register should not just be checking to see if zcallable is
> IS_OBJECT, but also if it is an instance of Closure. That should clear
> up the examples below (spl_autoload_register($blah) where $blah is not a
> closure should not work).
No, actually it should definitely work, since $blah () works when the
class defined __invoke and objects of this class are thus callable.
Regards,
Christian