__autoload

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dejvos
Forum Contributor
Posts: 122
Joined: Tue Mar 10, 2009 8:40 am

__autoload

Post by dejvos »

Hi,

I use an autoload function in my PHP script callable from command line. It works properly but on one line it is suddenly not called and the script returns:
PHP Fatal error: Class 'Sql' not found in /var/www/htdocs/.../SQL_Relation.php on line 48
.

The autoload works four times before but in the constructor of SQL_Relation object it's suddenly not called.

Do you have any idea?

Thanks!
dejvos
Forum Contributor
Posts: 122
Joined: Tue Mar 10, 2009 8:40 am

Re: __autoload

Post by dejvos »

Ok, the problem was in the cyclic autoloading.
Post Reply