/PHP-5.5/ext/standard/ |
H A D | pack.c | 755 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 D | php_fopen_wrapper.c | 34 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 D | php_smart_str.h | 125 #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 D | info.c | 80 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 D | math.c | 201 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 D | md5.c | 82 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 D | image.c | 207 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 D | filters.c | 51 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 D | ftp_fopen_wrapper.c | 609 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 D | html.c | 466 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 D | dns.c | 131 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 D | file.c | 1006 char *buf = NULL; in PHP_FUNCTION() local 1045 if (buf) { in PHP_FUNCTION() 1046 efree(buf); in PHP_FUNCTION() 1056 char buf[2]; in PHP_FUNCTION() local 1072 buf[1] = '\0'; in PHP_FUNCTION() 1112 efree(buf); in PHP_FUNCTION() 1163 efree(buf); in PHP_FUNCTION() 1959 char *buf; in PHP_FUNCTION() local 2038 efree(buf); in PHP_FUNCTION() 2061 bptr = buf; in php_fgetcsv() [all …]
|
H A D | file.h | 82 …m, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval *return_value…
|
H A D | dns_win32.c | 256 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 D | exec.c | 106 char *buf; in php_exec() local 135 b = buf; in php_exec() 141 bufl += b - buf; in php_exec() 143 buf = erealloc(buf, buflen); in php_exec() 144 b = buf + bufl; in php_exec() 150 bufl += b - buf; in php_exec() 164 buf[bufl] = '\0'; in php_exec() 168 b = buf; in php_exec() 177 buf[bufl] = '\0'; in php_exec() 191 PHPWRITE(buf, bufl); in php_exec() [all …]
|
H A D | filestat.c | 199 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 D | crypt_blowfish.c | 836 } buf; in php_crypt_blowfish_rn() local 850 memcpy(buf.s, test_setting, sizeof(buf.s)); in php_crypt_blowfish_rn() 855 buf.s[2] = setting[2]; in php_crypt_blowfish_rn() 857 memset(buf.o, 0x55, sizeof(buf.o)); in php_crypt_blowfish_rn() 858 buf.o[sizeof(buf.o) - 1] = 0; in php_crypt_blowfish_rn() 859 p = BF_crypt(test_key, buf.s, buf.o, sizeof(buf.o) - (1 + 1), 1); in php_crypt_blowfish_rn() 861 ok = (p == buf.o && in php_crypt_blowfish_rn() 862 !memcmp(p, buf.s, 7 + 22) && in php_crypt_blowfish_rn()
|
H A D | crypt_sha256.c | 706 char buf[1000]; in main() local 733 memset(buf, 'a', sizeof(buf)); in main() 736 sha256_process_bytes (buf, sizeof (buf), &ctx); in main()
|
H A D | crypt_sha512.c | 771 char buf[1000]; in main() local 800 memset (buf, 'a', sizeof (buf)); in main() 803 sha512_process_bytes (buf, sizeof (buf), &ctx); in main()
|
/PHP-5.5/ext/sqlite3/ |
H A D | sqlite3.c | 1084 static size_t php_sqlite3_stream_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument 1091 static size_t php_sqlite3_stream_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument 1100 if (sqlite3_blob_read(sqlite3_stream->blob, buf, count, sqlite3_stream->position) != SQLITE_OK) {
|
/PHP-5.5/ext/sqlite3/libsqlite/ |
H A D | sqlite3.c | 21834 bufpt = buf; 21972 buf[0] = c; 24150 u8 buf[10]; 24165 buf[0] &= 0x7f; 24168 p[i] = buf[j]; 26780 struct stat buf; 26797 struct stat buf; 29112 struct stat buf; 29166 err = osFallocate(pFile->h, buf.st_size, nSize-buf.st_size); 30892 struct stat buf; [all …]
|
/PHP-5.5/ext/spl/ |
H A D | spl_observer.c | 739 smart_str buf = {0}; in SPL_METHOD() local 748 smart_str_appendl(&buf, "x:", 2); in SPL_METHOD() 751 php_var_serialize(&buf, &flags, &var_hash TSRMLS_CC); in SPL_METHOD() 758 smart_str_free(&buf); in SPL_METHOD() 763 smart_str_appendc(&buf, ','); in SPL_METHOD() 765 smart_str_appendc(&buf, ';'); in SPL_METHOD() 770 smart_str_appendl(&buf, "m:", 2); in SPL_METHOD() 781 if (buf.c) { in SPL_METHOD() 782 RETURN_STRINGL(buf.c, buf.len, 0); in SPL_METHOD() 795 char *buf; in SPL_METHOD() local [all …]
|
H A D | spl_directory.c | 2056 char *buf; in spl_filesystem_file_read() local 2072 efree(buf); in spl_filesystem_file_read() 2073 buf = NULL; in spl_filesystem_file_read() 2075 buf[line_len] = '\0'; in spl_filesystem_file_read() 2081 if (!buf) { in spl_filesystem_file_read() 2086 line_len = strcspn(buf, "\r\n"); in spl_filesystem_file_read() 2087 buf[line_len] = '\0'; in spl_filesystem_file_read() 2775 char buf[2]; in SPL_METHOD() local 2788 buf[0] = result; in SPL_METHOD() 2789 buf[1] = '\0'; in SPL_METHOD() [all …]
|
H A D | spl_dllist.c | 1142 smart_str buf = {0}; in SPL_METHOD() local 1156 php_var_serialize(&buf, &flags, &var_hash TSRMLS_CC); in SPL_METHOD() 1161 smart_str_appendc(&buf, ':'); in SPL_METHOD() 1164 php_var_serialize(&buf, (zval **)¤t->data, &var_hash TSRMLS_CC); in SPL_METHOD() 1169 smart_str_0(&buf); in SPL_METHOD() 1174 if (buf.c) { in SPL_METHOD() 1175 RETURN_STRINGL(buf.c, buf.len, 0); in SPL_METHOD() 1188 char *buf; in SPL_METHOD() local 1193 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD() 1202 s = p = (const unsigned char*)buf; in SPL_METHOD() [all …]
|
/PHP-5.5/ext/spl/internal/ |
H A D | splfileobject.inc | 67 $buf = fgets($this->fp, $this->max_len); 69 return $buf;
|