Home
last modified time | relevance | path

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

12345678910>>...37

/PHP-7.2/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.2/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");
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);
40 $fp = fopen($filename, "rt");
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 …]
/PHP-7.2/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.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);
26 var_dump(bin2hex(fread($fp, 5)) != "69636f6e76");
27 var_dump(bin2hex(fread($fp, 1)) != "0a");
[all …]
/PHP-7.2/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.2/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.2/sapi/cli/tests/
H A Dbug70470.phpt14 if (!$fp) {
18 fwrite($fp, "GET / HTTP/1.1\r\n");
20 fwrite($fp, "Content");
21 fflush($fp);
23 fwrite($fp, "-Type: text/html; charset=UTF-8\r\n");
24 fwrite($fp, "Connection: clo");
25 fflush($fp);
27 fwrite($fp, "se\r\n\r\n");
28 while (!feof($fp)) {
29 echo fgets($fp);
[all …]
H A Dphp_cli_server_009.phpt19 if (!$fp) {
30 while (!feof($fp)) {
31 echo fgets($fp);
35 fclose($fp);
38 if (!$fp) {
50 while (!feof($fp)) {
51 echo fgets($fp);
55 fclose($fp);
58 if (!$fp) {
71 echo fgets($fp);
[all …]
H A Dphp_cli_server_008.phpt15 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
16 if (!$fp) {
20 if(fwrite($fp, <<<HEADER
27 while (!feof($fp)) {
28 echo fgets($fp);
32 fclose($fp);
35 if (!$fp) {
40 if(fwrite($fp, <<<HEADER
47 while (!feof($fp)) {
48 echo fgets($fp);
[all …]
/PHP-7.2/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.2/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.2/ext/standard/
H A Diptc.c105 c = getc(fp); in php_iptc_get1()
160 c = php_iptc_get1(fp, spool, spoolbuf); in php_iptc_next_marker()
171 c = php_iptc_get1(fp, 0, 0); in php_iptc_next_marker()
192 FILE *fp; in PHP_FUNCTION() local
216 if ((fp = VCWD_FOPEN(jpeg_file, "rb")) == 0) { in PHP_FUNCTION()
222 zend_fstat(fileno(fp), &sb); 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.2/ext/zip/tests/
H A Doo_stream.phpt17 $fp = $zip->getStream('foo');
19 var_dump($fp);
20 if(!$fp) exit("\n");
22 while (!feof($fp)) {
23 $contents .= fread($fp, 255);
26 fclose($fp);
31 $fp = fopen('zip://' . dirname(__FILE__) . '/test_with_comment.zip#foo', 'rb');
32 if (!$fp) {
36 while (!feof($fp)) {
37 $contents .= fread($fp, 2);
[all …]
/PHP-7.2/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.2/ext/zlib/tests/
H A Dzlib_filter_inflate2.phpt12 $fp = fopen(dirname(__FILE__) . '/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(dirname(__FILE__) . '/test.txt.gz', 'r');
19 $fp = fopen(dirname(__FILE__) . '/test.txt.gz', 'r');
22 echo fread($fp, 2000);
23 fclose($fp);
25 $fp = fopen(dirname(__FILE__) . '/test.txt.gz', 'r');
28 echo fread($fp, 2000);
[all …]
/PHP-7.2/ext/phar/
H A Dtar.c616 myphar->fp = fp; in phar_parse_tarfile()
724 if (fp->error) { in phar_tar_writeheaders_int()
734 if (fp->error) { in phar_tar_writeheaders_int()
748 if (fp->error) { in phar_tar_writeheaders_int()
755 if (fp->error) { in phar_tar_writeheaders_int()
766 if (fp->error) { in phar_tar_writeheaders_int()
779 if (fp->error) { in phar_tar_writeheaders_int()
789 if (fp->error) { in phar_tar_writeheaders_int()
836 if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp) { in phar_tar_writeheaders_int()
967 entry.fp = NULL; in phar_tar_flush()
[all …]
/PHP-7.2/ext/
H A Dext_skel_win32.php38 $fp = fopen("$extname/$extname.php", "rb"); variable
39 if ($fp) {
40 $php_file = fread($fp, filesize("$extname/$extname.php"));
41 fclose($fp);
44 $fp = fopen("$extname/$extname.php", "wb"); variable
45 if ($fp) {
46 fwrite($fp, $php_file);
47 fclose($fp);

Completed in 23 milliseconds

12345678910>>...37