/PHP-8.4/ext/standard/tests/file/ |
H A D | fscanf_variation51.phpt | 2 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 D | fscanf.phpt | 2 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 D | fscanf_variation1.phpt | 2 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 D | fscanf_error.phpt | 2 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 D | fscanf_variation54.phpt | 2 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 D | fscanf_variation29.phpt | 2 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 D | fscanf_variation41.phpt | 2 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 D | fscanf_variation47.phpt | 2 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 D | fscanf_variation10.phpt | 2 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 D | fscanf_variation35.phpt | 2 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 D | fscanf_variation4.phpt | 2 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 D | fscanf_variation13.phpt | 2 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 D | fscanf_variation16.phpt | 2 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 D | fscanf_variation19.phpt | 2 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 D | fscanf_variation22.phpt | 2 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 D | fscanf_variation38.phpt | 2 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 D | fscanf_variation44.phpt | 2 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 D | fscanf_variation50.phpt | 2 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 D | fscanf_variation25.phpt | 2 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 D | fscanf_variation32.phpt | 2 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 D | fscanf_variation7.phpt | 2 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 D | fscanf_variation52.phpt | 2 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.4/ext/spl/tests/SplFileObject/ |
H A D | bug52573.phpt | 2 Bug #52573 (SplFileObject::fscanf Segmentation fault) 8 var_dump($f->fscanf('<?php // %s', $result)); 10 var_dump($f->fscanf('<?php // %s'));
|
H A D | bug51532.phpt | 2 SPL: Allow valid extension of SplFileObject::fscanf 7 public function fscanf($format, &...$vars): array|int|null {
|
H A D | SplFileObject_fscanf_basic.phpt | 2 SplFileObject::fscanf function - basic functionality test 6 var_dump($obj->fscanf('%s'));
|