Searched refs:alloc_size (Results 1 – 8 of 8) sorted by relevance
/PHP-7.1/ext/mysqlnd/ |
H A D | mysqlnd_driver.c | 191 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 D | mysqlnd_result_meta.c | 314 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 D | mysqlnd_result.c | 1925 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.1/Zend/ |
H A D | zend_portability.h | 194 #if ZEND_GCC_VERSION >= 4003 || __has_attribute(alloc_size) 195 # define ZEND_ATTRIBUTE_ALLOC_SIZE(X) __attribute__ ((alloc_size(X))) 196 # define ZEND_ATTRIBUTE_ALLOC_SIZE2(X,Y) __attribute__ ((alloc_size(X,Y)))
|
/PHP-7.1/main/ |
H A D | php_variables.c | 523 size_t alloc_size = sizeof(buf); in _php_import_environment_variables() local 532 if (nlen >= alloc_size) { in _php_import_environment_variables() 533 alloc_size = nlen + 64; in _php_import_environment_variables() 534 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in _php_import_environment_variables()
|
/PHP-7.1/sapi/litespeed/ |
H A D | lsapi_main.c | 243 size_t alloc_size = sizeof(buf); in litespeed_php_import_environment_variables() local 268 if (nlen >= alloc_size) { in litespeed_php_import_environment_variables() 269 alloc_size = nlen + 64; in litespeed_php_import_environment_variables() 270 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in litespeed_php_import_environment_variables()
|
/PHP-7.1/ext/sockets/ |
H A D | conversions.c | 118 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.1/sapi/cgi/ |
H A D | cgi_main.c | 1656 size_t alloc_size = sizeof(buf); local 1665 if (var_len >= alloc_size) { 1666 alloc_size = var_len + 64; 1667 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); 1679 if (var_len >= alloc_size) { 1680 alloc_size = var_len + 64; 1681 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
|
Completed in 42 milliseconds