zecure / shadowd_php

A Shadow Daemon connector for PHP applications
GNU General Public License v2.0
34 stars 11 forks source link

some php fatal error when running some application #4

Closed elico closed 8 years ago

elico commented 8 years ago

I have installed and configured shadowd and the shadowd_php connector in the php.ini. Now when I run a simple phpinfo() it's running fine also when I ran some echo "X"; everything works fine. But when I am trying to run applications like phpsysinfo I am starting to get some errors. I made sure that phpsysinfo works without the auto_prepend and after I add it and restart the service I see errors like: PHP Fatal error: Class 'Template' not found in /var/www/html/sysinfo/index.php on line 71

I have enabled debug but it seems like something is either no being loaded or something is being loaded wrongly in the connector.

zit-hb commented 8 years ago

Thanks for the report. PhpSysInfo is using the old (not recommended) __autoload method to load classes. It was not called anymore, because shadowd_php uses (the recommended) spl_autoload_register. I have released a new version (2.0.1) that fixes this problem.

Best regards, Hendrik

elico commented 8 years ago

Thank you very very much!