Home
last modified time | relevance | path

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

123

/PHP-8.2/ext/standard/tests/file/
H A Dfscanf_variation51.phpt2 Test fscanf() function: usage variations - file opened in write only mode
6 /* Test fscanf() to scan a file for read when file is opened inwrite only mode */
10 echo "*** Test fscanf(): to read from a file opened in write only mode ***\n";
45 var_dump( fscanf($file_handle,$format) );
64 *** Test fscanf(): to read from a file opened in write only mode ***
68 Notice: fscanf(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
71 Notice: fscanf(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
74 Notice: fscanf(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
77 Notice: fscanf(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
80 Notice: fscanf(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
[all …]
H A Dfscanf.phpt2 fscanf() tests
6 $filename = __DIR__."/fscanf.dat";
11 var_dump(fscanf($fp, "%d", $v));
16 var_dump(fscanf($fp, "%s", $v));
22 fscanf($fp, "%s", $v, $v1);
34 fscanf($fp, "", $v, $v1);
46 fscanf($fp, "%.a", $v, $v1);
58 var_dump(fscanf($fp, "%s", $v));
66 var_dump(fscanf($fp, "%s%d", $v));
75 $filename = __DIR__."/fscanf.dat";
H A Dfscanf_variation1.phpt2 Test fscanf() function: usage variations - return type without third argument
6 /* test fscanf() for its return type */
10 echo "*** Testing fscanf(): for its return type without third argument ***\n";
23 // capturing the return value from fscanf() called without third argument
24 $return_value = fscanf($file_handle, "%s");
37 *** Testing fscanf(): for its return type without third argument ***
H A Dfscanf_error.phpt2 Test fscanf() function: error conditions
5 echo "*** Testing fscanf() for error conditions ***\n";
17 fscanf($file_handle, "%s");
27 fscanf($file_handle, "%d%s%f", $int_var, $string_var);
37 // looping to use various invalid formats with fscanf()
43 var_dump(fscanf($file_handle, $format));
59 *** Testing fscanf() for error conditions ***
60 fscanf(): supplied resource is not a valid File-Handle resource
H A Dfscanf_variation54.phpt2 Test fscanf() function: usage variations - objects
6 /* Test fscanf() to scan a file to read objects */
10 echo "*** Test fscanf(): to read objects from a file ***\n";
49 var_dump( fscanf($file_handle,$format) );
63 *** Test fscanf(): to read objects from a file ***
H A Dfscanf_variation10.phpt2 Test fscanf() function: usage variations - float formats with resource
6 /* Test fscanf() to scan resource type using different float format types */
10 echo "*** Test fscanf(): different float format types with resource ***\n";
60 var_dump( fscanf($file_handle,$float_format) );
81 *** Test fscanf(): different float format types with resource ***
H A Dfscanf_variation29.phpt2 Test fscanf() function: usage variations - octal formats with resource
6 /* Test fscanf() to scan resource type using different octal format types */
10 echo "*** Test fscanf(): different octal format types with resource ***\n";
60 var_dump(fscanf($file_handle,$octal_format));
81 *** Test fscanf(): different octal format types with resource ***
H A Dfscanf_variation35.phpt2 Test fscanf() function: usage variations - hexa formats with resource
6 /* Test fscanf() to scan resource type using different hexa format types */
10 echo "*** Test fscanf(): different hexa format types with resource ***\n";
55 var_dump(fscanf($file_handle,$hexa_format));
76 *** Test fscanf(): different hexa format types with resource ***
H A Dfscanf_variation4.phpt2 Test fscanf() function: usage variations - integer formats with resource
6 /* Test fscanf() to scan resource type using different integer format types */
10 echo "*** Test fscanf(): different integer format types with resource ***\n";
56 var_dump(fscanf($file_handle,$int_format));
77 *** Test fscanf(): different integer format types with resource ***
H A Dfscanf_variation41.phpt2 Test fscanf() function: usage variations - unsigned formats with resource
6 /* Test fscanf() to scan resource type using different unsigned format types */
10 echo "*** Test fscanf(): different unsigned format types with resource ***\n";
55 var_dump(fscanf($file_handle,$unsigned_format));
76 *** Test fscanf(): different unsigned format types with resource ***
H A Dfscanf_variation47.phpt2 Test fscanf() function: usage variations - scientific formats with resource
6 /* Test fscanf() to scan resource type using different scientific format types */
10 echo "*** Test fscanf(): different scientific format types with resource ***\n";
55 var_dump(fscanf($file_handle,$scientific_format));
76 *** Test fscanf(): different scientific format types with resource ***
H A Dfscanf_variation22.phpt2 Test fscanf() function: usage variations - char formats with resource
6 /* Test fscanf() to scan resource type using different char format types */
10 echo "*** Test fscanf(): different char format types with resource ***\n";
59 var_dump(fscanf($file_handle,$char_format));
80 *** Test fscanf(): different char format types with resource ***
H A Dfscanf_variation25.phpt2 Test fscanf() function: usage variations - char formats with boolean
6 /* Test fscanf() to scan boolean data using different char format types */
10 echo "*** Test fscanf(): different char format types with boolean data ***\n";
56 var_dump(fscanf($file_handle,$char_format));
73 *** Test fscanf(): different char format types with boolean data ***
H A Dfscanf_variation32.phpt2 Test fscanf() function: usage variations - octal formats with boolean
6 /* Test fscanf() to scan boolean data using different octal format types */
10 echo "*** Test fscanf(): different octal format types with boolean data ***\n";
57 var_dump(fscanf($file_handle,$octal_format));
74 *** Test fscanf(): different octal format types with boolean data ***
H A Dfscanf_variation38.phpt2 Test fscanf() function: usage variations - hexa formats with boolean
6 /* Test fscanf() to scan boolean data using different hexa format types */
10 echo "*** Test fscanf(): different hexa format types with boolean data ***\n";
52 var_dump(fscanf($file_handle,$hexa_format));
69 *** Test fscanf(): different hexa format types with boolean data ***
H A Dfscanf_variation13.phpt2 Test fscanf() function: usage variations - float formats with boolean
6 /* Test fscanf() to scan boolean data using different float format types */
10 echo "*** Test fscanf(): different float format types with boolean data ***\n";
52 var_dump(fscanf($file_handle,$float_format));
69 *** Test fscanf(): different float format types with boolean data ***
H A Dfscanf_variation16.phpt2 Test fscanf() function: usage variations - string formats with resource
6 /* Test fscanf() to scan resource type using different string format types */
10 echo "*** Test fscanf(): different string format types with resource ***\n";
59 var_dump(fscanf($file_handle,$string_format));
80 *** Test fscanf(): different string format types with resource ***
H A Dfscanf_variation19.phpt2 Test fscanf() function: usage variations - string formats with boolean
6 /* Test fscanf() to scan boolean data using different string format types */
10 echo "*** Test fscanf(): different string format types with boolean data ***\n";
56 var_dump(fscanf($file_handle,$string_format));
73 *** Test fscanf(): different string format types with boolean data ***
H A Dfscanf_variation44.phpt2 Test fscanf() function: usage variations - unsigned formats with boolean
6 /* Test fscanf() to scan boolean data using different unsigned format types */
10 echo "*** Test fscanf(): different unsigned format types with boolean data ***\n";
52 var_dump(fscanf($file_handle,$unsigned_format));
69 *** Test fscanf(): different unsigned format types with boolean data ***
H A Dfscanf_variation50.phpt2 Test fscanf() function: usage variations - scientific formats with boolean
6 /* Test fscanf() to scan boolean data using different scientific format types */
10 echo "*** Test fscanf(): different scientific format types with boolean data ***\n";
52 var_dump(fscanf($file_handle,$scientific_format));
69 *** Test fscanf(): different scientific format types with boolean data ***
H A Dfscanf_variation7.phpt2 Test fscanf() function: usage variations - integer formats with boolean
6 /* Test fscanf() to scan boolean data using different integer format types */
10 echo "*** Test fscanf(): different integer format types with boolean data ***\n";
52 var_dump(fscanf($file_handle,$int_format));
69 *** Test fscanf(): different integer format types with boolean data ***
H A Dfscanf_variation52.phpt2 Test fscanf() function: usage variations - empty file
6 /* Test fscanf() to scan an empty file */
10 echo "*** Test fscanf(): to read an empty file ***\n";
43 var_dump( fscanf($file_handle,$format) );
62 *** Test fscanf(): to read an empty file ***
/PHP-8.2/ext/spl/tests/SplFileObject/
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'));
H A DSplFileObject_fscanf_basic.phpt2 SplFileObject::fscanf function - basic functionality test
6 var_dump($obj->fscanf('%s'));
H A Dbug51532.phpt2 SPL: Allow valid extension of SplFileObject::fscanf
7 public function fscanf($format, &...$vars): array|int|null {

Completed in 35 milliseconds

123