1--TEST-- 2Bug #79749 (Converting FFI instances to bool fails) 3--SKIPIF-- 4<?php 5if (!extension_loaded('ffi')) die('skip ffi extension not available'); 6?> 7--FILE-- 8<?php 9$ffi = FFI::cdef('typedef int dummy;'); 10var_dump((bool) $ffi); 11var_dump((bool) FFI::type('int')); 12var_dump((bool) FFI::new('int')); 13?> 14--EXPECT-- 15bool(true) 16bool(true) 17bool(true) 18