Re: [PHP-DEV] Class names (with regard to autoload)

2009-02-26 Thread M.
Le jeudi 26 février 2009 à 20:27 +, Robin Burchell a écrit : > I've been playing around with autoload lately, and specifically using > autoload to load classes which may be in subdirectories. I came up > with the following test script: The best solution for you is to wait for PHP 5.3.0, then u

Re: [PHP-DEV] Class names (with regard to autoload)

2009-02-26 Thread Lewis Wright
I think what you're doing is effectively the same as doing: $fb = new Part .''. SubPart(); So basically concatenating a new instance of Part, with the results from the function SubPart. Try defining Part as a class and see what error you get. If I'm right, you'll get an undefined function error.

Re: [PHP-DEV] Class names (with regard to autoload)

2009-02-26 Thread Robin Burchell
On Thu, Feb 26, 2009 at 8:48 PM, Guilherme Blanco wrote: > I doubt you'll find a patch to it. > > Mainly, the patch will be against this principle: > Hmm, that wouldn't actually have an impact, as (at least, what I'm aiming for/wanting to do) is not to introduce periods as valid in actual class

Re: [PHP-DEV] Class names (with regard to autoload)

2009-02-26 Thread Stuart
2009/2/26 Robin Burchell > Hi all, > > I've been playing around with autoload lately, and specifically using > autoload to load classes which may be in subdirectories. I came up > with the following test script: > > > function __autoload($sName) > { >echo "autoloading " . $sName . "\n";

Re: [PHP-DEV] Class names (with regard to autoload)

2009-02-26 Thread Guilherme Blanco
I doubt you'll find a patch to it. Mainly, the patch will be against this principle: wrote: > Hi all, > > I've been playing around with autoload lately, and specifically using > autoload to load classes which may be in subdirectories. I came up > with the following test script: > > > function _

[PHP-DEV] Class names (with regard to autoload)

2009-02-26 Thread Robin Burchell
Hi all, I've been playing around with autoload lately, and specifically using autoload to load classes which may be in subdirectories. I came up with the following test script: The first line demonstrates what I'm after ("autoloading Foo.Bar"), and the second seems to give a bit of an odd/incor

[PHP-DEV] Class names

2005-03-14 Thread lingwitt
I would recommend that class names need not be treated as strings: doSomethingWithAClass(ClassName) instead of doSomethingWithAClass("ClassName") As it is, this produces warnings with the right logging. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.ne