Home
last modified time | relevance | path

Searched refs:buf (Results 176 – 200 of 355) sorted by relevance

12345678910>>...15

/php-src/ext/pdo_pgsql/
H A Dpgsql_driver.c138 return lo_read(self->conn, self->lfd, buf, count); in pgsql_lob_read()
409 void pdo_libpq_version(char *buf, size_t len) in pdo_libpq_version() argument
415 snprintf(buf, len, "%d.%d", major, minor); in pdo_libpq_version()
437 char buf[16]; in pdo_pgsql_get_attribute() local
438 pdo_libpq_version(buf, sizeof(buf)); in pdo_pgsql_get_attribute()
439 ZVAL_STRING(return_value, buf); in pdo_pgsql_get_attribute()
762 char *buf; in pgsqlCopyFromFile_internal() local
768 if (PQputCopyData(H->server, buf, line_len) != 1) { in pgsqlCopyFromFile_internal()
769 efree(buf); in pgsqlCopyFromFile_internal()
775 efree(buf); in pgsqlCopyFromFile_internal()
[all …]
/php-src/ext/standard/
H A Dfile.c889 char *buf = NULL; in PHP_FUNCTION() local
905 if (buf == NULL) { in PHP_FUNCTION()
910 efree(buf); in PHP_FUNCTION()
963 char *buf, *format; in PHP_FUNCTION() local
983 if (buf == NULL) { in PHP_FUNCTION()
989 efree(buf); in PHP_FUNCTION()
1834 char *buf; in PHP_FUNCTION() local
1907 efree(buf); in PHP_FUNCTION()
1945 bptr = buf; in php_fgetcsv()
2047 efree(buf); in php_fgetcsv()
[all …]
H A Dmath.c230 char buf[40]; in _php_math_round() local
231 snprintf(buf, 39, "%15fe%d", tmp_value, -places); in _php_math_round()
232 buf[39] = '\0'; in _php_math_round()
233 tmp_value = zend_strtod(buf, NULL); in _php_math_round()
844 char buf[(sizeof(zend_ulong) << 3) + 1]; in _php_math_longtobase() local
854 end = ptr = buf + sizeof(buf) - 1; in _php_math_longtobase()
858 ZEND_ASSERT(ptr > buf); in _php_math_longtobase()
918 char buf[(sizeof(double) << 3) + 1]; in _php_math_zvaltobase() local
926 end = ptr = buf + sizeof(buf) - 1; in _php_math_zvaltobase()
932 } while (ptr > buf && fabs(fvalue) >= 1); in _php_math_zvaltobase()
H A Dftp_fopen_wrapper.c605 static ssize_t php_ftp_dirstream_read(php_stream *stream, char *buf, size_t count) in php_ftp_dirstream_read() argument
607 php_stream_dirent *ent = (php_stream_dirent *)buf; in php_ftp_dirstream_read()
1049 char *p, *e, *buf; in php_stream_ftp_mkdir() local
1051 buf = estrndup(ZSTR_VAL(resource->path), ZSTR_LEN(resource->path)); in php_stream_ftp_mkdir()
1052 e = buf + ZSTR_LEN(resource->path); in php_stream_ftp_mkdir()
1055 while ((p = strrchr(buf, '/'))) { in php_stream_ftp_mkdir()
1057 php_stream_printf(stream, "CWD %s\r\n", strlen(buf) ? buf : "/"); in php_stream_ftp_mkdir()
1065 php_stream_printf(stream, "MKD %s\r\n", strlen(buf) ? buf : "/"); in php_stream_ftp_mkdir()
1070 p = buf; in php_stream_ftp_mkdir()
1076 php_stream_printf(stream, "MKD %s\r\n", buf); in php_stream_ftp_mkdir()
[all …]
H A Dpack.c898 char buf[MAX_LENGTH_OF_LONG + 1]; in PHP_FUNCTION() local
899 char *res = zend_print_ulong_to_buf(buf + sizeof(buf) - 1, i+1); in PHP_FUNCTION()
900 size_t digits = buf + sizeof(buf) - 1 - res; in PHP_FUNCTION()
979 zend_string *buf; in PHP_FUNCTION() local
991 buf = zend_string_alloc(len, 0); in PHP_FUNCTION()
1002 ZSTR_VAL(buf)[opos] = cc; in PHP_FUNCTION() local
1011 ZSTR_VAL(buf)[len] = '\0'; in PHP_FUNCTION() local
1013 ZVAL_STR(&val, buf); in PHP_FUNCTION()
/php-src/sapi/fuzzer/
H A Dfuzzer-sapi.c263 file_handle.buf = emalloc(data_len + ZEND_MMAP_AHEAD); in fuzzer_do_request_from_buffer()
264 memcpy(file_handle.buf, data, data_len); in fuzzer_do_request_from_buffer()
265 memset(file_handle.buf + data_len, 0, ZEND_MMAP_AHEAD); in fuzzer_do_request_from_buffer()
/php-src/Zend/
H A Dzend_smart_str.c117 char buf[ZEND_DOUBLE_MAX_LENGTH]; in smart_str_append_double() local
119 zend_gcvt(num, precision ? precision : 1, '.', 'E', buf); in smart_str_append_double()
120 smart_str_appends(str, buf); in smart_str_append_double()
121 if (zero_fraction && zend_finite(num) && !strchr(buf, '.')) { in smart_str_append_double()
/php-src/ext/sysvsem/
H A Dsysvsem.c38 struct semid_ds *buf; /* buffer for IPC_STAT, IPC_SET */ member
337 struct semid_ds buf; in PHP_FUNCTION() local
345 un.buf = &buf; in PHP_FUNCTION()
/php-src/ext/opcache/jit/ir/dynasm/
H A Ddasm_mips.h57 int *buf; /* True buffer pointer. */ member
108 if (D->sections[i].buf) in dasm_free()
109 DASM_M_FREE(Dst, D->sections[i].buf, D->sections[i].bsize); in dasm_free()
144 D->sections[i].rbuf = D->sections[i].buf - D->sections[i].pos; in dasm_setup()
173 DASM_M_GROW(Dst, int, sec->buf, sec->bsize, in dasm_put()
175 sec->rbuf = sec->buf - DASM_POS2BIAS(pos); in dasm_put()
328 int *b = sec->buf; in dasm_encode()
H A Ddasm_ppc.h57 int *buf; /* True buffer pointer. */ member
108 if (D->sections[i].buf) in dasm_free()
109 DASM_M_FREE(Dst, D->sections[i].buf, D->sections[i].bsize); in dasm_free()
144 D->sections[i].rbuf = D->sections[i].buf - D->sections[i].pos; in dasm_setup()
173 DASM_M_GROW(Dst, int, sec->buf, sec->bsize, in dasm_put()
175 sec->rbuf = sec->buf - DASM_POS2BIAS(pos); in dasm_put()
332 int *b = sec->buf; in dasm_encode()
H A Ddasm_arm.h58 int *buf; /* True buffer pointer. */ member
109 if (D->sections[i].buf) in dasm_free()
110 DASM_M_FREE(Dst, D->sections[i].buf, D->sections[i].bsize); in dasm_free()
145 D->sections[i].rbuf = D->sections[i].buf - D->sections[i].pos; in dasm_setup()
182 DASM_M_GROW(Dst, int, sec->buf, sec->bsize, in dasm_put()
184 sec->rbuf = sec->buf - DASM_POS2BIAS(pos); in dasm_put()
350 int *b = sec->buf; in dasm_encode()
/php-src/ext/random/
H A Drandom.c640 char buf[64 + 1]; local
667 memset(buf, 0, sizeof(buf));
668 if (gethostname(buf, sizeof(buf) - 1) == 0) {
669 fallback_seed_add(&c, buf, strlen(buf));
672 if (php_random_bytes_silent(buf, 16) == SUCCESS) {
673 fallback_seed_add(&c, buf, 16);
/php-src/main/
H A Dfopen_wrappers.c95 smart_str buf = {0}; in ZEND_INI_MH() local
106 smart_str_free(&buf); in ZEND_INI_MH()
112 smart_str_free(&buf); in ZEND_INI_MH()
115 if (smart_str_get_len(&buf) != 0) { in ZEND_INI_MH()
116 smart_str_appendc(&buf, DEFAULT_DIR_SEPARATOR); in ZEND_INI_MH()
118 smart_str_appends(&buf, resolved_name); in ZEND_INI_MH()
124 zend_string *tmp = smart_str_extract(&buf); in ZEND_INI_MH()
178 char buf[MAXPATHLEN]; local
180 ret = php_sys_readlink(path_tmp, buf, MAXPATHLEN - 1);
185 memcpy(path_tmp, buf, ret);
/php-src/ext/hash/
H A Dphp_hash_joaat.h29 static uint32_t joaat_buf(void *buf, size_t len, uint32_t hval);
/php-src/ext/sockets/
H A Dsockets.c287 char *t = (char *) buf;
347 const char *buf; local
354 buf = hstrerror(error);
366 buf = strerror(error);
371 buf = NULL;
386 return (buf ? (char *) buf : "");
1282 zval *php_sock_res, *buf; local
1327 char *buf; local
1482 char *buf, *addr; local
2598 if (!buf[0]) {
[all …]
/php-src/sapi/fpm/fpm/
H A Dfpm_conf.c190 char *buf; in fpm_conf_expand_pool_name() local
207 efree(buf); in fpm_conf_expand_pool_name()
1127 char *buf; in fpm_conf_process_all_pools() local
1133 efree(buf); in fpm_conf_process_all_pools()
1137 efree(buf); in fpm_conf_process_all_pools()
1254 char buf[64]; in fpm_conf_write_pid() local
1674 free(buf); in fpm_conf_load_ini_file()
1680 buf[n] = c; in fpm_conf_load_ini_file()
1697 free(buf); in fpm_conf_load_ini_file()
1709 free(buf); in fpm_conf_load_ini_file()
[all …]
/php-src/ext/odbc/
H A Dphp_odbc.c589 char buf[32]; in PHP_MINFO_FUNCTION() local
593 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_persistent)); in PHP_MINFO_FUNCTION()
595 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_links)); in PHP_MINFO_FUNCTION()
599 snprintf(buf, sizeof(buf), "0x%.4x", ODBCVER); in PHP_MINFO_FUNCTION()
1473 efree(buf); in php_odbc_fetch_hash()
1516 if (buf) { in php_odbc_fetch_hash()
1517 efree(buf); in php_odbc_fetch_hash()
1635 efree(buf); in PHP_FUNCTION()
1668 if (buf) efree(buf); in PHP_FUNCTION()
2035 efree(buf); in PHP_FUNCTION()
[all …]
/php-src/sapi/phpdbg/
H A Dphpdbg_list.h43 char *buf; member
/php-src/ext/intl/transliterator/
H A Dtransliterator_methods.c65 char *buf = NULL; in create_transliterator() local
67 spprintf( &buf, 0, "transliterator_create: unable to open ICU transliterator" in create_transliterator()
69 if( buf == NULL ) { in create_transliterator()
75 intl_error_set_custom_msg( NULL, buf, /* copy message */ 1 ); in create_transliterator()
76 efree( buf ); in create_transliterator()
/php-src/ext/mysqli/
H A Dmysqli.c588 char buf[32]; in PHP_MINFO_FUNCTION() local
593 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MyG(num_active_persistent)); in PHP_MINFO_FUNCTION()
594 php_info_print_table_row(2, "Active Persistent Links", buf); in PHP_MINFO_FUNCTION()
595 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MyG(num_inactive_persistent)); in PHP_MINFO_FUNCTION()
596 php_info_print_table_row(2, "Inactive Persistent Links", buf); in PHP_MINFO_FUNCTION()
597 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MyG(num_links)); in PHP_MINFO_FUNCTION()
598 php_info_print_table_row(2, "Active Links", buf); in PHP_MINFO_FUNCTION()
/php-src/sapi/litespeed/
H A Dlsapilib.c98 uint32 buf[4]; member
244 char buf[1024]; in LSAPI_Log() local
245 char *p = buf; in LSAPI_Log()
277 if (p > buf) in LSAPI_Log()
278 fprintf(stderr, "%.*s", (int)(p - buf), buf); in LSAPI_Log()
4133 t = (uint32) ((unsigned) buf[3] << 8 | buf[2]) << 16 | in byteReverse()
4134 ((unsigned) buf[1] << 8 | buf[0]); in byteReverse()
4272 a = buf[0]; in lsapi_MD5Transform()
4273 b = buf[1]; in lsapi_MD5Transform()
4274 c = buf[2]; in lsapi_MD5Transform()
[all …]
/php-src/ext/opcache/
H A Dzend_accelerator_util_funcs.h43 unsigned int zend_adler32(unsigned int checksum, unsigned char *buf, uint32_t len);
/php-src/ext/opcache/jit/ir/
H A Dir_gdb.c587 char buf[1024]; in ir_gdb_present() local
588 ssize_t n = read(fd, buf, sizeof(buf) - 1); in ir_gdb_present()
593 buf[n] = 0; in ir_gdb_present()
594 s = strstr(buf, "TracerPid:"); in ir_gdb_present()
603 snprintf(buf, sizeof(buf), "/proc/%d/exe", (int)pid); in ir_gdb_present()
604 if (readlink(buf, out, sizeof(out) - 1) > 0) { in ir_gdb_present()
/php-src/ext/dom/
H A Ddocument.c1577 xmlBufferPtr buf; in dom_document_save_xml() local
1602 if (!buf) { in dom_document_save_xml()
1628 if (!buf) { in dom_document_save_xml()
1647 xmlBufferFree(buf); in dom_document_save_xml()
1667 xmlBufferFree(buf); in dom_document_save_xml()
1673 xmlBufferFree(buf); in dom_document_save_xml()
1678 xmlBufferFree(buf); in dom_document_save_xml()
2144 xmlBufferPtr buf; in PHP_METHOD() local
2169 if (!buf) { in PHP_METHOD()
2175 xmlBufferFree(buf); in PHP_METHOD()
[all …]
/php-src/ext/spl/
H A Dspl_observer.c770 smart_str buf = {0}; in PHP_METHOD() local
779 smart_str_appendl(&buf, "x:", 2); in PHP_METHOD()
781 php_var_serialize(&buf, &flags, &var_hash); in PHP_METHOD()
788 smart_str_free(&buf); in PHP_METHOD()
793 php_var_serialize(&buf, &obj, &var_hash); in PHP_METHOD()
794 smart_str_appendc(&buf, ','); in PHP_METHOD()
796 smart_str_appendc(&buf, ';'); in PHP_METHOD()
801 smart_str_appendl(&buf, "m:", 2); in PHP_METHOD()
810 RETURN_STR(smart_str_extract(&buf)); in PHP_METHOD()
818 char *buf; in PHP_METHOD() local
[all …]

Completed in 121 milliseconds

12345678910>>...15