]> granicus.if.org Git - php/commit
Add support for $callable() sytnax with 'Class::method'
authorAaron Piotrowski <aaron@trowski.com>
Fri, 8 May 2015 05:28:54 +0000 (00:28 -0500)
committerJulien Pauli <jpauli@php.net>
Tue, 12 May 2015 11:33:28 +0000 (13:33 +0200)
commit071111ecfc7ba9dabc4dfb2a068744b76540308b
tree30af8b1a204dc653ac0a5d12cf3a51cc1d2e1089
parentf4d6596283888cb4e30b2feedf626c663b8009ed
Add support for $callable() sytnax with 'Class::method'

Using the $callable() syntax when used with a string of
the form 'Class::method' would error as an undefined
function, even if the string passed is_callable() or the
callable type-hint. The fix adds support for the $callable()
syntax for any string accepted by is_callable() or the
callable type-hint.

Fix bug 68475 test with deprecated notice

Reduced scope of unit test.

Added tests with arguments.
Zend/tests/bug68475.phpt [new file with mode: 0644]
Zend/zend_vm_def.h
Zend/zend_vm_execute.h