Home
last modified time | relevance | path

Searched refs:fp (Results 176 – 200 of 909) sorted by relevance

12345678910>>...37

/PHP-5.5/ext/standard/tests/strings/
H A Dvfprintf_error1.phpt17 $fp = fopen( $file, "a+" );
23 var_dump( vfprintf( $fp, $format, $args, $extra_arg ) );
24 var_dump( vfprintf( $fp, "Foo %d", array(6), "bar" ) );
27 fclose($fp);
H A Dstr_replace_basic.phpt29 $fp = fopen( __FILE__, "r" );
30 $fp_copy = $fp;
33 fclose($fp);
/PHP-5.5/ext/phar/
H A Dshortarc.php115 $fp = fopen(__FILE__, 'rb');
116 fseek($fp, self::LEN);
117 $L = unpack('V', $a = (binary)fread($fp, 4));
125 $last = (binary)fread($fp, $read);
183 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
245 static function extractFile($path, $entry, $fp) argument
252 $data .= @fread($fp, $c);
256 $data .= @fread($fp, 8192);
H A Dutil.c109 return entry->fp; in phar_get_efp()
112 if (!entry->fp) { in phar_get_efp()
115 return entry->fp; in phar_get_efp()
125 if (!fp) { in phar_seek_efp()
566 if (!etemp.fp) { in phar_get_or_create_entry_data()
619 ret->fp = entry->fp; in phar_get_or_create_entry_data()
804 dummy.fp = ufp; in phar_open_entry_fp()
844 if (!entry->fp) { in phar_create_writeable_entry()
867 php_stream *fp; in phar_separate_entry_fp() local
879 if (fp == NULL) { in phar_separate_entry_fp()
[all …]
/PHP-5.5/ext/standard/tests/dir/
H A Drewinddir_variation3.phpt18 var_dump($fp = fopen(__FILE__, 'r'));
20 $result1 = fread($fp, 5);
21 var_dump(rewinddir($fp));
22 $result2 = fread($fp, 5);
/PHP-5.5/ext/curl/tests/
H A Dcurl_reset.phpt13 $fp = fopen($log_file, 'w+');
14 fwrite($fp, "test");
15 fclose($fp);
H A Dcurl_write_callback.phpt21 $fp = fopen($log_file, 'w+');
22 fwrite($fp, "test");
23 fclose($fp);
H A Dcurl_write_return.phpt16 $fp = fopen($log_file, 'w+');
17 fwrite($fp, "test");
18 fclose($fp);
H A Dcurl_write_stdout.phpt15 $fp = fopen($log_file, 'w+');
16 fwrite($fp, "test");
17 fclose($fp);
H A Dcurl_write_file.phpt16 $fp = fopen($log_file, 'w+');
17 fwrite($fp, "test");
18 fclose($fp);
/PHP-5.5/ext/xml/tests/
H A Dxml_closures_001.phpt28 $fp = fopen("xmltest.xml", "r");
29 while ($data = fread($fp, 4096)) {
30 xml_parse($xp, $data, feof($fp));
/PHP-5.5/ext/standard/tests/file/
H A Dfstat_variation8.phpt7 $fp = fopen (__FILE__, 'r');
8 $fstat_result = fstat($fp);
9 fclose($fp);
H A Dfstat_basic.phpt5 $fp = fopen (__FILE__, 'r');
6 var_dump(fstat( $fp ) );
7 fclose($fp);
H A Dfgetss_error.phpt17 $fp = fopen(__FILE__, "r");
18 var_dump( fgetss($fp, 100, '<p><a>', $fp) );
24 var_dump( fgetss($fp, $len, $allowable_tags) );
26 var_dump( fgetss($fp, $len, $allowable_tags) );
28 var_dump( fgetss($fp, $len, $allowable_tags) ); // return length - 1 always, expect false
47 fclose($fp);
48 var_dump(fgetss($fp,10,$allowable_tags));
H A Dfgets_error.phpt17 $fp = fopen(__FILE__, "r");
18 var_dump( fgets($fp, 10, $fp) );
23 var_dump( fgets($fp, $len) );
25 var_dump( fgets($fp, $len) );
27 var_dump( fgets($fp, $len) ); // return length - 1 always, expect false
48 fclose($fp);
49 var_dump(fgets($fp,10));
H A Dbug26003.phpt5 $fp = fopen(dirname(__FILE__).'/test3.csv', 'r');
6 var_dump(fgetcsv($fp, 4096));
H A Dunlink_variation1.phpt10 $fp = fopen($filename, 'w');
11 fclose($fp);
41 $fp = fopen($filename, "w");
42 fclose($fp);
60 $fp = fopen($filename, "w");
61 fclose($fp);
H A Drename_variation3-win32.phpt26 $fp = fopen($filename, "w");
27 if (!$fp) {
30 fclose($fp);
46 $fp = fopen($filename, "w");
47 fclose($fp);
/PHP-5.5/ext/dba/libcdb/
H A Dcdb.c95 void cdb_init(struct cdb *c, php_stream *fp TSRMLS_DC) in cdb_init()
99 c->fp = fp; in cdb_init()
106 if (php_stream_seek(c->fp, pos, SEEK_SET) == -1) { in cdb_read()
113 r = php_stream_read(c->fp, buf, len); in cdb_read()
/PHP-5.5/ext/gd/tests/
H A Dimageloadfont_invalid.phpt11 $fp = fopen($filename, 'wb');
12 fwrite($fp, $bin);
13 fclose($fp);
/PHP-5.5/ext/phar/tests/
H A Dopen_for_write_existing.phpt20 $fp = fopen($pname . '/b/c.php', 'wb');
21 fwrite($fp, b'extra');
22 fclose($fp);
H A Dopen_for_write_newfile.phpt20 $fp = fopen($pname . '/b/new.php', 'wb');
21 fwrite($fp, b'extra');
22 fclose($fp);
/PHP-5.5/Zend/
H A Dzend_stream.c117 if (file_handle->handle.fp && fstat(fileno(file_handle->handle.fp), &buf) == 0) { in zend_stream_fsize()
136 handle->handle.fp = zend_fopen(filename, &handle->opened_path TSRMLS_CC); in zend_stream_open()
141 return (handle->handle.fp) ? SUCCESS : FAILURE; in zend_stream_open()
195 file_handle->handle.fp = fdopen(file_handle->handle.fd, "rb");
198 if (!file_handle->handle.fp) {
234 if (file_handle->handle.fp &&
238 … *buf = mmap(0, size + ZEND_MMAP_AHEAD, PROT_READ, MAP_PRIVATE, fileno(file_handle->handle.fp), 0);
240 long offset = ftell(file_handle->handle.fp);
310 fclose(fh->handle.fp);
345 return fh1->handle.fp == fh2->handle.fp;
/PHP-5.5/ext/phar/tests/tar/
H A Dopen_for_write_existing.phpt29 $fp = fopen($alias . '/b/c.php', 'wb');
30 fwrite($fp, b'extra');
31 fclose($fp);
/PHP-5.5/ext/phar/tests/zip/
H A Dopen_for_write_existing.phpt28 $fp = fopen($alias . '/b/c.php', 'wb');
29 fwrite($fp, b'extra');
30 fclose($fp);

Completed in 34 milliseconds

12345678910>>...37