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

123

/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/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_6/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_6/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_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_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/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_6/ext/mbstring/oniguruma/enc/
H A Dmktable.c1106 static int exec(FILE* fp, ENC_INFO* einfo) argument
1114 fprintf(fp, "static const unsigned short Enc%s_CtypeTable[256] = {\n",
1134 if (c % NCOL == 0) fputs(" ", fp);
1135 fprintf(fp, "0x%04x", val);
1136 if (c != 255) fputs(",", fp);
1138 fputs("\n", fp);
1140 fputs(" ", fp);
1142 fprintf(fp, "};\n");
1149 FILE* fp = stdout; local
1158 exec(fp,
[all...]
/PHP_5_6/Zend/
H A Dzend_stream.h68 FILE *fp; member in union:_zend_file_handle::__anon22
/PHP_5_6/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_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);
H A Dcdb_make.h54 php_stream * fp; member in struct:cdb_make
/PHP_5_6/ext/dba/libflatfile/
H A Dflatfile.h32 php_stream *fp; member in struct:__anon56
/PHP_5_6/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);
303 FILE *fp = fopen(mmap_base_file, "w"); local
305 if (!fp) {
311 fprintf(fp, "%p\n", mapping_base);
312 fclose(fp);
H A Dzend_accelerator_blacklist.c247 FILE *fp; local
251 if ((fp = fopen(filename, "r")) == NULL) {
270 while (fgets(buf, MAXPATHLEN, fp) != NULL) {
317 fclose(fp);
324 fclose(fp);
/PHP_5_6/ext/standard/
H A Dexec.c62 FILE *fp; local
77 fp = VCWD_POPEN(cmd, "rb");
79 fp = VCWD_POPEN(cmd, "r");
81 if (!fp) {
86 stream = php_stream_fopen_from_pipe(fp, "rb");
/PHP_5_6/main/
H A Dphp_open_temporary_file.c306 FILE *fp; local
313 fp = fdopen(fd, "r+b");
314 if (fp == NULL) {
318 return fp;
/PHP_5_6/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;
/PHP_5_6/sapi/webjames/
H A Dwebjames.c169 FILE *fp=NULL; local
/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...]
H A Dinifile.h42 php_stream *fp; member in struct:__anon15
63 inifile * inifile_alloc(php_stream *fp, int readonly, int persistent TSRMLS_DC);
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_utils.c227 PHPDBG_API int phpdbg_print(int type TSRMLS_DC, FILE *fp, const char *format, ...) /* {{{ */ argument
244 rc = fprintf(fp,
248 rc = fprintf(fp, "[%s]\n", buffer);
254 rc = fprintf(fp,
258 rc = fprintf(fp, "[%s]\n", buffer);
264 rc = fprintf(fp, "%s\n", buffer);
266 rc = fprintf(fp, "\n");
272 rc = fprintf(fp, "%s", buffer);
281 rc = fprintf(fp, "[%ld %.8F]: %s\n", tp.tv_sec, tp.tv_usec / 1000000.00, buffer);
296 PHPDBG_API int phpdbg_rlog(FILE *fp, cons argument
[all...]

Completed in 194 milliseconds

123