Home
last modified time | relevance | path

Searched refs:buf (Results 201 – 225 of 337) sorted by relevance

12345678910>>...14

/PHP-5.5/Zend/
H A Dzend_operators.c1255 char *buf; in add_char_to_string() local
1262 buf = (char *) emalloc(length + 1); in add_char_to_string()
1268 buf[length] = 0; in add_char_to_string()
1269 ZVAL_STRINGL(result, buf, length, 0); in add_char_to_string()
1278 char *buf; in add_string_to_string() local
1284 buf = (char *) emalloc(length+1); in add_string_to_string()
1290 buf[length] = 0; in add_string_to_string()
1291 ZVAL_STRINGL(result, buf, length, 0); in add_string_to_string()
1336 char *buf; in concat_function() local
1345 buf[length] = 0; in concat_function()
[all …]
H A Dzend_ini_scanner.l228 char *buf; in zend_ini_open_file_for_scanning() local
231 if (zend_stream_fixup(fh, &buf, &size TSRMLS_CC) == FAILURE) { in zend_ini_open_file_for_scanning()
240 yy_scan_buffer(buf, size TSRMLS_CC); in zend_ini_open_file_for_scanning()
/PHP-5.5/ext/mysqli/
H A Dmysqli.c130 if (type == FETCH_RESULT && bbuf.buf[i].val) { in php_free_stmt_bind_buffer()
131 efree(bbuf.buf[i].val); in php_free_stmt_bind_buffer()
150 efree(bbuf.buf); in php_free_stmt_bind_buffer()
964 char buf[32]; in PHP_MINFO_FUNCTION() local
969 snprintf(buf, sizeof(buf), "%ld", MyG(num_active_persistent)); in PHP_MINFO_FUNCTION()
970 php_info_print_table_row(2, "Active Persistent Links", buf); in PHP_MINFO_FUNCTION()
971 snprintf(buf, sizeof(buf), "%ld", MyG(num_inactive_persistent)); in PHP_MINFO_FUNCTION()
972 php_info_print_table_row(2, "Inactive Persistent Links", buf); in PHP_MINFO_FUNCTION()
973 snprintf(buf, sizeof(buf), "%ld", MyG(num_links)); in PHP_MINFO_FUNCTION()
974 php_info_print_table_row(2, "Active Links", buf); in PHP_MINFO_FUNCTION()
/PHP-5.5/ext/json/
H A Dphp_json.h52 PHP_JSON_API void php_json_encode(smart_str *buf, zval *val, int options TSRMLS_DC);
/PHP-5.5/ext/standard/
H A Dphp_var.h37 PHPAPI void php_var_export_ex(zval **struc, int level, smart_str *buf TSRMLS_DC);
52 PHPAPI void php_var_serialize(smart_str *buf, zval **struc, php_serialize_data_t *var_hash TSRMLS_D…
H A Duser_filters.c440 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen, 1); in PHP_FUNCTION()
471 bucket->buf = perealloc(bucket->buf, Z_STRLEN_PP(pzdata), bucket->is_persistent); in php_stream_bucket_attach()
474 memcpy(bucket->buf, Z_STRVAL_PP(pzdata), bucket->buflen); in php_stream_bucket_attach()
542 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen, 1); in PHP_FUNCTION()
H A Ddns_win32.c256 char buf[sizeof("AAAA:AAAA:AAAA:AAAA:AAAA:AAAA:AAAA:AAAA")]; in php_parserr() local
257 char *tp = buf; in php_parserr()
270 if (tp > (u_char *)buf) { in php_parserr()
298 add_assoc_string(*subarray, "ipv6", buf, 1); in php_parserr()
H A Ddns.c131 char buf[HOST_NAME_MAX]; in PHP_FUNCTION() local
137 if (gethostname(buf, sizeof(buf) - 1)) { in PHP_FUNCTION()
142 RETURN_STRING(buf, 1); in PHP_FUNCTION()
1002 char buf[MAXHOSTNAMELEN]; in PHP_FUNCTION() local
1072 if ((i = dn_expand(ans, end, cp, buf, sizeof(buf)-1)) < 0) { in PHP_FUNCTION()
1077 add_next_index_string(mx_list, buf, 1); in PHP_FUNCTION()
H A Dcrypt_sha256.c706 char buf[1000]; in main() local
733 memset(buf, 'a', sizeof(buf)); in main()
736 sha256_process_bytes (buf, sizeof (buf), &ctx); in main()
/PHP-5.5/ext/mcrypt/
H A Dmcrypt_filter.c70 memcpy(outchunk + data->block_used, bucket->buf, bucket->buflen); in php_mcrypt_filter()
94 mcrypt_generic(data->module, bucket->buf, bucket->buflen); in php_mcrypt_filter()
96 mdecrypt_generic(data->module, bucket->buf, bucket->buflen); in php_mcrypt_filter()
/PHP-5.5/sapi/continuity/
H A Dcapi.c238 char buf[128]; in sapi_capi_register_server_variables() local
328 utlFip_to_str(rc->t->cli_ipv4_addr, buf, sizeof(buf)); in sapi_capi_register_server_variables()
329 php_register_variable("REMOTE_ADDR", buf, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
/PHP-5.5/ext/pdo_oci/
H A Doci_statement.c391 char buf[8192]; in oci_stmt_param_hook() local
392 n = php_stream_read(stm, buf, sizeof(buf)); in oci_stmt_param_hook()
396 consume = buf; in oci_stmt_param_hook()
614 static size_t oci_blob_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) in oci_blob_write() argument
622 &amt, self->offset, (char*)buf, count, in oci_blob_write()
634 static size_t oci_blob_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) in oci_blob_read() argument
642 &amt, self->offset, buf, count, in oci_blob_read()
/PHP-5.5/sapi/litespeed/
H A Dlsapi_main.c241 char buf[128]; in litespeed_php_import_environment_variables() local
242 char **env, *p, *t = buf; in litespeed_php_import_environment_variables()
243 size_t alloc_size = sizeof(buf); in litespeed_php_import_environment_variables()
294 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in litespeed_php_import_environment_variables()
300 if (t != buf && t != NULL) { in litespeed_php_import_environment_variables()
435 char buf[8192]; in sapi_lsapi_log_message() local
439 snprintf( buf, 8191, "%s\n", message ); in sapi_lsapi_log_message()
440 message = buf; in sapi_lsapi_log_message()
/PHP-5.5/ext/mbstring/oniguruma/
H A Dregparse.c1570 onig_strcpy(&(sn->s[num]), buf, buf + len); in node_str_head_pad()
2813 UChar buf[WARN_BUFSIZE]; in CC_ESC_WARN() local
2817 (*onig_warn)((char* )buf); in CC_ESC_WARN()
2827 UChar buf[WARN_BUFSIZE]; in CLOSE_BRACKET_WITHOUT_ESC_WARN() local
4244 buf[0] = tok->u.c; in parse_char_class()
4252 buf[i] = tok->u.c; in parse_char_class()
4260 len = enclen(env->enc, buf); in parse_char_class()
5009 snode = onig_node_new_str(buf, buf + len); in i_apply_case_fold()
5017 r = onig_node_str_cat(snode, buf, buf + len); in i_apply_case_fold()
5149 *np = node_new_str_raw(buf, buf + num); in parse_exp()
[all …]
/PHP-5.5/ext/fileinfo/libmagic/
H A Delfclass.h31 (void)memcpy(&elfhdr, buf, sizeof elfhdr);
/PHP-5.5/ext/gd/libgd/
H A Dgdtest.c16 static int freadWrapper (void *context, char *buf, int len);
399 freadWrapper (void *context, char *buf, int len) in freadWrapper() argument
401 int got = fread (buf, 1, len, (FILE *) context); in freadWrapper()
/PHP-5.5/ext/pdo/
H A Dpdo_sql_parser.re208 char *buf = NULL;
210 len = php_stream_copy_to_mem(stm, &buf, PHP_STREAM_COPY_ALL, 0);
211 if (!stmt->dbh->methods->quoter(stmt->dbh, buf, len, &plc->quoted, &plc->qlen,
216 if (buf) {
217 efree(buf);
221 if (buf) {
222 efree(buf);
/PHP-5.5/sapi/nsapi/
H A Dnsapi.c664 char buf[32]; in sapi_nsapi_register_server_variables() local
717 slprintf(buf, sizeof(buf), "%d", conf_getglobals()->Vport); in sapi_nsapi_register_server_variables()
718 php_register_variable("SERVER_PORT", buf, track_vars_array TSRMLS_CC); in sapi_nsapi_register_server_variables()
773 slprintf(buf, sizeof(buf), "%d", rc->http_error); in sapi_nsapi_register_server_variables()
774 php_register_variable("ERROR_TYPE", buf, track_vars_array TSRMLS_CC); in sapi_nsapi_register_server_variables()
/PHP-5.5/ext/hash/
H A Dhash_md.c141 unsigned char buf[1024]; in PHP_NAMED_FUNCTION() local
158 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_NAMED_FUNCTION()
159 PHP_MD5Update(&context, buf, n); in PHP_NAMED_FUNCTION()
657 PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *buf, unsigned int len) in PHP_MD2Update() argument
659 const unsigned char *p = buf, *e = buf + len; in PHP_MD2Update()
/PHP-5.5/ext/bz2/
H A Dbz2.c137 static size_t php_bz2iop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) in php_bz2iop_read() argument
142 bz2_ret = BZ2_bzread(self->bz_file, buf, count); in php_bz2iop_read()
155 static size_t php_bz2iop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) in php_bz2iop_write() argument
159 return BZ2_bzwrite(self->bz_file, (char*)buf, count); in php_bz2iop_write()
/PHP-5.5/ext/soap/
H A Dphp_sdl.c1185 #define WSDL_CACHE_GET(ret,type,buf) memcpy(&ret,*buf,sizeof(type)); *buf += sizeof(type); argument
1186 …GET_INT(ret,buf) ret = ((unsigned char)(*buf)[0])|((unsigned char)(*buf)[1]<<8)|((unsigned char… argument
1187 #define WSDL_CACHE_GET_1(ret,type,buf) ret = (type)(**buf); (*buf)++; argument
1188 #define WSDL_CACHE_GET_N(ret,n,buf) memcpy(ret,*buf,n); *buf += n; argument
1189 #define WSDL_CACHE_SKIP(n,buf) *buf += n; argument
1546 char *in, *buf; in get_sdl_from_cache() local
1566 efree(buf); in get_sdl_from_cache()
1574 efree(buf); in get_sdl_from_cache()
1582 efree(buf); in get_sdl_from_cache()
1781 efree(buf); in get_sdl_from_cache()
[all …]
/PHP-5.5/sapi/caudium/
H A Dcaudium.c398 INLINE static int php_caudium_low_read_post(char *buf, uint count_bytes) in php_caudium_low_read_post() argument
413 MEMCPY(buf, Pike_sp[-1].u.string->str, in php_caudium_low_read_post()
415 buf[total_read] = '\0'; in php_caudium_low_read_post()
423 php_caudium_sapi_read_post(char *buf, uint count_bytes TSRMLS_DC) in php_caudium_sapi_read_post() argument
426 THREAD_SAFE_RUN(total_read = php_caudium_low_read_post(buf, count_bytes), "read post"); in php_caudium_sapi_read_post()
/PHP-5.5/main/streams/
H A Dglob_wrapper.c140 static size_t php_glob_stream_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */ in php_glob_stream_read() argument
143 php_stream_dirent *ent = (php_stream_dirent*)buf; in php_glob_stream_read()
/PHP-5.5/ext/mbstring/
H A Dphp_mbregex.c161 char buf[32]; in PHP_MINFO_FUNCTION() local
164 snprintf(buf, sizeof(buf), "%d.%d.%d", in PHP_MINFO_FUNCTION()
175 php_info_print_table_row(2, "Multibyte regex (oniguruma) version", buf); in PHP_MINFO_FUNCTION()
1439 char buf[16]; in PHP_FUNCTION() local
1454 _php_mb_regex_get_option_string(buf, sizeof(buf), opt, syntax); in PHP_FUNCTION()
1456 RETVAL_STRING(buf, 1); in PHP_FUNCTION()
/PHP-5.5/
H A DREADME.STREAMS28 PHPAPI size_t php_stream_read(php_stream * stream, char * buf, size_t count);
29 PHPAPI size_t php_stream_write(php_stream * stream, const char * buf, size_t
35 PHPAPI char *php_stream_gets(php_stream * stream, char *buf, size_t maxlen);
118 PHPAPI size_t php_stream_copy_to_mem(php_stream *src, char **buf,
121 This function will set buf to the address of the buffer that it allocated,
338 static size_t php_mysqlop_read(php_stream * stream, char * buf, size_t count)
342 if (buf == NULL && count == 0) {
351 /* pull out some data from the stream and put it in buf */
354 and place that in the buf, but that brings in some complexities,

Completed in 107 milliseconds

12345678910>>...14