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

1234

/PHP_5_4/ext/
H A Dext_skel_win32.php38 $fp = fopen("$skel/skeleton.dsp", "rb"); variable
39 if ($fp) {
40 $dsp_file = fread($fp, filesize("$skel/skeleton.dsp"));
41 fclose($fp);
45 $fp = fopen("$extname/$extname.dsp", "wb"); variable
46 if ($fp) {
47 fwrite($fp, $dsp_file);
48 fclose($fp);
52 $fp = fopen("$extname/$extname.php", "rb"); variable
53 if ($fp) {
58 $fp = fopen("$extname/$extname.php", "wb"); variable
[all...]
/PHP_5_4/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_5_4/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_5_4/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_5_4/ext/session/tests/
H A Dsave_handler.inc31 if ($fp = fopen($session_file, "w")) {
32 $return = fwrite($fp, $session_data);
33 fclose($fp);
/PHP_5_4/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_5_4/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_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,
[all...]
/PHP_5_4/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_5_4/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_5_4/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_5_4/ext/zip/lib/
H A Dzip_dirent.c129 _zip_cdir_write(struct zip_cdir *cd, FILE *fp, struct zip_error *error)
133 cd->offset = ftello(fp);
136 if (_zip_dirent_write(cd->entry+i, fp, 0, error) != 0)
140 cd->size = ftello(fp) - cd->offset;
142 /* clearerr(fp); */
143 fwrite(EOCD_MAGIC, 1, 4, fp);
144 _zip_write4(0, fp);
145 _zip_write2((unsigned short)cd->nentry, fp);
146 _zip_write2((unsigned short)cd->nentry, fp);
147 _zip_write4(cd->size, fp);
124 _zip_cdir_write(struct zip_cdir *cd, FILE *fp, struct zip_error *error) argument
220 _zip_dirent_read(struct zip_dirent *zde, FILE *fp, unsigned char **bufp, zip_uint32_t *leftp, int local, struct zip_error *error) argument
425 _zip_dirent_write(struct zip_dirent *zde, FILE *fp, int localp, struct zip_error *error) argument
528 _zip_readfpstr(FILE *fp, unsigned int len, int nulp, struct zip_error *error) argument
585 _zip_write2(unsigned short i, FILE *fp) argument
596 _zip_write4(unsigned int i, FILE *fp) argument
[all...]
H A Dzip_fdopen.c46 FILE *fp;
56 if ((fp=fdopen(fd, "rb")) == NULL) {
63 return _zip_open(NULL, fp, flags, ZIP_AFL_RDONLY, zep);
44 FILE *fp; local
H A Dzip_filerange_crc.c47 _zip_filerange_crc(FILE *fp, off_t start, off_t len, uLong *crcp,
55 if (fseeko(fp, start, SEEK_SET) != 0) {
62 if ((n=fread(buf, 1, n, fp)) <= 0) {
45 _zip_filerange_crc(FILE *fp, off_t start, off_t len, uLong *crcp, struct zip_error *errp) argument
H A Dzip_open.c65 FILE *fp;
82 if ((fp=fopen(fn, "rb")) == NULL) {
87 return _zip_open(fn, fp, flags, 0, zep);
94 _zip_open(const char *fn, FILE *fp, int flags, int aflags, int *zep)
101 if (fseeko(fp, 0, SEEK_END) < 0) {
105 len = ftello(fp);
110 fclose(fp);
112 za->zp = fp;
116 cdir = _zip_find_central_dir(fp, flags, zep, len);
118 fclose(fp);
63 FILE *fp; local
91 _zip_open(const char *fn, FILE *fp, int flags, int aflags, int *zep) argument
169 _zip_readcdir(FILE *fp, off_t buf_offset, unsigned char *buf, unsigned char *eocd, int buflen, int flags, struct zip_error *error) argument
299 _zip_checkcons(FILE *fp, struct zip_cdir *cd, struct zip_error *error) argument
511 _zip_find_central_dir(FILE *fp, int flags, int *zep, off_t len) argument
[all...]
/PHP_5_4/sapi/cli/tests/
H A Dphp_cli_server.inc41 while (($i++ < 30) && !($fp = @fsockopen(PHP_CLI_SERVER_HOSTNAME, PHP_CLI_SERVER_PORT))) {
45 if ($fp) {
46 fclose($fp);
/PHP_5_4/ext/phar/
H A Dphar.c144 php_stream_close(phar->fp);
145 phar->fp = NULL;
256 if (phar->fp) {
257 php_stream_close(phar->fp);
258 phar->fp = 0;
290 if (phar->fp && !(phar->flags & PHAR_FILE_COMPRESSION_MASK)) {
294 was compressed, then the fp does not refer to the original file */
295 php_stream_close(phar->fp);
296 phar->fp = NULL;
346 if (entry->fp
662 phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, long halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error TSRMLS_DC) argument
1324 php_stream *fp; local
1477 php_stream *fp; local
1566 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 TSRMLS_DC) argument
2327 php_stream *fp; local
2406 php_stream *fp = idata->fp; local
[all...]
H A Dphar_internal.h157 /* for cached phars, this is a per-process store of fp/ufp */
240 /* regular file pointer phar_archive_data->fp */
244 /* modified file pointer phar_entry_info->fp */
260 /* when changing compression, save old flags in case fp is NULL */
269 /* offset within fp of the file contents */
273 php_stream *fp; member in struct:_phar_entry_info
323 php_stream *fp; member in struct:_phar_archive_data
352 /* offset within fp of the file contents */
357 php_stream *fp; member in struct:_phar_entry_fp
365 return entry->phar->fp;
483 php_stream *fp; member in struct:_phar_entry_data
[all...]
H A Dtar.c158 static int phar_tar_process_metadata(phar_entry_info *entry, php_stream *fp TSRMLS_DC) /* {{{ */
161 size_t save = php_stream_tell(fp), read;
166 read = php_stream_read(fp, metadata, entry->uncompressed_filesize);
169 php_stream_seek(fp, save, SEEK_SET);
176 php_stream_seek(fp, save, SEEK_SET);
190 php_stream_seek(fp, save, SEEK_SET);
195 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 TSRMLS_DC) /* {{{ */ argument
209 php_stream_seek(fp, 0, SEEK_END);
210 totalsize = php_stream_tell(fp);
211 php_stream_seek(fp,
683 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 TSRMLS_DC) /* {{{ */ 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 TSRMLS_DC) /* {{{ */ 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...]
/PHP_5_4/ext/dba/libcdb/
H A Dcdb.h31 php_stream *fp; member in struct:cdb
44 void cdb_init(struct cdb *, php_stream *fp TSRMLS_DC);
/PHP_5_4/ext/dba/libflatfile/
H A Dflatfile.c55 php_stream_seek(dba->fp, 0L, SEEK_END);
56 php_stream_printf(dba->fp TSRMLS_CC, "%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 TSRMLS_CC, "%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 TSRMLS_CC, "%zu\n", key_datum.dsize);
69 php_stream_flush(dba->fp);
70 if (php_stream_write(dba->fp, key_datu
[all...]
/PHP_5_4/ext/dba/libinifile/
H A Dinifile.c82 inifile * inifile_alloc(php_stream *fp, int readonly, int persistent TSRMLS_DC) 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_5_4/ext/standard/
H A Diptc.c78 static int php_iptc_put1(FILE *fp, int spool, unsigned char c, unsigned char **spoolbuf TSRMLS_DC) argument
91 static int php_iptc_get1(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) argument
96 c = getc(fp);
113 static int php_iptc_read_remaining(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) argument
115 while (php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC) != EOF) continue;
123 static int php_iptc_skip_variable(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) argument
128 if ((c1 = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC)) == EOF) return M_EOI;
130 if ((c2 = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC)) == EOF) return M_EOI;
137 if (php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC) == EOF) return M_EOI;
145 static int php_iptc_next_marker(FILE *fp, in argument
183 FILE *fp; local
[all...]
/PHP_5_4/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);
261 $fp = fopen("$dist_dir/snapshot.txt", "w"); variable
264 fwrite($fp, <<<EO
[all...]

Completed in 78 milliseconds

1234