Searched defs:fp (Results 1 - 25 of 53) sorted by relevance

123

/PHP_5_3/ext/ereg/regex/
H A Dsplit.c20 register char **fp = fields; local
44 *fp++ = p;
68 *fp++ = p;
72 if (trimtrail && **(fp-1) == '\0')
112 *fp++ = p;
/PHP_5_3/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_3/ext/phar/
H A Dshortarc.php115 $fp = fopen(__FILE__, 'rb'); variable
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)
252 $data .= @fread($fp, $c);
256 $data .= @fread($fp, 8192);
/PHP_5_3/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_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,
[all...]
/PHP_5_3/ext/zip/lib/
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...]
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...]
/PHP_5_3/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_3/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_3/ext/mbstring/libmbfl/tests/conv_encoding.tests/
H A Dgen_exp.c381 FILE *fp; local
400 fp = fopen(cp932_txt, "r");
401 if (!fp) {
408 while (fgets(buf, sizeof(buf), fp)) {
/PHP_5_3/ext/mbstring/oniguruma/enc/
H A Dmktable.c1067 static int exec(FILE* fp, ENC_INFO* einfo) argument
1075 fprintf(fp, "static unsigned short Enc%s_CtypeTable[256] = {\n",
1095 if (c % NCOL == 0) fputs(" ", fp);
1096 fprintf(fp, "0x%04x", val);
1097 if (c != 255) fputs(",", fp);
1099 fputs("\n", fp);
1101 fputs(" ", fp);
1103 fprintf(fp, "};\n");
1110 FILE* fp = stdout; local
1113 exec(fp,
[all...]
/PHP_5_3/ext/dba/
H A Ddba_cdb.c78 file = info->fp;
90 file = info->fp;
228 int cdb_file_lseek(php_stream *fp, off_t offset, int whence TSRMLS_DC) { argument
229 php_stream_seek(fp, offset, whence);
230 return php_stream_tell(fp);
/PHP_5_3/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);
H A Dcdb_make.h54 php_stream * fp; member in struct:cdb_make
/PHP_5_3/ext/dba/libflatfile/
H A Dflatfile.h32 php_stream *fp; member in struct:__anon36
/PHP_5_3/ext/dba/libinifile/
H A Dinifile.c83 inifile * inifile_alloc(php_stream *fp, int readonly, int persistent TSRMLS_DC) argument
88 if (!php_stream_truncate_supported(fp)) {
96 dba->fp = fp;
173 while ((fline = php_stream_gets(dba->fp, NULL, 0)) != NULL) {
185 ln->pos = php_stream_tell(dba->fp);
205 ln->pos = php_stream_tell(dba->fp);
253 php_stream_seek(dba->fp, dba->next.pos, SEEK_SET);
257 php_stream_rewind(dba->fp);
270 dba->next.pos = php_stream_tell(dba->fp);
389 php_stream *fp; local
[all...]
H A Dinifile.h42 php_stream *fp; member in struct:__anon40
63 inifile * inifile_alloc(php_stream *fp, int readonly, int persistent TSRMLS_DC);
/PHP_5_3/ext/gd/
H A Dgd_ctx.c57 FILE *fp = NULL; local
99 fp = VCWD_FOPEN(file, "wb");
100 if (!fp) {
105 ctx = gdNewFileCtx(fp);
159 if(fp) {
160 fflush(fp);
161 fclose(fp);
/PHP_5_3/ext/standard/
H A Dexec.c63 FILE *fp; local
108 fp = VCWD_POPEN(cmd_p, "rb");
110 fp = VCWD_POPEN(cmd_p, "r");
112 if (!fp) {
117 stream = php_stream_fopen_from_pipe(fp, "rb");
/PHP_5_3/main/
H A Dphp_open_temporary_file.c291 FILE *fp; local
298 fp = fdopen(fd, "r+b");
299 if (fp == NULL) {
303 return fp;
/PHP_5_3/sapi/webjames/
H A Dwebjames.c169 FILE *fp=NULL; local
/PHP_5_3/Zend/
H A Dzend_stream.h68 FILE *fp; member in union:_zend_file_handle::__anon15
/PHP_5_3/main/streams/
H A Dcast.c356 FILE *fp = NULL; local
365 if (php_stream_cast(stream, PHP_STREAM_AS_STDIO|PHP_STREAM_CAST_TRY_HARD|PHP_STREAM_CAST_RELEASE, (void**)&fp, REPORT_ERRORS) == FAILURE) {
372 return fp;

Completed in 45 milliseconds

123