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
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
I reported a bug some weeks ago regarding how is_callable() works in PHP
5.4:
https://bugs.php.net/bug.php?id=51527
Here's the situation:
class Foo
{
public function bar()
{
return __METHOD__;
}
}
If I create a callback with either of these va