Home
last modified time | relevance | path

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

123

/php-src/
H A DREADME.REDIST.BINS258 fscanf. Original code is from TCL8.3.0 and bears the following copyright:
/php-src/ext/opcache/
H A DZendAccelerator.c3040 ret = fscanf(f, "%lx-", &start); in accel_move_code_to_huge_pages()
/php-src/ext/opcache/jit/ir/dynasm/
H A Dminilua.c6763 if(fscanf(f,"%lf",&d)==1){
/php-src/ext/spl/
H A Dspl_directory.c2583 PHP_METHOD(SplFileObject, fscanf) in PHP_METHOD() argument
H A Dspl_directory.stub.php286 public function fscanf(string $format, mixed &...$vars): array|int|null {} function in SplFileObject
H A Dspl_directory_arginfo.h349 ZEND_METHOD(SplFileObject, fscanf);
461 ZEND_ME(SplFileObject, fscanf, arginfo_class_SplFileObject_fscanf, ZEND_ACC_PUBLIC)
/php-src/ext/spl/tests/SplFileObject/
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 {
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'));
/php-src/ext/standard/
H A Dbasic_functions.stub.php2809 function fscanf($stream, string $format, mixed &...$vars): array|int|false|null {}
H A Dbasic_functions_arginfo.h2650 ZEND_FUNCTION(fscanf);
3286 ZEND_FE(fscanf, arginfo_fscanf)
H A Dfile.c957 PHP_FUNCTION(fscanf) in PHP_FUNCTION() argument
/php-src/ext/standard/tests/file/
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_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_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_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_variation11.phpt2 Test fscanf() function: usage variations - float formats with arrays
6 /* Test fscanf() to scan arrays using different float format types */
10 echo "*** Test fscanf(): different float format types with arrays ***\n";
65 var_dump(fscanf($file_handle,$float_format));
82 *** Test fscanf(): different float format types with arrays ***
H A Dfscanf_variation12.phpt2 Test fscanf() function: usage variations - float formats with strings
6 /* Test fscanf() to scan strings using different float format types */
10 echo "*** Test fscanf(): different float format types with strings ***\n";
66 var_dump(fscanf($file_handle,$float_format));
83 *** Test fscanf(): different float format types with strings ***
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_variation14.phpt2 Test fscanf() function: usage variations - string formats with strings
6 /* Test fscanf() to scan different strings using different string format types */
10 echo "*** Test fscanf(): different string format types with different string ***\n";
98 var_dump(fscanf($file_handle,$string_format));
115 *** Test fscanf(): different string format types with different string ***
H A Dfscanf_variation15.phpt2 Test fscanf() function: usage variations - string formats with float values
6 /* Test fscanf() to scan float values using different string format types */
10 echo "*** Test fscanf(): different string format types with float values ***\n";
68 var_dump(fscanf($file_handle,$string_format));
85 *** Test fscanf(): different string format types with float values ***
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_variation17.phpt2 Test fscanf() function: usage variations - string formats with arrays
6 /* Test fscanf() to scan arrays using different string format types */
10 echo "*** Test fscanf(): different string format types with arrays ***\n";
64 var_dump(fscanf($file_handle,$string_format));
81 *** Test fscanf(): different string format types with arrays ***
H A Dfscanf_variation18.phpt2 Test fscanf() function: usage variations - string formats with integer values
6 /* Test fscanf() to scan integer values using different string format types */
10 echo "*** Test fscanf(): different string format types with integer values ***\n";
72 var_dump(fscanf($file_handle,$string_format));
89 *** Test fscanf(): different string format types with integer values ***
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 ***

Completed in 99 milliseconds

123