com php-src: Fix uninitialized value with extension traits: NEWS Zend/zend_compile.c

From: Date: Mon, 04 May 2015 02:33:26 +0000
Subject: com php-src: Fix uninitialized value with extension traits: NEWS Zend/zend_compile.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86578@lists.php.net to get a copy of this message
Commit: 56fdae9018818f63c77c7cc3f3edb80ea3784d45 Author: John Boehr <jbboehr@gmail.com> Sun, 3 May 2015 14:29:19 -0700 Committer: Xinchen Hui <laruence@php.net> Mon, 4 May 2015 10:33:26 +0800 Parents: 428d0983cd785b9cc91f291d5b22c4411a966f94 Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=56fdae9018818f63c77c7cc3f3edb80ea3784d45 Log: Fix uninitialized value with extension traits Changed paths: M NEWS M Zend/zend_compile..c Diff: diff --git a/NEWS b/NEWS index cb2d07d..373098d 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,8 @@ PHP NEWS 14 Jun 2015, PHP 5.6.9 - Core: + . Fixed bug #69566 (Conditional jump or move depends on uninitialised value + in extension trait). (jbboehr at gmail dot com) . Fixed bug #69467 (Wrong checked for the interface by using Trait). (Laruence) . Fixed bug #69420 (Invalid read in zend_std_get_method). (Laruence) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 0f343e7..d2f9fbc 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -4101,7 +4101,7 @@ static int zend_fixup_trait_method(zend_function *fn, zend_class_entry *ce TSRML if (fn->common.fn_flags & ZEND_ACC_ABSTRACT) { ce->ce_flags |= ZEND_ACC_IMPLICIT_ABSTRACT_CLASS; } - if (fn->op_array.static_variables) { + if (fn->type == ZEND_USER_FUNCTION && fn->op_array.static_variables) { ce->ce_flags |= ZEND_HAS_STATIC_IN_METHODS; } }

« previous php.cvs (#86578) next »