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

1234

/PHP_5_6/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_6/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_6/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_5_6/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_6/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_6/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_6/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_6/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_6/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_6/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_6/ext/zip/lib/
H A Dzip_fdopen.c46 FILE *fp;
69 if ((fp=fdopen(fd, "rb")) == NULL) {
76 return _zip_open(NULL, fp, flags, zep);
44 FILE *fp; local
H A Dzip_open.c68 FILE *fp;
97 if ((fp=fopen(fn, "rb")) == NULL) {
102 return _zip_open(fn, fp, flags, zep);
129 _zip_open(const char *fn, FILE *fp, unsigned int flags, int *zep)
135 if (fseeko(fp, 0, SEEK_END) < 0) {
139 len = ftello(fp);
144 fclose(fp);
146 za->zp = fp;
150 cdir = _zip_find_central_dir(fp, flags, zep, len);
152 fclose(fp);
66 FILE *fp; local
126 _zip_open(const char *fn, FILE *fp, unsigned int flags, int *zep) argument
201 _zip_readcdir(FILE *fp, off_t buf_offset, unsigned char *buf, const unsigned char *eocd, size_t buflen, unsigned int flags, struct zip_error *error) argument
310 _zip_checkcons(FILE *fp, struct zip_cdir *cd, struct zip_error *error) argument
491 _zip_find_central_dir(FILE *fp, unsigned int flags, int *zep, off_t len) argument
[all...]
H A Dzip_dirent.c137 _zip_cdir_write(struct zip *za, const struct zip_filelist *filelist, zip_uint64_t survivors, FILE *fp)
146 if ((off=ftello(fp)) < 0) {
157 if ((ret=_zip_dirent_write(entry->changes ? entry->changes : entry->orig, fp, ZIP_FL_CENTRAL, &za->error)) < 0)
163 if ((off=ftello(fp)) < 0) {
173 fwrite(EOCD64_MAGIC, 1, 4, fp);
174 _zip_write8(EOCD64LEN-12, fp);
175 _zip_write2(45, fp);
176 _zip_write2(45, fp);
177 _zip_write4(0, fp);
178 _zip_write4(0, fp);
132 _zip_cdir_write(struct zip *za, const struct zip_filelist *filelist, zip_uint64_t survivors, FILE *fp) argument
327 _zip_dirent_read(struct zip_dirent *zde, FILE *fp, const unsigned char **bufp, zip_uint64_t *leftp, int local, struct zip_error *error) argument
636 _zip_dirent_write(struct zip_dirent *de, FILE *fp, zip_flags_t flags, struct zip_error *error) argument
890 _zip_read_data(const zip_uint8_t **buf, FILE *fp, size_t len, int nulp, struct zip_error *error) argument
933 _zip_read_string(const zip_uint8_t **buf, FILE *fp, zip_uint16_t len, int nulp, struct zip_error *error) argument
975 _zip_write2(zip_uint16_t i, FILE *fp) argument
986 _zip_write4(zip_uint32_t i, FILE *fp) argument
999 _zip_write8(zip_uint64_t i, FILE *fp) argument
[all...]
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
/PHP_5_6/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_6/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_6/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_6/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_6/ext/phar/
H A Dphar_internal.h141 /* for cached phars, this is a per-process store of fp/ufp */
224 /* regular file pointer phar_archive_data->fp */
228 /* modified file pointer phar_entry_info->fp */
244 /* when changing compression, save old flags in case fp is NULL */
253 /* offset within fp of the file contents */
257 php_stream *fp; member in struct:_phar_entry_info
307 php_stream *fp; member in struct:_phar_archive_data
336 /* offset within fp of the file contents */
341 php_stream *fp; member in struct:_phar_entry_fp
349 return entry->phar->fp;
467 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_6/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_6/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_5_6/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_6/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...]

Completed in 191 milliseconds

1234