[Bug 1474276] Re: PHP Fatal error: Inconsistent insteadof definition

Ryan Harper 1474276 at bugs.launchpad.net
Thu Aug 13 14:51:01 UTC 2015


Attaching debdiff with the upstream fix patch applied.

** Patch added: "debdiff"
   https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1474276/+attachment/4444203/+files/php5.9_11_to_12.debdiff

** Description changed:

- 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://bugs.php.net/bug.php?id=68185
+ [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://gist.githubusercontent.com/raharper/ee431e851b1b8bb6ba1d/raw/7dcc99d187a08e3e9e0f33ea47a955b6f1b68038/test_insteadof.sh
+    -O test_insteadof.sh
+    3. run the test
+ 
+ % bash ./test_insteadof.sh; echo $?
+ 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_insteadof.sh; echo $?
+ 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://bugs.php.net/bug.php?id=68185
  
  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://bazaar.launchpad.net/~ubuntu-
  branches/ubuntu/trusty/php5/trusty/view/head:/Zend/zend_compile.c#L4126)
  and the development branch
  (http://bazaar.launchpad.net/~noskcaj/ubuntu/trusty/php5/merge/view/head:/Zend/zend_compile.c#L4116)
  . Both lacks this simple fix. The bug is quite hard to reproduce, as it
  occurs randomly.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1474276

Title:
  PHP Fatal error:  Inconsistent insteadof definition

To manage notifications about this bug go to:
https://bugs.launchpad.net/php/+bug/1474276/+subscriptions



More information about the Ubuntu-server-bugs mailing list