Searched refs:fp (Results 1 - 25 of 75) sorted by relevance

123

/PHP_TRUNK/ext/phar/tests/cache_list/files/
H A Dphar_test.inc67 $fp = gzopen($fname, 'w');
68 fwrite($fp, $file);
69 fclose($fp);
73 $fp = bzopen($fname, 'w');
74 fwrite($fp, $file);
75 fclose($fp);
/PHP_TRUNK/ext/phar/tests/zip/files/
H A Dmake_invalid_tar.php.inc7 $fp = fopen($this->path, 'r+b');
8 fseek($fp, 20);
9 fwrite($fp, 'oopsie');
10 fclose($fp);
/PHP_TRUNK/ext/spl/internal/
H A Dsplfileobject.inc23 private $fp;
44 $this->fp = fopen($file_name, $open_mode, $use_include_path, $context);
45 if (!$this->fp)
57 return eof($this->fp);
67 $buf = fgets($this->fp, $this->max_len);
91 return fgetcsv($this->fp, $this->max_len, $delimiter, $enclosure);
120 return flock($this->fp, $operation, $wouldblock);
129 return fflush($this->fp);
137 return ftell($this->fp);
148 return fseek($this->fp,
[all...]
/PHP_TRUNK/ext/tokenizer/
H A Dtokenizer.php7 $fp = fopen('php://stdin', 'r'); variable
8 while (!feof($fp)) {
9 $content .= fread($fp, 4096);
11 fclose($fp);
/PHP_TRUNK/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,
[all...]
/PHP_TRUNK/pear/
H A Dfetch.php66 $fp = fopen($argv[1], "r", false, $ctx); variable
67 if (is_resource($fp) && file_put_contents($argv[2], $fp)) {
/PHP_TRUNK/ext/opcache/tests/
H A Dphp_cli_server.inc27 while (($i++ < 30) && !($fp = @fsockopen(PHP_CLI_SERVER_HOSTNAME, PHP_CLI_SERVER_PORT))) {
31 if ($fp) {
32 fclose($fp);
/PHP_TRUNK/ext/curl/tests/
H A Dserver.inc37 while (($i++ < 30) && !($fp = @fsockopen(PHP_CURL_SERVER_HOSTNAME, PHP_CURL_SERVER_PORT))) {
41 if ($fp) {
42 fclose($fp);
/PHP_TRUNK/ext/phar/tests/files/
H A Dphar_test.inc67 $fp = gzopen($fname, 'w');
68 fwrite($fp, $file);
69 fclose($fp);
73 $fp = bzopen($fname, 'w');
74 fwrite($fp, $file);
75 fclose($fp);
/PHP_TRUNK/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);
/PHP_TRUNK/sapi/cli/tests/
H A Dphp_cli_server.inc40 while (($i++ < 30) && !($fp = @fsockopen(PHP_CLI_SERVER_HOSTNAME, PHP_CLI_SERVER_PORT))) {
44 if ($fp) {
45 fclose($fp);
/PHP_TRUNK/ext/gd/libgd/
H A Dgd_gif_out.c92 static void GIFEncode (gdIOCtxPtr fp, int GWidth, int GHeight, int GInterlace, int Background, int Transparent, int BitsPerPixel, int *Red, int *Green, int *Blue, gdImagePtr im);
257 GIFEncode(gdIOCtxPtr fp, int GWidth, int GHeight, int GInterlace, int Background, int Transparent, int BitsPerPixel, int *Red, int *Green, int *Blue, gdImagePtr im) argument
306 gdPutBuf(Transparent < 0 ? "GIF87a" : "GIF89a", 6, fp );
311 gifPutWord( RWidth, fp );
312 gifPutWord( RHeight, fp );
332 gdPutC( B, fp );
337 gdPutC( Background, fp );
342 gdPutC( 0, fp );
348 gdPutC( Red[i], fp );
349 gdPutC( Green[i], fp );
[all...]
/PHP_TRUNK/ext/opcache/
H A Dshared_alloc_win32.c131 FILE *fp = fopen(mmap_base_file, "r"); local
135 if (!fp) {
141 if (!fscanf(fp, "%p", &wanted_mapping_base)) {
145 fclose(fp);
148 fclose(fp);
302 FILE *fp = fopen(mmap_base_file, "w"); local
304 if (!fp) {
310 fprintf(fp, "%p\n", mapping_base);
311 fclose(fp);
/PHP_TRUNK/ext/dba/libcdb/
H A Dcdb.h31 php_stream *fp; member in struct:cdb
44 void cdb_init(struct cdb *, php_stream *fp);
/PHP_TRUNK/ext/dba/libinifile/
H A Dinifile.c82 inifile * inifile_alloc(php_stream *fp, int readonly, int persistent) argument
87 if (!php_stream_truncate_supported(fp)) {
95 dba->fp = fp;
172 while ((fline = php_stream_gets(dba->fp, NULL, 0)) != NULL) {
184 ln->pos = php_stream_tell(dba->fp);
204 ln->pos = php_stream_tell(dba->fp);
252 php_stream_seek(dba->fp, dba->next.pos, SEEK_SET);
256 php_stream_rewind(dba->fp);
269 dba->next.pos = php_stream_tell(dba->fp);
388 php_stream *fp; local
[all...]
/PHP_TRUNK/ext/dba/libflatfile/
H A Dflatfile.c55 php_stream_seek(dba->fp, 0L, SEEK_END);
56 php_stream_printf(dba->fp, "%zu\n", key_datum.dsize);
57 php_stream_flush(dba->fp);
58 if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) {
61 php_stream_printf(dba->fp, "%zu\n", value_datum.dsize);
62 php_stream_flush(dba->fp);
63 if (php_stream_write(dba->fp, value_datum.dptr, value_datum.dsize) < value_datum.dsize) {
68 php_stream_printf(dba->fp, "%zu\n", key_datum.dsize);
69 php_stream_flush(dba->fp);
70 if (php_stream_write(dba->fp, key_datu
[all...]
/PHP_TRUNK/ext/session/tests/
H A Dsave_handler.inc33 if ($fp = fopen($session_file, "w")) {
34 $return = fwrite($fp, $session_data);
35 fclose($fp);
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dapptype.c52 FILE *fp; local
68 if ((fp = fopen(path, "wb")) == NULL) {
72 if (fwrite(buf, 1, nb, fp) != nb) {
75 (void)fclose(fp);
78 (void)fclose(fp);
/PHP_TRUNK/ext/zip/lib/
H A Dzip_fdopen.c42 FILE *fp; local
60 if ((fp=fdopen(fd, "rb")) == NULL) {
67 if ((src = zip_source_filep_create(fp, 0, -1, &error)) == NULL) {
/PHP_TRUNK/win32/build/
H A Dmkdist.php145 $fp = fopen($dest, "w"); variable
146 fwrite($fp, $text);
147 fclose($fp);
162 $fp = gzopen($tarball, 'rb'); variable
167 $hdr_data = gzread($fp, 512);
194 $x = stream_copy_to_stream($fp, $dest, $hdr['size']);
203 gzseek($fp, gztell($fp) + $size);
259 $fp = fopen("$dist_dir/snapshot.txt", "w"); variable
262 fwrite($fp, <<<EO
[all...]
/PHP_TRUNK/ext/phar/
H A Dtar.c161 static int phar_tar_process_metadata(phar_entry_info *entry, php_stream *fp) /* {{{ */ argument
164 size_t save = php_stream_tell(fp), read;
169 read = php_stream_read(fp, metadata, entry->uncompressed_filesize);
172 php_stream_seek(fp, save, SEEK_SET);
179 php_stream_seek(fp, save, SEEK_SET);
193 php_stream_seek(fp, save, SEEK_SET);
198 int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, int is_data, php_uint32 compression, char **error) /* {{{ */ argument
212 php_stream_seek(fp, 0, SEEK_END);
213 totalsize = php_stream_tell(fp);
214 php_stream_seek(fp,
697 struct _phar_pass_tar_info *fp = (struct _phar_pass_tar_info *)argument; local
[all...]
H A Dzip.c42 static int phar_zip_process_extra(php_stream *fp, phar_entry_info *entry, php_uint16 len) /* {{{ */ argument
51 if (sizeof(h.header) != php_stream_read(fp, (char *) &h.header, sizeof(h.header))) {
57 php_stream_seek(fp, PHAR_GET_16(h.header.size), SEEK_CUR);
63 read = php_stream_read(fp, (char *) &(h.unix3.crc32), sizeof(h.unix3) - sizeof(h.header));
72 php_stream_seek(fp, PHAR_GET_16(h.unix3.size) - sizeof(h.unix3.size), SEEK_CUR);
166 int phar_parse_zipfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, char **error) /* {{{ */ argument
177 size = php_stream_tell(fp);
182 if (FAILURE == php_stream_seek(fp, -size, SEEK_END)) {
183 php_stream_close(fp);
190 php_stream_seek(fp,
[all...]
H A Dphar_internal.h143 /* for cached phars, this is a per-process store of fp/ufp */
227 /* regular file pointer phar_archive_data->fp */
231 /* modified file pointer phar_entry_info->fp */
247 /* when changing compression, save old flags in case fp is NULL */
256 /* offset within fp of the file contents */
260 php_stream *fp; member in struct:_phar_entry_info
310 php_stream *fp; member in struct:_phar_archive_data
339 /* offset within fp of the file contents */
344 php_stream *fp; member in struct:_phar_entry_fp
352 return entry->phar->fp;
365 phar_set_entrypfp(phar_entry_info *entry, php_stream *fp) argument
375 phar_set_entrypufp(phar_entry_info *entry, php_stream *fp) argument
401 phar_set_pharfp(phar_archive_data *phar, php_stream *fp) argument
411 phar_set_pharufp(phar_archive_data *phar, php_stream *fp) argument
470 php_stream *fp; member in struct:_phar_entry_data
[all...]
H A Dphar.c141 php_stream_close(phar->fp);
142 phar->fp = NULL;
253 if (phar->fp) {
254 php_stream_close(phar->fp);
255 phar->fp = 0;
287 if (phar->fp && !(phar->flags & PHAR_FILE_COMPRESSION_MASK)) {
291 was compressed, then the fp does not refer to the original file */
292 php_stream_close(phar->fp);
293 phar->fp = NULL;
342 if (entry->fp
652 phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, zend_long halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error) argument
1322 php_stream *fp; local
1476 php_stream *fp; local
1565 phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, int is_data, char **error) argument
2252 php_stream *fp; local
2327 php_stream *fp = idata->fp; local
[all...]
/PHP_TRUNK/ext/standard/
H A Diptc.c78 static int php_iptc_put1(FILE *fp, int spool, unsigned char c, unsigned char **spoolbuf) argument
91 static int php_iptc_get1(FILE *fp, int spool, unsigned char **spoolbuf) argument
96 c = getc(fp);
113 static int php_iptc_read_remaining(FILE *fp, int spool, unsigned char **spoolbuf) argument
115 while (php_iptc_get1(fp, spool, spoolbuf) != EOF) continue;
123 static int php_iptc_skip_variable(FILE *fp, int spool, unsigned char **spoolbuf) argument
128 if ((c1 = php_iptc_get1(fp, spool, spoolbuf)) == EOF) return M_EOI;
130 if ((c2 = php_iptc_get1(fp, spool, spoolbuf)) == EOF) return M_EOI;
137 if (php_iptc_get1(fp, spool, spoolbuf) == EOF) return M_EOI;
145 static int php_iptc_next_marker(FILE *fp, in argument
183 FILE *fp; local
[all...]

Completed in 34 milliseconds

123