Home
last modified time | relevance | path

Searched refs:buf (Results 226 – 250 of 337) sorted by path

12345678910>>...14

/PHP-5.5/ext/standard/
H A Dfile.h82 …m, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval *return_value…
H A Dfilestat.c199 struct statvfs buf;
201 struct statfs buf;
209 if (buf.f_frsize) {
210 bytestotal = (((double)buf.f_blocks) * ((double)buf.f_frsize));
212 bytestotal = (((double)buf.f_blocks) * ((double)buf.f_bsize));
220 bytestotal = (((double)buf.f_bsize) * ((double)buf.f_blocks));
333 struct statfs buf;
342 bytesfree = (((double)buf.f_bavail) * ((double)buf.f_frsize));
344 bytesfree = (((double)buf.f_bavail) * ((double)buf.f_bsize));
352 bytesfree = (((double)buf.f_bsize) * ((double)buf.f_bfree));
[all …]
H A Dfilters.c51 php_strtr(bucket->buf, bucket->buflen, rot13_from, rot13_to, 52); in strfilter_rot13_filter()
99 php_strtr(bucket->buf, bucket->buflen, lowercase, uppercase, 26); in strfilter_toupper_filter()
127 php_strtr(bucket->buf, bucket->buflen, uppercase, lowercase, 26); in strfilter_tolower_filter()
220 …bucket->buflen = php_strip_tags(bucket->buf, bucket->buflen, &(inst->state), (char *)inst->allowed… in strfilter_strip_tags_filter()
1760 buckets_out, bucket->buf, bucket->buflen, &consumed, in strfilter_convert_filter()
1955 static int php_dechunk(char *buf, int len, php_chunked_filter_data *data) in php_dechunk() argument
1957 char *p = buf; in php_dechunk()
1959 char *out = buf; in php_dechunk()
2089 bucket->buflen = php_dechunk(bucket->buf, bucket->buflen, data); in php_chunked_filter()
H A Dftp_fopen_wrapper.c609 php_stream_dirent *ent = (php_stream_dirent *)buf; in php_ftp_dirstream_read()
1062 char *p, *e, *buf; in php_stream_ftp_mkdir() local
1064 buf = estrdup(resource->path); in php_stream_ftp_mkdir()
1065 e = buf + strlen(buf); in php_stream_ftp_mkdir()
1068 while ((p = strrchr(buf, '/'))) { in php_stream_ftp_mkdir()
1070 php_stream_printf(stream TSRMLS_CC, "CWD %s\r\n", buf); in php_stream_ftp_mkdir()
1077 if (p == buf) { in php_stream_ftp_mkdir()
1081 php_stream_printf(stream TSRMLS_CC, "MKD %s\r\n", buf); in php_stream_ftp_mkdir()
1085 p = buf; in php_stream_ftp_mkdir()
1091 php_stream_printf(stream TSRMLS_CC, "MKD %s\r\n", buf); in php_stream_ftp_mkdir()
[all …]
H A Dhtml.c466 buf[0] = k; in php_utf32_utf8()
497 buf[0] = k; in php_mb2_int_to_char()
515 buf[0] = k; in php_mb3_int_to_char()
786 (*buf)++; in process_numeric_entity()
824 while ((**buf >= 'a' && **buf <= 'z') || in process_named_entity_html()
825 (**buf >= 'A' && **buf <= 'Z') || in process_named_entity_html()
826 (**buf >= '0' && **buf <= '9')) { in process_named_entity_html()
827 (*buf)++; in process_named_entity_html()
879 *buf = code; in write_octet_sequence()
895 *buf = code; in write_octet_sequence()
[all …]
H A Dimage.c207 char *b, *buf=NULL, *bufz=NULL; in php_handle_swc() local
234 buf = (char *) erealloc(buf,szlength); in php_handle_swc()
235 status = uncompress(buf, &szlength, bufz, slength); in php_handle_swc()
243 memcpy(b, buf, len); in php_handle_swc()
246 if (buf) { in php_handle_swc()
247 efree(buf); in php_handle_swc()
H A Dinfo.c80 char *buf; in php_info_printf() local
90 efree(buf); in php_info_printf()
819 struct utsname buf; in php_get_uname() local
828 buf.netware_major, buf.netware_minor, buf.netware_revision); in php_get_uname()
834 buf.libmajor, buf.libminor, buf.librevision, buf.libthreshold); in php_get_uname()
840 buf.sysname, buf.servername, in php_get_uname()
841 buf.netware_major, buf.netware_minor, buf.netware_revision, in php_get_uname()
842 buf.libmajor, buf.libminor, buf.librevision, buf.libthreshold, in php_get_uname()
843 buf.machine); in php_get_uname()
859 buf.sysname, buf.nodename, buf.release, buf.version, in php_get_uname()
[all …]
H A Dmath.c201 char buf[40]; in _php_math_round() local
202 snprintf(buf, 39, "%15fe%d", tmp_value, -places); in _php_math_round()
203 buf[39] = '\0'; in _php_math_round()
204 tmp_value = zend_strtod(buf, NULL); in _php_math_round()
906 char buf[(sizeof(unsigned long) << 3) + 1]; in _php_math_longtobase() local
916 end = ptr = buf + sizeof(buf) - 1; in _php_math_longtobase()
922 } while (ptr > buf && value); in _php_math_longtobase()
944 char buf[(sizeof(double) << 3) + 1]; in _php_math_zvaltobase() local
952 end = ptr = buf + sizeof(buf) - 1; in _php_math_zvaltobase()
958 } while (ptr > buf && fabs(fvalue) >= 1); in _php_math_zvaltobase()
H A Dmd5.c82 unsigned char buf[1024]; in PHP_NAMED_FUNCTION() local
99 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_NAMED_FUNCTION()
100 PHP_MD5Update(&context, buf, n); in PHP_NAMED_FUNCTION()
H A Dpack.c755 char *buf; in PHP_FUNCTION() local
767 buf = emalloc(len + 1); in PHP_FUNCTION()
778 buf[opos] = cc; in PHP_FUNCTION()
787 buf[len] = '\0'; in PHP_FUNCTION()
788 add_assoc_stringl(return_value, n, buf, len, 1); in PHP_FUNCTION()
789 efree(buf); in PHP_FUNCTION()
H A Dphp_fopen_wrapper.c34 static size_t php_stream_output_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) … in php_stream_output_write() argument
36 PHPWRITE(buf, count); in php_stream_output_write()
41 static size_t php_stream_output_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ … in php_stream_output_read() argument
66 static size_t php_stream_input_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) /… in php_stream_input_write() argument
72 static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */ in php_stream_input_read() argument
86 memcpy(buf, SG(request_info).raw_post_data + *position, read_bytes); in php_stream_input_read()
89 read_bytes = sapi_module.read_post(buf, count TSRMLS_CC); in php_stream_input_read()
H A Dphp_smart_str.h125 #define smart_str_print_unsigned4(buf, num, vartype, result) do { \ argument
126 char *__p = (buf); \
137 #define smart_str_print_long4(buf, num, vartype, result) do { \ argument
142 smart_str_print_unsigned4((buf), -(num), vartype, (result)); \
145 smart_str_print_unsigned4((buf), (num), vartype, (result)); \
156 static inline char *smart_str_print_long(char *buf, long num) { in smart_str_print_long() argument
158 smart_str_print_long4(buf, num, unsigned long, r); in smart_str_print_long()
162 static inline char *smart_str_print_unsigned(char *buf, long num) { in smart_str_print_unsigned() argument
164 smart_str_print_unsigned4(buf, num, unsigned long, r); in smart_str_print_unsigned()
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 Dscanf.c951 buf[0] = '\0'; in php_sscanf_internal()
954 width = sizeof(buf) - 1; in php_sscanf_internal()
958 for (end = buf; width > 0; width--) { in php_sscanf_internal()
1019 if ((flags & SCAN_XOK) && (end == buf+1)) { in php_sscanf_internal()
1063 value = (long) (*fn)(buf, NULL, base); in php_sscanf_internal()
1065 snprintf(buf, sizeof(buf), "%lu", value); /* INTL: ISO digit */ in php_sscanf_internal()
1072 ZVAL_STRING( *current, buf, 1 ); in php_sscanf_internal()
1094 buf[0] = '\0'; /* call me pedantic */ in php_sscanf_internal()
1096 width = sizeof(buf) - 1; in php_sscanf_internal()
1099 for (end = buf; width > 0; width--) { in php_sscanf_internal()
[all …]
H A Dsha1.c72 unsigned char buf[1024]; in PHP_FUNCTION() local
89 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_FUNCTION()
90 PHP_SHA1Update(&context, buf, n); in PHP_FUNCTION()
H A Dstreamsfuncs.c1322 char *buf; in PHP_FUNCTION() local
1340 if ((buf = php_stream_get_record(stream, max_length, &buf_size, str, str_len TSRMLS_CC))) { in PHP_FUNCTION()
1341 RETURN_STRINGL(buf, buf_size, 0); in PHP_FUNCTION()
H A Dstring.c4351 char *buf; local
4370 buf = estrndup(str, str_len);
4621 buf = estrndup(rbuf, len);
4622 c = *buf;
4624 p = buf;
4826 if (state==3 && p > buf+6
4871 efree(buf);
4969 unsigned char *buf; local
4987 chars[*buf]++;
4988 buf++;
[all …]
H A Durl_scanner_ex.c348 YYCURSOR = ctx->buf.c; in xx_mainloop()
349 YYLIMIT = ctx->buf.c + ctx->buf.len; in xx_mainloop()
905 ctx->buf.len = rest; in xx_mainloop()
911 smart_str buf = {0}; in php_url_scanner_adapt_single_url() local
922 smart_str_0(&buf); in php_url_scanner_adapt_single_url()
927 return buf.c; in php_url_scanner_adapt_single_url()
946 smart_str_appendl(&ctx->result, ctx->buf.c, ctx->buf.len); in url_adapt_ext()
947 *newlen += ctx->buf.len; in url_adapt_ext()
974 smart_str_free(&ctx->buf); in php_url_scanner_ex_deactivate()
994 if (ctx->buf.len) { in php_url_scanner_output_handler()
[all …]
H A Durl_scanner_ex.h41 smart_str buf; member
H A Durl_scanner_ex.re284 YYCURSOR = ctx->buf.c;
285 YYLIMIT = ctx->buf.c + ctx->buf.len;
357 ctx->buf.len = rest;
363 smart_str buf = {0};
374 smart_str_0(&buf);
379 return buf.c;
398 smart_str_appendl(&ctx->result, ctx->buf.c, ctx->buf.len);
399 *newlen += ctx->buf.len;
426 smart_str_free(&ctx->buf);
446 if (ctx->buf.len) {
[all …]
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 Dvar.c347 smart_str *buf; in php_array_element_export() local
384 smart_str *buf; in php_object_element_export() local
513 smart_str_0 (&buf); in php_var_export()
514 PHPWRITE(buf.c, buf.len); in php_var_export()
533 smart_str_0 (&buf); in PHP_FUNCTION()
536 RETVAL_STRINGL(buf.c, buf.len, 1); in PHP_FUNCTION()
538 PHPWRITE(buf.c, buf.len); in PHP_FUNCTION()
909 smart_str_0(buf); in php_var_serialize()
938 if (buf.c) { in PHP_FUNCTION()
939 RETURN_STRINGL(buf.c, buf.len, 0); in PHP_FUNCTION()
[all …]
H A Dversioning.c37 char *buf = safe_emalloc(len, 2, 1), *q, lp, lq; in php_canonicalize_version() local
41 *buf = '\0'; in php_canonicalize_version()
42 return buf; in php_canonicalize_version()
46 q = buf; in php_canonicalize_version()
78 return buf; in php_canonicalize_version()
/PHP-5.5/ext/standard/tests/file/
H A Dproc_open01.phpt44 $buf = fread($pipes[1], 1024);
45 $cnt .= $buf;
46 $left -= strlen($buf);
/PHP-5.5/ext/sybase_ct/
H A Dphp_sybase_ct.c1181 #define RETURN_DOUBLE_VAL(result, buf, length) \ argument
1184 Z_DVAL(result) = zend_strtod(buf, NULL); \
1188 ZVAL_STRINGL(&result, buf, length- 1, 1); \
1191 ZVAL_STRINGL(&result, buf, length- 1, 1); \
2121 char buf[32]; in PHP_MINFO_FUNCTION() local
2125 snprintf(buf, sizeof(buf), "%ld", SybCtG(num_persistent)); in PHP_MINFO_FUNCTION()
2127 snprintf(buf, sizeof(buf), "%ld", SybCtG(num_links)); in PHP_MINFO_FUNCTION()
2128 php_info_print_table_row(2, "Active Links", buf); in PHP_MINFO_FUNCTION()
2129 snprintf(buf, sizeof(buf), "%ld", SybCtG(min_server_severity)); in PHP_MINFO_FUNCTION()
2131 snprintf(buf, sizeof(buf), "%ld", SybCtG(min_client_severity)); in PHP_MINFO_FUNCTION()
[all …]

Completed in 95 milliseconds

12345678910>>...14