Home
last modified time | relevance | path

Searched refs:fgetc (Results 1 – 25 of 28) sorted by relevance

12

/PHP-7.2/ext/standard/tests/file/
H A Dfgetc_error.phpt2 Test fgetc() function : error conditions
6 Prototype: string fgetc ( resource $handle );
12 echo "-- Testing fgetc() with zero argument --\n";
13 var_dump( fgetc() );
18 var_dump( fgetc($fp, $fp) );
22 echo "-- Testing fgetc() with invalid arguments --\n";
31 /* loop to test fgetc() with different invalid type of args */
34 var_dump( fgetc($invalid_args[$loop_counter - 1]) );
40 -- Testing fgetc() with zero argument --
44 -- Testing fgetc() with more than expected number of arguments --
[all …]
H A Dfgetc_variation2.phpt2 Test fgetc() function : usage variations - closed handle
6 Prototype: string fgetc ( resource $handle );
18 echo "*** Testing fgetc() : usage variations ***\n";
20 echo "-- Testing fgetc() with closed handle --\n";
27 var_dump( fgetc($file_handle) );
29 echo "-- Testing fgetc() with unset handle --\n";
35 //fgetc using unset handle
36 var_dump( fgetc($file_handle) );
41 *** Testing fgetc() : usage variations ***
42 -- Testing fgetc() with closed handle --
[all …]
H A Dfgetc_variation1.phpt2 Test fgetc() function : usage variations - read when file pointer at EOF
6 Prototype: string fgetc ( resource $handle );
12 echo "*** Testing fgetc() : usage variations ***\n";
13 echo "-- Testing fgetc() with file whose file pointer is pointing to EOF --\n";
32 // seek to end of the file and try fgetc()
36 var_dump( fgetc($file_handle) ); // try n read a char, none expected
50 *** Testing fgetc() : usage variations ***
51 -- Testing fgetc() with file whose file pointer is pointing to EOF --
H A Dfgetc_basic.phpt2 Test fgetc() function : basic functionality
6 Prototype: string fgetc ( resource $handle );
12 echo "*** Testing fgetc() : basic operations ***\n";
65 *** Testing fgetc() : basic operations ***
68 -- Testing fgetc() : file opened using r mode --
94 -- Testing fgetc() : file opened using rb mode --
120 -- Testing fgetc() : file opened using rt mode --
146 -- Testing fgetc() : file opened using r+ mode --
225 -- Testing fgetc() : file opened using r mode --
251 -- Testing fgetc() : file opened using rb mode --
[all …]
H A Dfgetc_variation3.phpt2 Test fgetc() function : usage variations - write only modes (Bug #42036)
6 Prototype: string fgetc ( resource $handle );
10 /* try fgetc on files which are opened in non readable modes
18 echo "*** Testing fgetc() with file opened in write only mode ***\n";
39 var_dump( fgetc($file_handle) ); // expected : no chars should be read
53 *** Testing fgetc() with file opened in write only mode ***
H A Dfgetc_variation4.phpt2 Test fgetc() function : usage variations - different read modes
6 Prototype: string fgetc ( resource $handle );
10 /* read from fie using fgetc, file opened using different
13 echo "*** Testing fgetc() : usage variations ***\n";
14 echo "-- Testing fgetc() with files opened with different read modes --\n";
29 $data = "fgetc\n test";
39 var_dump( fgetc($file_handle) ); // expected : 1 char
54 *** Testing fgetc() : usage variations ***
55 -- Testing fgetc() with files opened with different read modes --
H A Dstream_rfc2397_007.phpt25 var_dump(fgetc($fp));
29 var_dump(fgetc($fp));
30 var_dump(fgetc($fp));
38 var_dump(fgetc($fp));
/PHP-7.2/tests/basic/
H A Denable_post_data_reading_07.phpt14 echo fgetc($f1);
16 echo fgetc($f1);
18 echo fgetc($f1);
20 echo fgetc($f1);
22 echo fgetc($f1);
26 echo fgetc($f1);
27 echo fgetc($f2);
H A Denable_post_data_reading_05.phpt17 echo fgetc($f1), fgetc($f2);
/PHP-7.2/ext/spl/tests/
H A Dfileobject_002.phpt2 SPL: SplFileObject::fgetc
13 while(($c = $o->fgetc()) !== false)
/PHP-7.2/ext/mbstring/libmbfl/tests/
H A Dstrwidth.c44 const int c = fgetc(stdin); in main()
H A Dconv_kana.c110 const int c = fgetc(stdin); in main()
H A Dconv_encoding.c64 const int c = fgetc(stdin); in main()
H A Dstrcut.c73 const int c = fgetc(stdin); in main()
/PHP-7.2/ext/zlib/tests/
H A Dgzgetc_basic.phpt25 echo fgetc( $h );
H A Dgzgetc_basic_1.phpt23 while (($c = fgetc( $h )) !== false) {
/PHP-7.2/sapi/phpdbg/
H A Dcreate-test.php91 $output .= $c = fgetc($pipes[1]);
/PHP-7.2/ext/spl/internal/
H A Dsplfileobject.inc155 function fgetc()
158 $c = fgetc($this->fp);
295 * @note fgetc() will increase the line number when reaing a new line char.
/PHP-7.2/ext/standard/
H A Dfile.h39 PHPAPI PHP_FUNCTION(fgetc);
H A Diptc.c258 fgetc(fp); /* skip already copied 0xFF byte */ in PHP_FUNCTION()
/PHP-7.2/sapi/cli/
H A Dphp_cli.c632 c = fgetc(file_handle->handle.fp); in cli_seek_file_begin()
633 if (c == '#' && (c = fgetc(file_handle->handle.fp)) == '!') { in cli_seek_file_begin()
635 c = fgetc(file_handle->handle.fp); /* skip to end of line */ in cli_seek_file_begin()
639 if (fgetc(file_handle->handle.fp) != '\n') { in cli_seek_file_begin()
/PHP-7.2/ext/gd/libgd/
H A Dgdkanji.c608 while ((c = fgetc (stdin)) != '\n' && i < BUFSIZ)
/PHP-7.2/sapi/cgi/
H A Dcgi_main.c2617 c = fgetc(file_handle.handle.fp);
2620 c = fgetc(file_handle.handle.fp); /* skip to end of line */
2624 if (fgetc(file_handle.handle.fp) != '\n') {
/PHP-7.2/
H A DREADME.STREAMS43 names: fread, fwrite, fprintf, feof, fgetc, fgets, fclose, fflush, fseek, ftell, flock.
/PHP-7.2/ext/zlib/
H A Dzlib.c1394 PHP_FALIAS(gzgetc, fgetc, arginfo_gzpassthru)

Completed in 69 milliseconds

12