History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: OX-5907
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Chris Nutting
Reporter: Chris Nutting
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenX Ad Server

Fatal error (Cannot redeclare pear) in axmlrpc when using APC for some requests

Created: 05/Feb/10 08:03 PM   Updated: 23/Feb/10 08:11 PM
Component/s: OXP: Delivery Engine
Affects Version/s: OpenX 2.8.4
Fix Version/s: OpenX 2.8.5
Security Level: Public (All users can see these issues)

Time Tracking:
Original Estimate: 1h
Original Estimate - 1h
Remaining Estimate: 1h
Remaining Estimate - 1h
Time Spent: Not Specified
Remaining Estimate - 1h


 Description  « Hide
Since upgrading to 2.8.4, some XML-RPC adRequests have been generating errors...

We managed to track the error down to [http://pecl.php.net/APC|APC] getting confused about PEAR libraries...

This was introduced in 2.8.4 by the switch over to use the PHP delivery engine 'compiler' (rather than the ant/java one), this caused the compiler to slurp in PEAR code as well as OpenX code (which didn't happen previously because the Java compiler didn't understand the PHP code as fully as the PHP one does).

The PHP delivery engine compiler needs to be updated to skip PEAR libraries.



 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
Chris Nutting - 05/Feb/10 08:20 PM
PHP delivery engine 'compiler' updated to exclude PEAR libraries

Chris Nutting - 23/Feb/10 08:01 PM
Just wanted to add a note to say that this issue only showed up on production systems using APC, and only under real traffic, I wasn't able to replicate the fatal error locally or with test data on the production machines!, my best guess was that it was something which only showed up when multiple threads were concurrently accessing the APC cache.

This patch was deployed to our production machines and it resolved the issue


Joanna Mazgaj - 23/Feb/10 08:11 PM
Closing.