Re: [PHP-DEV] 5.4 and is_callable()

2012-02-24 Thread jpauli
On Thu, Feb 23, 2012 at 9:03 PM, Stas Malyshev wrote: > Hi! > > > If I create a callback with either of these values: >> >> * $callback = 'Foo::bar'; >> * $callback = array('Foo', 'Bar'); >> >> is_callable() now returns true. In PHP 5.2 and 5.3, it returned false, >> which is what I'd exp

Re: [PHP-DEV] 5.4 and is_callable()

2012-02-23 Thread Stas Malyshev
Hi! If I create a callback with either of these values: * $callback = 'Foo::bar'; * $callback = array('Foo', 'Bar'); is_callable() now returns true. In PHP 5.2 and 5.3, it returned false, which is what I'd expect. I tried the code from the bug and it returned true for me in 5.3: c