--TEST-- FFI 045: FFI::isNull() --SKIPIF-- --INI-- ffi.enable=1 --FILE-- getMessage()."\n"; } try { var_dump(FFI::isNull(FFI::new("int[0]"))); } catch (Throwable $e) { echo get_class($e) . ": " . $e->getMessage()."\n"; } ?> --EXPECT-- bool(true) bool(false) TypeError: FFI::isNull(): Argument #1 ($ptr) must be of type FFI\CData, null given FFI\Exception: Cannot instantiate FFI\CData of zero size