/PHP-5.3/ext/gd/libgd/ |
H A D | gdxpm.c | 23 char buf[5]; in gdImageCreateFromXpm() local 44 buf[1] = '\0'; in gdImageCreateFromXpm() 46 red = strtol(buf, NULL, 16); in gdImageCreateFromXpm() 49 green = strtol(buf, NULL, 16); in gdImageCreateFromXpm() 52 blue = strtol(buf, NULL, 16); in gdImageCreateFromXpm() 56 buf[2] = '\0'; in gdImageCreateFromXpm() 59 red = strtol(buf, NULL, 16); in gdImageCreateFromXpm() 67 blue = strtol(buf, NULL, 16); in gdImageCreateFromXpm() 71 buf[3] = '\0'; in gdImageCreateFromXpm() 75 red = strtol(buf, NULL, 16); in gdImageCreateFromXpm() [all …]
|
H A D | gd_gif_in.c | 76 unsigned char buf[280]; member 134 unsigned char buf[16]; in gdImageCreateFromGifCtx() local 174 screen_width = imw = LM_to_uint(buf[0],buf[1]); in gdImageCreateFromGifCtx() 175 screen_height = imh = LM_to_uint(buf[2],buf[3]); in gdImageCreateFromGifCtx() 216 left = LM_to_uint(buf[0], buf[1]); in gdImageCreateFromGifCtx() 217 top = LM_to_uint(buf[2], buf[3]); in gdImageCreateFromGifCtx() 218 width = LM_to_uint(buf[4], buf[5]); in gdImageCreateFromGifCtx() 219 height = LM_to_uint(buf[6], buf[7]); in gdImageCreateFromGifCtx() 309 Gif89.delayTime = LM_to_uint(buf[1],buf[2]); in DoExtension() 390 scd->buf[0] = scd->buf[scd->last_byte-2]; in GetCode_() [all …]
|
H A D | gd_io_ss.c | 45 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size); 79 static int sourceGetbuf (gdIOCtx * ctx, void *buf, int size) in sourceGetbuf() argument 86 res = ((lctx->src->source) (lctx->src->context, buf, size)); in sourceGetbuf() 105 unsigned char buf; in sourceGetchar() local 107 res = sourceGetbuf (ctx, &buf, 1); in sourceGetchar() 110 return buf; in sourceGetchar() 116 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size) in sinkPutbuf() argument 123 res = (lctx->snk->sink) (lctx->snk->context, buf, size); in sinkPutbuf()
|
/PHP-5.3/ext/dba/libflatfile/ |
H A D | flatfile.c | 92 if (php_stream_gets(dba->fp, buf, sizeof(buf))) { in flatfile_fetch() 124 buf = erealloc(buf, buf_size); in flatfile_delete() 150 buf = erealloc(buf, buf_size); in flatfile_delete() 158 efree(buf); in flatfile_delete() 181 buf = erealloc(buf, buf_size); in flatfile_findkey() 199 buf = erealloc(buf, buf_size); in flatfile_findkey() 206 efree(buf); in flatfile_findkey() 227 buf = erealloc(buf, buf_size); in flatfile_firstkey() 245 buf = erealloc(buf, buf_size); in flatfile_firstkey() 275 buf = erealloc(buf, buf_size); in flatfile_nextkey() [all …]
|
/PHP-5.3/ext/standard/ |
H A D | var.c | 351 smart_str *buf; in php_array_element_export() local 387 smart_str *buf; in php_object_element_export() local 507 smart_str_0 (&buf); in php_var_export() 508 PHPWRITE(buf.c, buf.len); in php_var_export() 526 smart_str_0 (&buf); in PHP_FUNCTION() 529 RETVAL_STRINGL(buf.c, buf.len, 1); in PHP_FUNCTION() 531 PHPWRITE(buf.c, buf.len); in PHP_FUNCTION() 885 smart_str_0(buf); in php_var_serialize() 909 if (buf.c) { in PHP_FUNCTION() 910 RETURN_STRINGL(buf.c, buf.len, 0); in PHP_FUNCTION() [all …]
|
H A D | exec.c | 64 char *buf, *tmp=NULL; in php_exec() local 123 b = buf; in php_exec() 129 bufl += b - buf; in php_exec() 131 buf = erealloc(buf, buflen); in php_exec() 132 b = buf + bufl; in php_exec() 138 bufl += b - buf; in php_exec() 152 buf[bufl] = '\0'; in php_exec() 156 b = buf; in php_exec() 165 buf[bufl] = '\0'; in php_exec() 186 PHPWRITE(buf, bufl); in php_exec() [all …]
|
/PHP-5.3/ext/json/ |
H A D | json.c | 189 smart_str_appendc(buf, '['); in json_encode_array() 191 smart_str_appendc(buf, '{'); in json_encode_array() 270 smart_str_appendc(buf, ']'); in json_encode_array() 272 smart_str_appendc(buf, '}'); in json_encode_array() 306 smart_str_appendc(buf, '0'); in json_escape_string() 333 smart_str_appendc(buf, '"'); in json_escape_string() 381 smart_str_appendc(buf, '<'); in json_escape_string() 428 smart_str_appendc(buf, '"'); in json_escape_string() 563 smart_str buf = {0}; in PHP_FUNCTION() local 574 ZVAL_STRINGL(return_value, buf.c, buf.len, 1); in PHP_FUNCTION() [all …]
|
H A D | JSON_parser.c | 301 buf->len--; in json_create_zval() 306 int cmp = strcmp(buf->c + (buf->c[0] == '-'), long_min_digits); in json_create_zval() 325 ZVAL_STRINGL(*z, buf->c, buf->len, 1); in json_create_zval() 351 && ((unsigned char) buf->c[buf->len - 3]) == 0xed in utf16_to_utf8() 352 && ((unsigned char) buf->c[buf->len - 2] & 0xf0) == 0xa0 in utf16_to_utf8() 353 && ((unsigned char) buf->c[buf->len - 1] & 0xc0) == 0x80) in utf16_to_utf8() 358 utf32 = (((buf->c[buf->len - 2] & 0xf) << 16) in utf16_to_utf8() 359 | ((buf->c[buf->len - 1] & 0x3f) << 10) in utf16_to_utf8() 361 buf->len -= 3; in utf16_to_utf8() 430 smart_str buf = {0}; in parse_JSON() local [all …]
|
/PHP-5.3/ext/fileinfo/libmagic/ |
H A D | ascmagic.c | 85 nbytes = trim_nuls(buf, nbytes); in file_ascmagic() 129 nbytes = trim_nuls(buf, nbytes); in file_ascmagic_with_encoding() 311 unsigned char *end = buf + len; in encode_utf8() 315 if (end - buf < 1) in encode_utf8() 317 *buf++ = (unsigned char)ubuf[i]; in encode_utf8() 319 if (end - buf < 2) in encode_utf8() 324 if (end - buf < 3) in encode_utf8() 330 if (end - buf < 4) in encode_utf8() 337 if (end - buf < 5) in encode_utf8() 345 if (end - buf < 6) in encode_utf8() [all …]
|
H A D | encoding.c | 319 c = buf[i] & 0x1f; in file_looks_utf8() 322 c = buf[i] & 0x0f; in file_looks_utf8() 325 c = buf[i] & 0x07; in file_looks_utf8() 328 c = buf[i] & 0x03; in file_looks_utf8() 331 c = buf[i] & 0x01; in file_looks_utf8() 341 if ((buf[i] & 0x80) == 0 || (buf[i] & 0x40)) in file_looks_utf8() 365 if (nbytes > 3 && buf[0] == 0xef && buf[1] == 0xbb && buf[2] == 0xbf) in looks_utf8_with_BOM() 381 if (buf[0] == 0xff && buf[1] == 0xfe) in looks_ucs16() 383 else if (buf[0] == 0xfe && buf[1] == 0xff) in looks_ucs16() 394 ubuf[(*ulen)++] = buf[i + 1] + 256 * buf[i]; in looks_ucs16() [all …]
|
H A D | funcs.c | 70 len = spprintf(&newstr, 0, "%s%s", ms->o.buf, (buf ? buf : "")); in file_printf() 71 if (buf) { in file_printf() 72 efree(buf); in file_printf() 74 efree(ms->o.buf); in file_printf() 77 ms->o.buf = buf; in file_printf() 90 char *buf = NULL; in file_error_core() local 105 file_printf(ms, "%s (%s)", (*buf ? buf : ""), strerror(error)); in file_error_core() 110 if (buf) { in file_error_core() 111 efree(buf); in file_error_core() 314 if (ms->o.buf) { in file_reset() [all …]
|
H A D | compress.c | 154 swrite(int fd, const void *buf, size_t n) in swrite() argument 160 switch (rv = write(fd, buf, n)) { in swrite() 167 buf = CAST(const char *, buf) + rv; in swrite() 236 buf = ((char *)buf) + rv; in sread() 247 char buf[4096]; in file_pipe2file() local 254 (void)strlcpy(buf, "/tmp/file.XXXXXX", sizeof buf); in file_pipe2file() 257 char *ptr = mktemp(buf); in file_pipe2file() 264 tfd = mkstemp(buf); in file_pipe2file() 266 (void)unlink(buf); in file_pipe2file() 278 while ((r = sread(fd, buf, sizeof(buf), 1)) > 0) in file_pipe2file() [all …]
|
/PHP-5.3/ext/dba/libcdb/ |
H A D | cdb.c | 48 char buf[32]; in cdb_match() local 52 n = sizeof(buf); in cdb_match() 57 if (memcmp(buf, key, n)) in cdb_match() 121 buf += r; in cdb_read() 131 char buf[8]; in cdb_findnext() local 139 uint32_unpack(buf + 4,&c->hslots); in cdb_findnext() 142 uint32_unpack(buf, &c->hpos); in cdb_findnext() 153 uint32_unpack(buf + 4, &pos); in cdb_findnext() 160 uint32_unpack(buf, &u); in cdb_findnext() 164 uint32_unpack(buf, &u); in cdb_findnext() [all …]
|
/PHP-5.3/Zend/ |
H A D | zend_stream.c | 67 struct stat buf; in zend_stream_stdio_fsizer() local 109 struct stat buf; in zend_stream_fsize() local 146 char buf; in zend_stream_getc() local 214 *buf = file_handle->handle.stream.mmap.buf; 247 file_handle->handle.stream.mmap.buf = *buf; 267 *buf = safe_erealloc(*buf, size, 2, 0); 274 *buf = safe_erealloc(*buf, size, 1, ZEND_MMAP_AHEAD); 276 file_handle->handle.stream.mmap.buf = *buf; 280 *buf = erealloc(*buf, ZEND_MMAP_AHEAD); 281 file_handle->handle.stream.mmap.buf = *buf; [all …]
|
/PHP-5.3/sapi/fpm/fpm/ |
H A D | zlog.c | 104 char buf[MAX_LINE_LENGTH]; in zlog_ex() local 113 len = vsnprintf(buf, buf_size, fmt, args); in zlog_ex() 119 external_logger(flags & ZLOG_LEVEL_MASK, buf, len); in zlog_ex() 121 memset(buf, '\0', buf_size); in zlog_ex() 142 len = zlog_print_time(&tv, buf, buf_size); in zlog_ex() 161 len += vsnprintf(buf + len, buf_size - len, fmt, args); in zlog_ex() 184 buf[len] = '\0'; in zlog_ex() 185 php_syslog(syslog_priorities[zlog_level], "%s", buf); in zlog_ex() 186 buf[len++] = '\n'; in zlog_ex() 190 buf[len++] = '\n'; in zlog_ex() [all …]
|
H A D | fpm_php_trace.c | 48 char buf[buf_size]; in fpm_php_trace_dump() local 54 zlog_print_time(&tv, buf, buf_size); in fpm_php_trace_dump() 56 fprintf(slowlog, "\n%s [pool %s] pid %d\n", buf, child->wp->config->name, (int) pid); in fpm_php_trace_dump() 58 if (0 > fpm_trace_get_strz(buf, buf_size, (long) &SG(request_info).path_translated)) { in fpm_php_trace_dump() 62 fprintf(slowlog, "script_filename = %s\n", buf); in fpm_php_trace_dump() 83 …if (0 > fpm_trace_get_strz(buf, buf_size, function + offsetof(zend_function, common.function_name)… in fpm_php_trace_dump() 87 fprintf(slowlog, "%s()", buf); in fpm_php_trace_dump() 96 *buf = '\0'; in fpm_php_trace_dump() 101 if (0 > fpm_trace_get_strz(buf, buf_size, op_array + offsetof(zend_op_array, filename))) { in fpm_php_trace_dump() 121 fprintf(slowlog, " %s:%u\n", *buf ? buf : "unknown", lineno); in fpm_php_trace_dump()
|
/PHP-5.3/main/ |
H A D | reentrancy.c | 63 if (ctime_r(clock, buf) == buf) in php_ctime_r() 64 return (buf); in php_ctime_r() 70 if (asctime_r(tm, buf) == buf) in php_asctime_r() 71 return (buf); in php_asctime_r() 94 return (buf); in php_ctime_r() 100 if (asctime_r(tm, buf, 26) != -1) in php_asctime_r() 101 return (buf); in php_asctime_r() 204 strcpy(buf, tmp); in php_ctime_r() 208 return buf; in php_ctime_r() 222 strcpy(buf, tmp); in php_asctime_r() [all …]
|
/PHP-5.3/ext/mbstring/oniguruma/ |
H A D | regint.h | 461 (buf)->p = (UChar* )xrealloc((buf)->p, (buf)->alloc);\ 467 (buf)->p = (UChar* )xrealloc((buf)->p, (buf)->alloc);\ 475 (buf)->p = (UChar* )xrealloc((buf)->p, new_alloc);\ 495 #define BBUF_ADD(buf,bytes,n) BBUF_WRITE((buf),(buf)->used,(bytes),(n)) argument 496 #define BBUF_ADD1(buf,byte) BBUF_WRITE1((buf),(buf)->used,(byte)) argument 497 #define BBUF_GET_ADD_ADDRESS(buf) ((buf)->p + (buf)->used) argument 498 #define BBUF_GET_OFFSET_POS(buf) ((buf)->used) argument 503 xmemmove((buf)->p + (to), (buf)->p + (from), (n));\ 509 xmemmove((buf)->p + (to), (buf)->p + (from), (n));\ 514 xmemmove((buf)->p + (to), (buf)->p + (from), (buf)->used - (from));\ [all …]
|
/PHP-5.3/ext/session/ |
H A D | mod_files.c | 115 buf[n++] = PHP_DIR_SEPARATOR; in ps_files_path_create() 117 buf[n++] = *p++; in ps_files_path_create() 118 buf[n++] = PHP_DIR_SEPARATOR; in ps_files_path_create() 124 buf[n] = '\0'; in ps_files_path_create() 126 return buf; in ps_files_path_create() 148 char buf[MAXPATHLEN]; in ps_files_open() local 163 if (!ps_files_path_create(buf, sizeof(buf), data, key)) { in ps_files_open() 215 char buf[MAXPATHLEN]; in ps_files_cleanup_dir() local 250 VCWD_UNLINK(buf); in ps_files_cleanup_dir() 426 char buf[MAXPATHLEN]; in PS_DESTROY_FUNC() local [all …]
|
/PHP-5.3/ext/mbstring/libmbfl/tests/conv_encoding.tests/ |
H A D | gen_exp.c | 120 buf[0] = k; in utf32_utf8() 123 buf[0] = 0xc0 | (k >> 6); in utf32_utf8() 124 buf[1] = 0x80 | (k & 0x3f); in utf32_utf8() 127 buf[0] = 0xe0 | (k >> 12); in utf32_utf8() 132 buf[0] = 0xf0 | (k >> 18); in utf32_utf8() 138 buf[0] = 0xf8 | (k >> 24); in utf32_utf8() 145 buf[0] = 0xfc | (k >> 30); in utf32_utf8() 153 buf[retval] = '\0'; in utf32_utf8() 382 char buf[1024]; in main() local 408 while (fgets(buf, sizeof(buf), fp)) { in main() [all …]
|
/PHP-5.3/ext/xmlrpc/libxmlrpc/ |
H A D | xml_to_soap.c | 92 char buf[128], *p; in parse_array_type_info() local 93 snprintf(buf, sizeof(buf), "%s", array_type); in parse_array_type_info() 94 p = strchr(buf, '['); in parse_array_type_info() 367 XMLRPC_SetValueBase64(xCurrent, buf.data, buf.offset); in xml_element_to_SOAP_REQUEST_worker() 368 buffer_delete(&buf); in xml_element_to_SOAP_REQUEST_worker() 439 char buf[BUF_SIZE]; in SOAP_to_xml_element_worker() local 459 snprintf(buf, sizeof(buf), "%s[%i]", type, XMLRPC_VectorSize(node)); in SOAP_to_xml_element_worker() 533 simplestring_addn(&elem_val->text, buf.data, buf.offset ); in SOAP_to_xml_element_worker() 534 buffer_delete(&buf); in SOAP_to_xml_element_worker() 630 char buf[128]; in SOAP_REQUEST_to_xml_element() local [all …]
|
/PHP-5.3/ext/ftp/tests/ |
H A D | server.inc | 64 var_dump($buf); 100 $buf = fread($s, 2048); 109 dump_and_exit($buf); 126 dump_and_exit($buf); 130 $buf = fread($s, 2048); 134 dump_and_exit($buf); 144 dump_and_exit($buf); 161 dump_and_exit($buf); 175 user_auth($buf); 301 user_auth($buf); [all …]
|
/PHP-5.3/win32/ |
H A D | winutil.c | 27 char *buf = NULL; in php_win_err() local 31 NULL, error, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&buf, 0, NULL in php_win_err() 34 return (buf ? (char *) buf : ""); in php_win_err() 80 PHPAPI int php_win32_get_random_bytes(unsigned char *buf, size_t size) { /* {{{ */ in php_win32_get_random_bytes() argument 118 ret = CryptGenRandom(hCryptProv, size, buf); in php_win32_get_random_bytes()
|
/PHP-5.3/ext/zip/lib/ |
H A D | zip_source_buffer.c | 42 const char *buf, *data, *end; member 89 char *buf; in read_data() local 93 buf = (char *)data; in read_data() 97 z->buf = z->data; in read_data() 103 n = z->end - z->buf; in read_data() 108 memcpy(buf, z->buf, n); in read_data() 109 z->buf += n; in read_data()
|
/PHP-5.3/ext/dba/ |
H A D | dba_cdb.c | 140 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos TSRMLS_CC) argument 144 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos) argument 215 # define cdb_file_read(fildes, buf, size) php_stream_read(fildes, buf, size) argument 217 # define cdb_file_read(fildes, buf, size) read(fildes, buf, size) argument 249 char buf[8]; in DBA_FIRSTKEY_FUNC() local 262 uint32_unpack(buf, &cdb->eod); in DBA_FIRSTKEY_FUNC() 268 uint32_unpack(buf, &klen); in DBA_FIRSTKEY_FUNC() 269 uint32_unpack(buf + 4, &dlen); in DBA_FIRSTKEY_FUNC() 290 char buf[8]; in DBA_NEXTKEY_FUNC() local 300 uint32_unpack(buf, &klen); in DBA_NEXTKEY_FUNC() [all …]
|