--TEST-- Test vfprintf() function : error conditions (wrong argument types) --CREDITS-- Felix De Vliegher --INI-- precision=14 --FILE-- getMessage() . "\n"; } try { var_dump( vfprintf( $fp, "Foo %y fake", "not available" ) ); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } rewind( $fp ); var_dump( stream_get_contents( $fp ) ); ftruncate( $fp, 0 ); rewind( $fp ); // Close handle fclose( $fp ); ?> --CLEAN-- --EXPECT-- -- Testing vfprintf() function with wrong variable types as argument -- vfprintf(): Argument #2 ($format) must be of type string, array given Unknown format specifier 'y' string(0) ""