Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 192891

Summary: Exceptions optimized out in dev-php5/eaccelerator-0.9.5.1 + >=dev-php5/php-5.2.1
Product: Gentoo Linux Reporter: Chris Ribble <chris>
Component: [OLD] ServerAssignee: PHP Bugs <php-bugs>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://eaccelerator.net/wiki/Release-0.9.5.2
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris Ribble 2007-09-18 06:41:56 UTC
With versions of php greater than 5.2.1 the eaccelerator optimizer engine is unable to properly handle exceptions in PHP scripts. This issue is fixed in eaccelerator-0.9.5.2, but that version is not in the portage tree currently.

All users of >=dev-php5/php-5.2.1 in effect have no ability to use exceptions in their PHP code if they are using < eaccelerator-0.9.5.2. Please bump this version as this is a major problem for me (and I assume many others) on servers running this software combination.

Reproducible: Always

Steps to Reproduce:
1. Install dev-php5/eaccelerator-0.9.5.1 and dev-php5/php.
2. Restart your web server so that PHP loads the eaccelerator module.
3. Create a PHP script with a 'try'/'catch' block.
4. Add a section of code which throws an exception inside the 'try' block.
5. Execute the script in such a way that the exception is thrown.
6. Notice that PHP says "Uncaught exception in [file] at line [line]"

Actual Results:  
PHP says that the exception is unhandled, despite the 'catch' block.

Expected Results:  
Exceptions should be properly caught.

Please bump dev-php5/php-eaccelerator-0.9.5.2
Comment 1 Christian Hoffmann (RETIRED) gentoo-dev 2007-09-19 16:04:39 UTC
(In reply to comment #0)
> All users of >=dev-php5/php-5.2.1 in effect have no ability to use exceptions
> in their PHP code if they are using < eaccelerator-0.9.5.2. Please bump this
> version as this is a major problem for me (and I assume many others) on servers
> running this software combination.
Are you really sure this is still reproducable on Gentoo's eaccelerator-0.9.5.1? This is supposed to be fixed (as such marking as duplicate of another bump request bug), although it looks like it was fixed without a revision bump, so it might be necessary to re-merge eaccelerator.

*** This bug has been marked as a duplicate of bug 192150 ***