[PHP-DEV] User namespaces and PHP classes

2009-03-31 Thread Pablo Fischer
ameter received by the __autoload functions. I don't have any problems to prepend the "\" but I think PHP should catch that stuff automatically as it does with constants and functions, no? Find a bit annoying to write the "\" to PHP classes I want to use imho. Thanks! -- Pablo Fischer (pablo [arroba/at] pablo.com.mx) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] User namespaces and PHP classes

2009-03-31 Thread Pablo Fischer
someone > can use inside their autoload functions: > > spl_namespace_alias('/PDO', $classname); // where $classname is the > parameter received by the __autoload functions. > > I don't have any problems to prepend the "\" but I think PHP should > catc

Re: [PHP-DEV] User namespaces and PHP classes

2009-03-31 Thread Pablo Fischer
of you :-) By the way, since I'm playing with betas and rcs of 5.3, is there any list of bugs or tests I could help with? I'm doing development on a MacBookPro 4.1 with Mac OS X 10.5.4 if that works for you :) Thanks :) -- Pablo Fischer (pablo [arroba/at] pablo.com.mx) -- PHP Interna

[PHP-DEV] get_called_class returns empty on spl_autoload*

2009-04-26 Thread Pablo Fischer
) "Calling for Foo" Fatal error: Class 'Foo' not found in /Users/pablo/Projects/reptilia/test.php on line 17 Thanks! -- Pablo Fischer (pablo [arroba/at] pablo.com.mx) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] get_called_class returns empty on spl_autoload*

2009-04-26 Thread Pablo Fischer
Hm, probably it's my version of PHP 5.3, I noticed I've beta1 I'll compile a new one and let you know if I still have issues :-) I'm also testing on MacOS. On Sun, Apr 26, 2009 at 6:13 PM, Etienne Kneuss wrote: > Hello, > > On Sun, Apr 26, 2009 at 11:28 PM, P

Re: [PHP-DEV] get_called_class returns empty on spl_autoload*

2009-04-27 Thread Pablo Fischer
5.3.0RC1 (cli) (built: Apr 27 2009 11:12:36) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies As I said, not sure if this is the way spl_autoload_register should work with get_called_class(). thanks! On Sun, Apr 26, 2009 at 6:27 PM, Pablo Fischer

Re: [PHP-DEV] get_called_class returns empty on spl_autoload*

2009-04-27 Thread Pablo Fischer
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 wrote: > On Mon, Apr 27, 2009 at 18:19, Pablo Fischer wrote: >> Hi, >> >> Well, I upgraded my php5.3 version and