Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.8

Request #8396 class_exists callbacks produce problems with __autoload
Submitted: 2006-08-09 03:55 UTC
From: maciekrb at gmail dot com Assigned: auroraeosrose
Status: Closed Package: HTML_AJAX (version 0.5.0)
PHP Version: 5.1.* OS: ALL
Roadmaps: 0.5.1    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 19 - 4 = ?

 
 [2006-08-09 03:55 UTC] maciekrb at gmail dot com (Maciek Ruckgaber)
Description: ------------ When using __autoload function, callbacks to class_exist produce errors trying to load pear classes from include paths. This can be avoided by adding second parameter to class_exists to avoid using the __autoload function to load the class, instead the class will then be loaded from include_path defined paths. Test script: --------------- 757c757 < if (class_exists('pear',false)) { --- > if (class_exists('pear')) { 768c768 < if (class_exists('pear_error',false)) { --- > if (class_exists('pear_error')) {

Comments

 [2006-08-09 05:28 UTC] jeichorn at php dot net (Joshua Eichorn)
Fixed in SVN thanks
 [2006-09-08 01:26 UTC] maciekrb at gmail dot com
Just updated to HTML_AJAX-0.5.0, JSON.php needs to be patched to avoid the __autoload problem, diff with fixed as follows: 758c758 < if (class_exists('pear')) { --- > if (class_exists('pear',false)) { 769c769 < if (class_exists('pear_error')) { --- > if (class_exists('pear_error',false)) { Best regards and congrats !!! HTML_AJAX is now beta !!!
 [2006-10-25 18:00 UTC] auroraeosrose (emsmith)
fixed in svn - thanks