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

2009-04-01 Thread Greg Beaver
Stan Vassilev | FM wrote: > > Hi, > > There is a way to implement in some future release of PHP (without > hurting performance), but it's not in the scope of 5.3. > > Each namespace should have a meta file listing all symbols present in > it. The parser loads that static file at parse time and r

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

2009-04-01 Thread Stan Vassilev | FM
Hi, There is a way to implement in some future release of PHP (without hurting performance), but it's not in the scope of 5.3. Each namespace should have a meta file listing all symbols present in it. The parser loads that static file at parse time and resolves all naming at parse time, lea

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

2009-03-31 Thread Pablo Fischer
Hi, On Tue, Mar 31, 2009 at 7:55 PM, Stanislav Malyshev wrote: > Hi! > >> Is there a way to import all the SPL classes at once? ;) (use SPL\*, >> use PDO\*).. just wondering. > > No, there's no way to do this. Oh, well :-) I'll use the suggestions of all of you :-) By the way, since I'm playing

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

2009-03-31 Thread Stanislav Malyshev
Hi! Is there a way to import all the SPL classes at once? ;) (use SPL\*, use PDO\*).. just wondering. No, there's no way to do this. -- Stanislav Malyshev, Zend Software Architect s...@zend.com http://www.zend.com/ (408)253-8829 MSN: s...@zend.com -- PHP Internals - PHP Runtime Developmen

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

2009-03-31 Thread Pablo Fischer
Hi, So definetly I need to prepend the \ or declare the "usage" of the class at the beginning in order to use classes declared in the global scope? This means SPL classes and 3rd-party classes. Is there a way to import all the SPL classes at once? ;) (use SPL\*, use PDO\*).. just wondering. Than

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

2009-03-31 Thread Stan Vassilev | FM
Hi, Try this: use PDO; Regards, Stan Vassilev - Hello, I've been writing in the last days a web application on PHP 5.3 (beta1 although RC was released) cause of all the goodies it brings, specially the names

[PHP-DEV] User namespaces and PHP classes

2009-03-31 Thread Pablo Fischer
Hello, I've been writing in the last days a web application on PHP 5.3 (beta1 although RC was released) cause of all the goodies it brings, specially the namespaces, however I've been a bit stuck and *surprised* that the only way to use a PHP class (like Iterators, PDO, etc) is to call them from t