Home
last modified time | relevance | path

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

12345678910>>...36

/PHP-5.3/ext/phar/tests/
H A D022.phpt25 echo 'fseek($fp, 1)';var_dump(fseek($fp, 1));
27 echo 'fseek($fp, 1, SEEK_CUR)';var_dump(fseek($fp, 1, SEEK_CUR));
29 echo 'fseek($fp, -1, SEEK_CUR)';var_dump(fseek($fp, -1, SEEK_CUR));
43 echo 'fseek($fp, 6)';var_dump(fseek($fp, 6));
45 echo 'fseek($fp, 8)';var_dump(fseek($fp, 8));
47 echo 'fseek($fp, -1)';var_dump(fseek($fp, -1));
50 fseek($fp, 4);
54 fseek($fp, 4);
58 fseek($fp, 4);
62 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.3/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.3/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.3/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.3/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.3/ext/dba/libflatfile/
H A Dflatfile.c58 php_stream_flush(dba->fp); in flatfile_store()
63 php_stream_flush(dba->fp); in flatfile_store()
70 php_stream_flush(dba->fp); in flatfile_store()
80 php_stream_flush(dba->fp); in flatfile_store()
115 php_stream_rewind(dba->fp); in flatfile_delete()
116 while(!php_stream_eof(dba->fp)) { in flatfile_delete()
126 pos = php_stream_tell(dba->fp); in flatfile_delete()
136 php_stream_putc(dba->fp, 0); in flatfile_delete()
137 php_stream_flush(dba->fp); in flatfile_delete()
173 php_stream_rewind(dba->fp); in flatfile_findkey()
[all …]
/PHP-5.3/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.3/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
205 if ((fp = VCWD_FOPEN(jpeg_file, "rb")) == 0) { in PHP_FUNCTION()
211 fstat(fileno(fp), &sb); in PHP_FUNCTION()
218 fclose(fp); in PHP_FUNCTION()
226 fclose(fp); in PHP_FUNCTION()
245 php_iptc_skip_variable(fp, 0, 0 TSRMLS_CC); in PHP_FUNCTION()
259 php_iptc_skip_variable(fp, spool, poi?&poi:0 TSRMLS_CC); in PHP_FUNCTION()
[all …]
/PHP-5.3/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.3/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 …]
H A Dvfprintf_error3.phpt17 $fp = fopen( $file, "a+" );
22 rewind( $fp );
23 var_dump( stream_get_contents( $fp ) );
24 ftruncate( $fp, 0 );
25 rewind( $fp );
27 var_dump( vfprintf( $fp, "Foo %y fake", "not available" ) );
29 rewind( $fp );
30 var_dump( stream_get_contents( $fp ) );
31 ftruncate( $fp, 0 );
32 rewind( $fp );
[all …]
/PHP-5.3/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.3/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.3/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 …]
/PHP-5.3/ext/gd/tests/
H A Dcreatefromwbmp2_extern.phpt12 if (!$fp) {
18 fputs($fp, chr($c), 1);
19 fputs($fp, $c, 1);
23 fputs($fp, chr($c), 1);
25 fputs($fp, chr($c), 1);
26 fputs($fp, chr($c), 1);
27 fputs($fp, chr($c), 1);
29 fputs($fp, chr($c), 1);
33 fputs($fp, chr($c), 1);
37 fwrite($fp, chr($c), 1);
[all …]

Completed in 36 milliseconds

12345678910>>...36