Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 8 of 8) sorted by relevance

/PHP-7.2/ext/mysqlnd/
H A Dmysqlnd_driver.c191 size_t alloc_size = sizeof(MYSQLND_STMT) + mysqlnd_plugin_count() * sizeof(void *); in MYSQLND_METHOD() local
192 MYSQLND_STMT * ret = mnd_pecalloc(1, alloc_size, conn->persistent); in MYSQLND_METHOD()
320 …size_t alloc_size = sizeof(MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY) + mysqlnd_plugin_count() * si… in MYSQLND_METHOD() local
321 MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY *ret = mnd_pecalloc(1, alloc_size, persistent); in MYSQLND_METHOD()
H A Dmysqlnd_result_meta.c314 size_t alloc_size = sizeof(MYSQLND_RES_METADATA) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_meta_init() local
315 MYSQLND_RES_METADATA *ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_meta_init()
H A Dmysqlnd_result.c1925 const size_t alloc_size = sizeof(MYSQLND_RES) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_init() local
1926 MYSQLND_RES * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_init()
1947 const size_t alloc_size = sizeof(MYSQLND_RES_UNBUFFERED) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_unbuffered_init() local
1948 MYSQLND_RES_UNBUFFERED * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_unbuffered_init()
1987 …const size_t alloc_size = sizeof(MYSQLND_RES_BUFFERED_ZVAL) + mysqlnd_plugin_count() * sizeof(void… in mysqlnd_result_buffered_zval_init() local
1988 MYSQLND_RES_BUFFERED_ZVAL * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_buffered_zval_init()
2034 const size_t alloc_size = sizeof(MYSQLND_RES_BUFFERED_C) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_buffered_c_init() local
2035 MYSQLND_RES_BUFFERED_C * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_buffered_c_init()
/PHP-7.2/Zend/
H A Dzend_portability.h192 #if ZEND_GCC_VERSION >= 4003 || __has_attribute(alloc_size)
193 # define ZEND_ATTRIBUTE_ALLOC_SIZE(X) __attribute__ ((alloc_size(X)))
194 # define ZEND_ATTRIBUTE_ALLOC_SIZE2(X,Y) __attribute__ ((alloc_size(X,Y)))
/PHP-7.2/main/
H A Dphp_variables.c531 size_t alloc_size = sizeof(buf); in _php_import_environment_variables() local
540 if (nlen >= alloc_size) { in _php_import_environment_variables()
541 alloc_size = nlen + 64; in _php_import_environment_variables()
542 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in _php_import_environment_variables()
/PHP-7.2/ext/sockets/
H A Dconversions.c118 static inline void *accounted_emalloc(size_t alloc_size, ser_context *ctx) in accounted_emalloc() argument
120 void *ret = emalloc(alloc_size); in accounted_emalloc()
124 static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx) in accounted_ecalloc() argument
126 void *ret = ecalloc(nmemb, alloc_size); in accounted_ecalloc()
130 static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_cont… in accounted_safe_ecalloc() argument
132 void *ret = safe_emalloc(nmemb, alloc_size, offset); in accounted_safe_ecalloc()
133 memset(ret, '\0', nmemb * alloc_size + offset); in accounted_safe_ecalloc()
/PHP-7.2/sapi/cgi/
H A Dcgi_main.c1660 size_t alloc_size = sizeof(buf); local
1669 if (var_len >= alloc_size) {
1670 alloc_size = var_len + 64;
1671 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
1683 if (var_len >= alloc_size) {
1684 alloc_size = var_len + 64;
1685 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
/PHP-7.2/sapi/litespeed/
H A Dlsapi_main.c244 size_t alloc_size = sizeof(buf); in litespeed_php_import_environment_variables() local
269 if (nlen >= alloc_size) { in litespeed_php_import_environment_variables()
270 alloc_size = nlen + 64; in litespeed_php_import_environment_variables()
271 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in litespeed_php_import_environment_variables()

Completed in 40 milliseconds