--TEST-- Test vfprintf() function : error conditions (various conditions) --CREDITS-- Felix De Vliegher --INI-- precision=14 --FILE-- getMessage(), "\n"; } try { var_dump( vfprintf( $fp, 'Foo %$c-0202Sd', array( 2 ) ) ); } catch(\ValueError $e) { print('Error found: '.$e->getMessage().".\n"); } // Close handle fclose( $fp ); ?> --CLEAN-- --EXPECT-- -- Testing vfprintf() function with other strangeties -- vfprintf(): Argument #1 ($stream) must be of type resource, string given Error found: Argument number must be greater than zero.