]> granicus.if.org Git - php/commit
Fix static closure error in call_user_func opcode
authorNikita Popov <nikic@php.net>
Fri, 8 May 2015 13:05:59 +0000 (15:05 +0200)
committerNikita Popov <nikic@php.net>
Fri, 8 May 2015 13:17:15 +0000 (15:17 +0200)
commit8f9f21e8d24c1b48dc271330e38f2931086c0c94
tree7a5e6cdf44b452b54ca51d683dcf82b51544612d
parent9d4465e480675dd5e1aa464c4cf2a0c9d646a65a
Fix static closure error in call_user_func opcode

I'm assuming this is the only error that is_callable() can generate
with retval=1.

This problem manifested after making closures in static methods
not implicitly static, but would also occur when binding any non-static
closure to a scope without a $this.
Zend/tests/call_user_func_closure_from_static_method.phpt [new file with mode: 0644]
Zend/zend_vm_def.h
Zend/zend_vm_execute.h