mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
9dfbcd7248
If `Z_OBJ_HANDLER_P(callable, get_closure)` throws, we must not let the exeception pass to userland, if called through `is_callable()`.
13 lines
270 B
PHP
13 lines
270 B
PHP
--TEST--
|
|
Bug #78543 (is_callable() on FFI\CData throws Exception)
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
$ffi = FFI::cdef(' struct test { int dummy; }; ');
|
|
$test = $ffi->new('struct test');
|
|
var_dump(is_callable($test));
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|