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

Bug #11999 Services_Digg doesn't play nicely with APC
Submitted: 2007-09-06 20:15 UTC
From: eliw Assigned: jstump
Status: Closed Package: Services_Digg (version 0.2.1)
PHP Version: 5.2.0 OS: Debian
Roadmaps: (Not assigned)    
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 : 35 - 27 = ?

 
 [2007-09-06 20:15 UTC] eliw (Eli White)
Description: ------------ I'm unsure exactly 'why'; however, something about the way that Services_Digg conditionally includes some files (specifically Common.php), causes APC to get confused. Upon requesting a page that happens to use the Stories endpoint ... and THEN requesting a page that uses the User endpoint ... The latter page/call will fail, with it trying to autoload() the Services_Digg_Common class, as it doesn't think it exists. After some testing, moving the require_once() statements for including Common.php, out of each individual & dynamically included component, and instead including it from within Digg.php itself ... Appears to completely solve this issue.

Comments

 [2007-09-13 00:10 UTC] jstump (Joe Stump)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.