Bug #69566 [Opn->Csd]: Conditional jump or move depends on uninitialised value in extension trait
| From: | laruence@php.net | Date: | Mon, 04 May 2015 02:37:04 +0000 |
| Subject: | Bug #69566 [Opn->Csd]: Conditional jump or move depends on uninitialised value in extension trait | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-192466@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69566&edit=1
ID: 69566
Updated by: laruence@php.net
Reported by: jbboehr at gmail dot com
Summary: Conditional jump or move depends on uninitialised
value in extension trait
-Status: Open
+Status: Closed
Type: Bug
Package: Unknown/Other Function
Operating System: Ubuntu 14.04
PHP Version: 5.6.8
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=6b5ca7202fe95240c0ecc17861c050683547a816
Log: Fixed #69566 in master
Previous Comments:
------------------------------------------------------------------------
[2015-05-03 21:38:37] jbboehr at gmail dot com
Description:
------------
I've been trying to make a trait in a PHP extension, and there doesn't seem to be any APIs
for it, but I did manage to get it working, however when running
TEST_PHP_ARGS=-m make test
I'm getting this:
==12138== Conditional jump or move depends on uninitialised value(s)
==12138== at 0x86FF52: zend_fixup_trait_method (zend_compile.c:4102)
==12138== by 0x8A9BB7: zend_hash_apply_with_argument (zend_hash.c:666)
==12138== by 0x87AE1E: zend_do_bind_traits (zend_compile.c:4369)
==12138== by 0x8E2273: ZEND_BIND_TRAITS_SPEC_HANDLER (zend_vm_execute.h:1163)
==12138== by 0x8D988A: execute_ex (zend_vm_execute.h:363)
==12138== by 0x89C9B2: zend_execute_scripts (zend.c:1341)
==12138== by 0x82B739: php_execute_script (main.c:2597)
==12138== by 0x94F0E4: do_cli (php_cli.c:994)
==12138== by 0x446BE5: main (php_cli.c:1378)
==12138==
It still compiles and passes the tests, but I'm worried about undefined handling.
Test script:
---------------
Unfortunately, it's in an extension, so to reproduce compile https://github.com/jbboehr/php-psr and run
TEST_PHP_ARGS=-m make test
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69566&edit=1