PHP Fatal error: Inconsistent insteadof definition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php |
Unknown
|
Unknown
|
|||
php5 (Ubuntu) |
Fix Released
|
Medium
|
Ryan Harper | ||
Trusty |
Fix Released
|
Medium
|
Ryan Harper |
Bug Description
[Impact]
* PHP5 programs using traits fail randomly.
* Backporting the Upstream fix resolves the random failure
* The upload incorporates the upstream fix from Samba.
[Test Case]
* On a Trusty 14.04 system:
1. sudo apt-get install php5
2. wget https:/
-O test_insteadof.sh
3. run the test
% bash ./test_
Generating php5 test-case...
Running php5 insteadof test-case...
PHP Fatal error: Inconsistent insteadof definition. The method methodName is to be used from SPACE\trait0, but SPACE\trait0 is also on the exclude list in /root/class.php on line 79
255
4. After applying the updated packages the test exits successfully
% bash ./test_
Generating php5 test-case...
Running php5 insteadof test-case...
End
[Regression Potential]
* None
[Original Description]
The PHP Bug #68185 needs to be merged into Ubuntu PHP 5.5.x sources for 14.04.x, as these are technically speaking unusable for working with traits. For details please have a look on https:/
It has been fixed in the PHP mainline with 5.5.20 / 5.6.4 and been proven as stable.
I checked the current sources in both, the current stable branch (http://
description: | updated |
tags: | added: server-next |
Changed in php5 (Ubuntu Trusty): | |
assignee: | nobody → Ryan Harper (raharper) |
Changed in php5 (Ubuntu): | |
assignee: | nobody → Ryan Harper (raharper) |
tags: | removed: server-next |
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please see https:/ /wiki.ubuntu. com/StableRelea seUpdates# Procedure and https:/ /wiki.ubuntu. com/Sponsorship Process for the procedure to get this updated in both the development release and 14.04.