/PHP-7.1/ext/standard/tests/file/ |
H A D | fscanf.phpt | 2 fscanf() tests 6 $filename = dirname(__FILE__)."/fscanf.dat"; 8 var_dump(fscanf()); 9 var_dump(fscanf(array())); 10 var_dump(fscanf(array(), array())); 15 var_dump(fscanf($fp, "%d", $v)); 20 var_dump(fscanf($fp, "%s", $v)); 25 var_dump(fscanf($fp, "%s", $v, $v1)); 33 var_dump(fscanf($fp, "", $v, $v1)); 50 var_dump(fscanf($fp, "%s", $v)); [all …]
|
H A D | fscanf_error.phpt | 2 Test fscanf() function: error conditions 6 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 10 echo "*** Testing fscanf() for error conditions ***\n"; 21 var_dump( fscanf() ); 27 var_dump( fscanf($file_handle) ); 31 var_dump( fscanf($file_handle, "%s") ); 37 var_dump( fscanf($file_handle, "%d%s%f", $int_var, $string_var) ); 46 // looping to use various invalid formats with fscanf() 51 var_dump( fscanf($file_handle, $format) ); 64 *** Testing fscanf() for error conditions *** [all …]
|
H A D | fscanf_variation1.phpt | 2 Test fscanf() function: usage variations - return type without third argument 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* test fscanf() for its return type */ 15 echo "*** Testing fscanf(): for its return type without third argument ***\n"; 28 // capturing the return value from fscanf() called without third argument 29 $return_value = fscanf($file_handle, "%s"); 42 *** Testing fscanf(): for its return type without third argument ***
|
H A D | fscanf_variation14.phpt | 2 Test fscanf() function: usage variations - string formats with strings 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 98 var_dump( fscanf($file_handle,$string_format) ); 566 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 569 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 572 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 575 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 578 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 581 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 584 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation12.phpt | 2 Test fscanf() function: usage variations - float formats with strings 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan strings using different float format types */ 15 echo "*** Test fscanf(): different float format types with strings ***\n"; 70 var_dump( fscanf($file_handle,$float_format) ); 84 *** Test fscanf(): different float format types with strings *** 502 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 505 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 508 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 511 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation31.phpt | 2 Test fscanf() function: usage variations - octal formats with strings 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan strings using different octal format types */ 15 echo "*** Test fscanf(): different octal format types with strings ***\n"; 70 var_dump( fscanf($file_handle,$octal_format) ); 84 *** Test fscanf(): different octal format types with strings *** 502 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 505 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 508 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 511 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation37.phpt | 2 Test fscanf() function: usage variations - hexa formats with strings 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan strings using different hexa format types */ 15 echo "*** Test fscanf(): different hexa format types with strings ***\n"; 70 var_dump( fscanf($file_handle,$hexa_format) ); 84 *** Test fscanf(): different hexa format types with strings *** 502 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 505 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 508 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 511 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation43.phpt | 2 Test fscanf() function: usage variations - unsigned formats with strings 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan strings using different unsigned format types */ 15 echo "*** Test fscanf(): different unsigned format types with strings ***\n"; 70 var_dump( fscanf($file_handle,$unsigned_format) ); 84 *** Test fscanf(): different unsigned format types with strings *** 502 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 505 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 508 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 511 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation49.phpt | 2 Test fscanf() function: usage variations - scientific formats with strings 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan strings using different scientific format types */ 70 var_dump( fscanf($file_handle,$scientific_format) ); 84 *** Test fscanf(): different scientific format types with strings *** 502 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 505 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 508 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 511 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 514 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation6.phpt | 2 Test fscanf() function: usage variations - integer formats with strings 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan strings using different integer format types */ 15 echo "*** Test fscanf(): different integer format types with strings ***\n"; 70 var_dump( fscanf($file_handle,$int_format) ); 84 *** Test fscanf(): different integer format types with strings *** 502 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 505 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 508 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 511 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation11.phpt | 2 Test fscanf() function: usage variations - float formats with arrays 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan arrays using different float format types */ 15 echo "*** Test fscanf(): different float format types with arrays ***\n"; 69 var_dump( fscanf($file_handle,$float_format) ); 83 *** Test fscanf(): different float format types with arrays *** 393 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 396 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 399 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 402 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation30.phpt | 2 Test fscanf() function: usage variations - octal formats with arrays 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan arrays using different octal format types */ 15 echo "*** Test fscanf(): different octal format types with arrays ***\n"; 69 var_dump( fscanf($file_handle,$octal_format) ); 83 *** Test fscanf(): different octal format types with arrays *** 393 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 396 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 399 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 402 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation36.phpt | 2 Test fscanf() function: usage variations - hexa formats with arrays 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan arrays using different hexa format types */ 15 echo "*** Test fscanf(): different hexa format types with arrays ***\n"; 64 var_dump( fscanf($file_handle,$hexa_format) ); 78 *** Test fscanf(): different hexa format types with arrays *** 388 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 391 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 394 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 397 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation42.phpt | 2 Test fscanf() function: usage variations - unsigned formats with arrays 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan arrays using different unsigned format types */ 15 echo "*** Test fscanf(): different unsigned format types with arrays ***\n"; 64 var_dump( fscanf($file_handle,$unsigned_format) ); 78 *** Test fscanf(): different unsigned format types with arrays *** 388 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 391 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 394 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 397 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation5.phpt | 2 Test fscanf() function: usage variations - integer formats with arrays 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan arrays using different integer format types */ 15 echo "*** Test fscanf(): different integer format types with arrays ***\n"; 64 var_dump( fscanf($file_handle,$int_format) ); 78 *** Test fscanf(): different integer format types with arrays *** 388 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 391 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 394 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 397 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation48.phpt | 2 Test fscanf() function: usage variations - scientific formats with arrays 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan arrays using different scientific format types */ 64 var_dump( fscanf($file_handle,$scientific_format) ); 78 *** Test fscanf(): different scientific format types with arrays *** 388 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 391 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 394 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 397 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 400 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation21.phpt | 2 Test fscanf() function: usage variations - char formats with float values 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan float values using different char format types */ 72 var_dump( fscanf($file_handle,$char_format) ); 86 *** Test fscanf(): different char format types with float values *** 468 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 471 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 474 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 477 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 480 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation28.phpt | 2 Test fscanf() function: usage variations - octal formats with float values 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan float values using different octal format types */ 73 var_dump( fscanf($file_handle,$octal_format) ); 87 *** Test fscanf(): different octal format types with float values *** 469 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 472 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 475 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 478 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 481 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation3.phpt | 2 Test fscanf() function: usage variations - integer formats with float values 13 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 17 /* Test fscanf() to scan float values using different integer format types */ 74 var_dump( fscanf($file_handle,$int_format) ); 88 *** Test fscanf(): different integer format types with float values *** 470 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 473 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 476 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 479 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 482 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation34.phpt | 2 Test fscanf() function: usage variations - hexa formats with float values 13 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 17 /* Test fscanf() to scan float values using different hexa format types */ 78 var_dump( fscanf($file_handle,$hexa_format) ); 92 *** Test fscanf(): different hexa format types with float values *** 474 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 477 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 480 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 483 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 486 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation40.phpt | 2 Test fscanf() function: usage variations - unsigned formats with float values 13 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 74 var_dump( fscanf($file_handle,$unsigned_format) ); 470 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 473 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 476 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 479 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 482 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 485 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 488 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation46.phpt | 2 Test fscanf() function: usage variations - scientific formats with float values 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 68 var_dump( fscanf($file_handle,$scientific_format) ); 464 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 467 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 470 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 473 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 476 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 479 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 482 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation15.phpt | 2 Test fscanf() function: usage variations - string formats with float values 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan float values using different string format types */ 72 var_dump( fscanf($file_handle,$string_format) ); 86 *** Test fscanf(): different string format types with float values *** 468 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 471 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 474 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 477 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 480 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation18.phpt | 2 Test fscanf() function: usage variations - string formats with integer values 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan integer values using different string format types */ 76 var_dump( fscanf($file_handle,$string_format) ); 544 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 547 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 550 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 553 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 556 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 559 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|
H A D | fscanf_variation24.phpt | 2 Test fscanf() function: usage variations - char formats with strings 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 11 /* Test fscanf() to scan strings using different char format types */ 15 echo "*** Test fscanf(): different char format types with strings ***\n"; 74 var_dump( fscanf($file_handle,$char_format) ); 88 *** Test fscanf(): different char format types with strings *** 536 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 539 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 542 Warning: fscanf(): Bad scan conversion character " " in %s on line %d 545 Warning: fscanf(): Bad scan conversion character " " in %s on line %d [all …]
|