--TEST-- Memory corruption when mixing __callStatic() and FFI --EXTENSIONS-- ffi --SKIPIF-- --INI-- ffi.enable=1 --FILE-- fprintf($ffi->stdout, "FFI\n"); $ffi->fflush($ffi->stdout); Test::baz(); ?> --EXPECT-- foo called bar called FFI baz called