Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 25 of 624) sorted by relevance

12345678910>>...25

/PHP-7.4/ext/phar/tests/
H A D022.phpt24 echo 'fseek($fp, 1)';var_dump(fseek($fp, 1));
26 echo 'fseek($fp, 1, SEEK_CUR)';var_dump(fseek($fp, 1, SEEK_CUR));
28 echo 'fseek($fp, -1, SEEK_CUR)';var_dump(fseek($fp, -1, SEEK_CUR));
42 echo 'fseek($fp, 6)';var_dump(fseek($fp, 6));
44 echo 'fseek($fp, 8)';var_dump(fseek($fp, 8));
46 echo 'fseek($fp, -1)';var_dump(fseek($fp, -1));
49 fseek($fp, 4);
53 fseek($fp, 4);
57 fseek($fp, 4);
61 fseek($fp, 4);
[all …]
H A Dphar_stub.phpt25 fclose($fp);
33 fclose($fp);
38 fwrite($fp, $file);
39 fclose($fp);
43 $phar->setStub($fp);
44 fclose($fp);
48 fclose($fp);
52 fclose($fp);
59 fclose($fp);
66 fclose($fp);
[all …]
/PHP-7.4/ext/standard/tests/file/
H A Dstream_rfc2397_007.phpt18 var_dump(ftell($fp));
19 var_dump(feof($fp));
22 var_dump(ftell($fp));
23 var_dump(feof($fp));
25 var_dump(fgetc($fp));
26 var_dump(ftell($fp));
27 var_dump(feof($fp));
29 var_dump(fgetc($fp));
32 var_dump(feof($fp));
36 var_dump(feof($fp));
[all …]
H A Dbug27508.phpt6 public $fp;
33 if (!$this->fp) {
55 if (!$fp) {
59 fwrite($fp, "line1\n");
60 fwrite($fp, "line2\n");
61 fwrite($fp, "line3\n");
64 rewind($fp);
65 echo ftell($fp) . "\n";
67 while ($fp && !feof($fp)) {
68 echo fgets($fp);
[all …]
H A Dstream_supports_lock.phpt7 $fp = fopen(__FILE__, "r");
8 var_dump($fp);
9 var_dump(stream_supports_lock($fp));
10 fclose($fp);
13 var_dump($fp);
15 fclose($fp);
17 $fp = fopen("php://memory", "r");
18 var_dump($fp);
20 fclose($fp);
23 var_dump($fp);
[all …]
H A Dftruncate.phpt10 $fp = fopen($filename, "r");
11 var_dump(ftruncate($fp, 10));
12 fclose($fp);
15 $fp = fopen($filename, "w");
16 var_dump(ftruncate($fp, 10));
17 fclose($fp);
22 $fp = fopen($filename, "a");
24 fclose($fp);
27 $fp = fopen($filename, "a");
29 fclose($fp);
[all …]
H A Dfscanf.phpt14 $fp = fopen($filename, "rt");
15 var_dump(fscanf($fp, "%d", $v));
17 fclose($fp);
19 $fp = fopen($filename, "rt");
22 fclose($fp);
24 $fp = fopen($filename, "rt");
28 fclose($fp);
32 $fp = fopen($filename, "rt");
36 fclose($fp);
44 fclose($fp);
[all …]
H A Dflock.phpt11 $fp = fopen($file, "w");
12 fclose($fp);
14 var_dump(flock($fp, LOCK_SH|LOCK_NB));
16 $fp = fopen($file, "w");
18 var_dump(flock($fp, LOCK_SH|LOCK_NB));
19 var_dump(flock($fp, LOCK_UN));
20 var_dump(flock($fp, LOCK_EX));
21 var_dump(flock($fp, LOCK_UN));
26 var_dump(flock($fp, LOCK_UN, $would));
33 var_dump(flock($fp, -1));
[all …]
H A Dfgetcsv_variation23.phpt17 $fp = fopen ($filename, "w");
18 fclose($fp);
19 $fp = fopen ($filename, "r");
20 if (!$fp) {
24 var_dump( fgetcsv($fp) );
25 var_dump( ftell($fp) );
26 var_dump( fgetcsv($fp, 1024) );
27 var_dump( ftell($fp) );
29 var_dump( ftell($fp) );
31 var_dump( ftell($fp) );
[all …]
/PHP-7.4/ext/zip/examples/
H A Dfopen.php7 $fp = fopen('zip://' . dirname(__FILE__) . '/test.zip#test', 'r'); variable
8 if (!$fp) {
11 while (!feof($fp)) {
12 $contents .= fread($fp, 2);
16 fclose($fp);
23 $fp = $z->getStream('test'); variable
25 var_dump($fp);
26 if(!$fp) exit("\n");
27 while (!feof($fp)) {
28 $contents .= fread($fp, 2);
[all …]
/PHP-7.4/ext/iconv/tests/
H A Diconv_stream_filter_delimiter.phpt10 var_dump(bin2hex(fread($fp, 10)));
11 var_dump(bin2hex(fread($fp, 5)));
12 var_dump(bin2hex(fread($fp, 1)));
13 fclose($fp);
17 var_dump(bin2hex(fread($fp, 10)));
18 var_dump(bin2hex(fread($fp, 5)));
19 var_dump(bin2hex(fread($fp, 1)));
20 fclose($fp);
25 var_dump(bin2hex(fread($fp, 5)));
27 fclose($fp);
[all …]
H A Diconv_stream_filter.phpt9 $fp = fopen(__DIR__.'/iconv_stream_filter.txt', 'rb');
10 var_dump(bin2hex(fread($fp, 10)));
11 var_dump(bin2hex(fread($fp, 5)));
12 var_dump(bin2hex(fread($fp, 1)));
13 fclose($fp);
17 var_dump(bin2hex(fread($fp, 10)));
18 var_dump(bin2hex(fread($fp, 5)));
19 var_dump(bin2hex(fread($fp, 1)));
20 fclose($fp);
27 var_dump(bin2hex(fread($fp, 1)) != "0a");
[all …]
/PHP-7.4/ext/dba/libflatfile/
H A Dflatfile.c57 php_stream_flush(dba->fp); in flatfile_store()
62 php_stream_flush(dba->fp); in flatfile_store()
69 php_stream_flush(dba->fp); in flatfile_store()
79 php_stream_flush(dba->fp); in flatfile_store()
114 php_stream_rewind(dba->fp); in flatfile_delete()
115 while(!php_stream_eof(dba->fp)) { in flatfile_delete()
125 pos = php_stream_tell(dba->fp); in flatfile_delete()
132 php_stream_putc(dba->fp, 0); in flatfile_delete()
133 php_stream_flush(dba->fp); in flatfile_delete()
166 php_stream_rewind(dba->fp); in flatfile_findkey()
[all …]
/PHP-7.4/sapi/cli/tests/
H A Dbug70470.phpt12 $fp = php_cli_server_connect();
14 fwrite($fp, "GET / HTTP/1.1\r\n");
16 fwrite($fp, "Content");
17 fflush($fp);
19 fwrite($fp, "-Type: text/html; charset=UTF-8\r\n");
20 fwrite($fp, "Connection: clo");
21 fflush($fp);
23 fwrite($fp, "se\r\n\r\n");
24 while (!feof($fp)) {
25 echo fgets($fp);
[all …]
H A Dphp_cli_server_009.phpt18 if(fwrite($fp, <<<HEADER
25 while (!feof($fp)) {
26 echo fgets($fp);
30 fclose($fp);
34 if(fwrite($fp, <<<HEADER
41 while (!feof($fp)) {
42 echo fgets($fp);
46 fclose($fp);
57 while (!feof($fp)) {
58 echo fgets($fp);
[all …]
H A Dphp_cli_server_008.phpt13 $fp = php_cli_server_connect();
15 if(fwrite($fp, <<<HEADER
22 while (!feof($fp)) {
23 echo fgets($fp);
27 fclose($fp);
29 $fp = php_cli_server_connect();
31 if(fwrite($fp, <<<HEADER
38 while (!feof($fp)) {
39 echo fgets($fp);
43 fclose($fp);
/PHP-7.4/ext/bz2/tests/
H A D002.phpt11 var_dump(bzopen($fp, "w"));
14 var_dump(bzopen($fp, "r"));
18 var_dump(bzopen($fp, "w"));
22 var_dump(bzopen($fp, "r"));
25 var_dump(bzopen($fp, "r"));
28 var_dump(bzopen($fp, "w"));
31 var_dump(bzopen($fp, "r"));
34 var_dump(bzopen($fp, "w"));
37 var_dump(bzopen($fp, "w"));
40 var_dump(bzopen($fp, "r"));
[all …]
/PHP-7.4/ext/standard/
H A Diptc.c103 c = getc(fp); in php_iptc_get1()
158 c = php_iptc_get1(fp, spool, spoolbuf); in php_iptc_next_marker()
169 c = php_iptc_get1(fp, 0, 0); in php_iptc_next_marker()
190 FILE *fp; in PHP_FUNCTION() local
214 if ((fp = VCWD_FOPEN(jpeg_file, "rb")) == 0) { in PHP_FUNCTION()
220 if (zend_fstat(fileno(fp), &sb) != 0) { in PHP_FUNCTION()
230 fclose(fp); in PHP_FUNCTION()
238 fclose(fp); in PHP_FUNCTION()
257 php_iptc_skip_variable(fp, 0, 0); in PHP_FUNCTION()
258 fgetc(fp); /* skip already copied 0xFF byte */ in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/zip/tests/
H A Doo_stream.phpt16 $fp = $zip->getStream('foo');
18 var_dump($fp);
19 if(!$fp) exit("\n");
21 while (!feof($fp)) {
22 $contents .= fread($fp, 255);
25 fclose($fp);
30 $fp = fopen('zip://' . __DIR__ . '/test_with_comment.zip#foo', 'rb');
31 if (!$fp) {
35 while (!feof($fp)) {
36 $contents .= fread($fp, 2);
[all …]
/PHP-7.4/ext/standard/tests/strings/
H A Dvfprintf_basic3.phpt31 vfprintf($fp, $format1,$arg1);
32 fprintf($fp, "\n");
34 vfprintf($fp,$format11,$arg1);
35 fprintf($fp, "\n");
37 vfprintf($fp,$format2,$arg2);
38 fprintf($fp, "\n");
41 fprintf($fp, "\n");
43 vfprintf($fp,$format3,$arg3);
44 fprintf($fp, "\n");
47 fprintf($fp, "\n");
[all …]
H A Dvfprintf_basic9.phpt31 vfprintf($fp, $format1, $arg1);
32 fprintf($fp, "\n");
33 vfprintf($fp, $format11, $arg1);
34 fprintf($fp, "\n");
36 vfprintf($fp, $format2, $arg2);
37 fprintf($fp, "\n");
39 fprintf($fp, "\n");
41 vfprintf($fp, $format3, $arg3);
42 fprintf($fp, "\n");
44 fprintf($fp, "\n");
[all …]
H A Dvfprintf_basic.phpt15 function writeAndDump($fp, $format, $args)
17 ftruncate( $fp, 0 );
18 $length = vfprintf( $fp, $format, $args );
19 rewind( $fp );
20 $content = stream_get_contents( $fp );
29 $fp = fopen( $file, "a+" );
34 writeAndDump( $fp, "%d digit", array( '54' ) );
35 writeAndDump( $fp, "%b %b", array( true, false ) );
36 writeAndDump( $fp, "%c %c %c", array( 65, 66, 67 ) );
38 writeAndDump( $fp, "%02d", array( 50 ) );
[all …]
/PHP-7.4/ext/zlib/tests/
H A Dzlib_filter_inflate2.phpt12 $fp = fopen(__DIR__ . '/test.txt.gz', 'r');
13 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ);
14 echo fread($fp, 2000);
15 fclose($fp);
17 $fp = fopen(__DIR__ . '/test.txt.gz', 'r');
19 $fp = fopen(__DIR__ . '/test.txt.gz', 'r');
22 echo fread($fp, 2000);
23 fclose($fp);
25 $fp = fopen(__DIR__ . '/test.txt.gz', 'r');
28 echo fread($fp, 2000);
[all …]
/PHP-7.4/ext/standard/tests/filters/
H A Dstrip_tags_filter.phpt5 $fp = fopen('php://output', 'w');
6 stream_filter_append($fp, 'string.strip_tags');
7 fwrite($fp, "test <b>bold</b> <i>italic</i> test\n");
8 fclose($fp);
10 $fp = fopen('php://output', 'w');
11 stream_filter_append($fp, 'string.strip_tags', STREAM_FILTER_WRITE, "<b>");
12 fwrite($fp, "test <b>bold</b> <i>italic</i> test\n");
13 fclose($fp);
15 $fp = fopen('php://output', 'w');
17 fwrite($fp, "test <b>bold</b> <i>italic</i> test\n");
[all …]
/PHP-7.4/ext/standard/tests/streams/
H A Dbug78902.phpt10 $fp = fopen($tmp_file_name, 'w+');
14 fputs($fp, str_pad('', min($chunk,$size)));
17 fclose($fp);
19 $fp = fopen($tmp_file_name, 'r');
20 stream_filter_append($fp, "string.toupper");
21 while (!feof($fp)) {
22 fread($fp, 1);
24 fclose($fp);

Completed in 39 milliseconds

12345678910>>...25