Re: get_called_class returns empty on spl_autoload*
| From: | Pablo Fischer | Date: | Mon, 27 Apr 2009 19:44:17 +0000 |
| Subject: | Re: get_called_class returns empty on spl_autoload* | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-43790@lists.php.net to get a copy of this message | ||
Hm, very strange, perhaps I'm building it with port (mac)?
$ sudo port install php5-devel
On Mon, Apr 27, 2009 at 2:03 PM, Hannes Magnusson
<hannes.magnusson@gmail.com> wrote:
> On Mon, Apr 27, 2009 at 18:19, Pablo Fischer <pfischer@php.net> wrote:
>> Hi,
>>
>> Well, I upgraded my php5.3 version and I still see the same thing:
> [...]
>> PHP 5.3.0RC1 (cli) (built: Apr 27 2009 11:12:36)
>
> What about CVS?
>
>> As I said, not sure if this is the way spl_autoload_register should
>> work with get_called_class().
>
> It works fine for me:
>
> string(24) "Current class is: Loader"
> string(22) "Calling Loader for Foo"
> PHP Fatal error: Class 'Foo' not found in /usr/src/php/5.3/- on line 15
>
> -Hannes
>
--
Pablo Fischer (pablo [arroba/at] pablo.com.mx)