]> granicus.if.org Git - php/commit
Move list() condition into assign_znode
authorNikita Popov <nikic@php.net>
Tue, 23 Sep 2014 19:19:11 +0000 (21:19 +0200)
committerNikita Popov <nikic@php.net>
Wed, 24 Sep 2014 10:06:18 +0000 (12:06 +0200)
commit3e042e1f837bb0ef46257d6ff30f0073466b6544
treed233c0a1ee49235278599b6bbc3eec1160685224
parent5a051e8a1a079d1b21e1c24510705c7c81b334a8
Move list() condition into assign_znode

The condition in compile_foreach was using ->attr instead of ->kind
and as such never passed. It only worked because assign_znode already
supported this case by indirecting via zend_compile_assign. Now it
implements it with a direct call.
Zend/zend_compile.c