Home
last modified time | relevance | path

Searched refs:fscanf (Results 1 – 25 of 66) sorted by relevance

123

/PHP-7.4/ext/standard/tests/file/
H A Dfscanf.phpt2 fscanf() tests
6 $filename = __DIR__."/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));
33 var_dump(fscanf($fp, "", $v, $v1));
50 var_dump(fscanf($fp, "%s", $v));
57 var_dump(fscanf($fp, "%s%d", $v));
[all …]
H A Dfscanf_variation51.phpt2 Test fscanf() function: usage variations - file opened in write only mode
7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] );
11 /* Test fscanf() to scan a file for read when file is opened inwrite only mode */
15 echo "*** Test fscanf(): to read from a file opened in write only mode ***\n";
50 var_dump( fscanf($file_handle,$format) );
69 *** Test fscanf(): to read from a file opened in write only mode ***
73 Notice: fscanf(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
76 Notice: fscanf(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
79 Notice: fscanf(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
82 Notice: fscanf(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
[all …]
H A Dfscanf_error.phpt2 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 Dfscanf_variation1.phpt2 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 Dfscanf_variation14.phpt2 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 Dfscanf_variation6.phpt2 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 Dfscanf_variation12.phpt2 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 Dfscanf_variation31.phpt2 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 Dfscanf_variation37.phpt2 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 Dfscanf_variation43.phpt2 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 Dfscanf_variation49.phpt2 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 Dfscanf_variation42.phpt2 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 Dfscanf_variation11.phpt2 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 Dfscanf_variation30.phpt2 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 Dfscanf_variation36.phpt2 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 Dfscanf_variation48.phpt2 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 Dfscanf_variation5.phpt2 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 Dfscanf_variation34.phpt2 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 Dfscanf_variation40.phpt2 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 Dfscanf_variation46.phpt2 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 Dfscanf_variation15.phpt2 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 Dfscanf_variation21.phpt2 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 Dfscanf_variation28.phpt2 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 Dfscanf_variation3.phpt2 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 …]
/PHP-7.4/ext/spl/tests/
H A Dbug52573.phpt2 Bug #52573 (SplFileObject::fscanf Segmentation fault)
8 var_dump($f->fscanf('<?php // %s', $result));
10 var_dump($f->fscanf('<?php // %s'));

Completed in 42 milliseconds

123