473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

spl_autoload

Hi,

Having experimented with the spl_autoload functions, the following questions
came to my mind:

1) In which order are the possible path/extension combinations tried by
spl_autoload()? It seems that "myclass.php" is always found before
"myclass.mod.php", regardless of the order in which extensions or include
paths are given.

2) Which PHP functions invoke autoload? is_subclass_of() seems to invoke it
for both parameters, even though it doesn't seem to make sense for the
second one.

3) If a class is not found, spl_autoload throws a LogicException. This is,
IMHO, a bit stupid for functions like class_exists(). Can this behaviour be
controlled somehow?

4) Having spl_autoload, is __autoload obsolete?

Greetings,
Thomas
Nov 26 '06 #1
0 1451

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.