Page 1 of 1

__autoload

Posted: Tue Jun 22, 2010 3:07 am
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!

Re: __autoload

Posted: Tue Jun 22, 2010 4:46 am
by dejvos
Ok, the problem was in the cyclic autoloading.