phpBeans

PHP5 fatal autoload errors in client

Forum / Client Programming / PHP5 fatal autoload errors in client

Reply         Subscribe         Start new thread         Syndicated Feed (RSS)        

Displaying 1 to 1 of 1 Previous   1   Next
Author Message
Chriscypher

Posts: 4
PHP5 fatal autoload errors in client - Posted: May 2, 2005 - 11:56 AM Quote and reply
If you are using the autoload function for classes in PHP5 and are seeing errors like:
[Mon May  2 14:48:49 2005] [error] PHP Fatal error:  __autoload() [<a href='function.require'>function.require</a>]: Failed opening required 
...


you need to make a change to the supplied client class file: phpbeans.php

on line 214 change:
if (class_exists ('PHP_Bean_' . $name)) {

to
if (class_exists ('PHP_Bean_' . $name, false)) {


What's happening is that while phpBeans is checking to see if a class already exists, it triggers autoload which then fails.

Hope this saves someone some time...

Back to top

Return to Top


  Powered by Sitellite Enterprise PHP CMS