Home
last modified time | relevance | path

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

12345678910>>...37

/PHP-5.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-5.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));
31 var_dump(feof($fp));
35 var_dump(feof($fp));
[all …]
H A Dbug27508.phpt6 public $fp;
33 if (!$this->fp) {
55 if (!$fp) {
59 fwrite($fp, b"line1\n");
60 fwrite($fp, b"line2\n");
61 fwrite($fp, b"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 …]
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-5.4/ext/
H A Dext_skel_win32.php38 $fp = fopen("$skel/skeleton.dsp", "rb"); variable
39 if ($fp) {
41 fclose($fp);
46 if ($fp) {
47 fwrite($fp, $dsp_file);
48 fclose($fp);
53 if ($fp) {
55 fclose($fp);
59 if ($fp) {
60 fwrite($fp, $php_file);
[all …]
/PHP-5.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.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-5.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-5.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()
135 php_stream_putc(dba->fp, 0); in flatfile_delete()
136 php_stream_flush(dba->fp); in flatfile_delete()
172 php_stream_rewind(dba->fp); in flatfile_findkey()
[all …]
/PHP-5.4/sapi/cli/tests/
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-5.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-5.4/ext/standard/
H A Diptc.c96 c = getc(fp); in php_iptc_get1()
151 c = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC); in php_iptc_next_marker()
162 c = php_iptc_get1(fp, 0, 0 TSRMLS_CC); in php_iptc_next_marker()
183 FILE *fp; in PHP_FUNCTION() local
198 if ((fp = VCWD_FOPEN(jpeg_file, "rb")) == 0) { in PHP_FUNCTION()
204 fstat(fileno(fp), &sb); in PHP_FUNCTION()
211 fclose(fp); in PHP_FUNCTION()
219 fclose(fp); in PHP_FUNCTION()
238 php_iptc_skip_variable(fp, 0, 0 TSRMLS_CC); in PHP_FUNCTION()
252 php_iptc_skip_variable(fp, spool, poi?&poi:0 TSRMLS_CC); in PHP_FUNCTION()
[all …]
/PHP-5.4/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-5.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-5.4/ext/zip/lib/
H A Dzip_dirent.c128 cd->offset = ftello(fp); in _zip_cdir_write()
139 _zip_write4(0, fp); in _zip_cdir_write()
142 _zip_write4(cd->size, fp); in _zip_cdir_write()
147 if (ferror(fp)) { in _zip_cdir_write()
468 if (ferror(fp)) { in _zip_dirent_write()
587 putc(i&0xff, fp); in _zip_write2()
588 putc((i>>8)&0xff, fp); in _zip_write2()
598 putc(i&0xff, fp); in _zip_write4()
599 putc((i>>8)&0xff, fp); in _zip_write4()
600 putc((i>>16)&0xff, fp); in _zip_write4()
[all …]
/PHP-5.4/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-5.4/ext/phar/
H A Dtar.c596 myphar->fp = fp; in phar_parse_tarfile()
705 if (fp->error) { in phar_tar_writeheaders()
715 if (fp->error) { in phar_tar_writeheaders()
729 if (fp->error) { in phar_tar_writeheaders()
736 if (fp->error) { in phar_tar_writeheaders()
755 if (fp->error) { in phar_tar_writeheaders()
765 if (fp->error) { in phar_tar_writeheaders()
780 if (fp->error) { in phar_tar_writeheaders()
787 if (fp->error) { in phar_tar_writeheaders()
812 if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp) { in phar_tar_writeheaders()
[all …]

Completed in 34 milliseconds

12345678910>>...37