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
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.
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
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";
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 _
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
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