Searched refs:alloc_size (Results 1 – 8 of 8) sorted by relevance
/PHP-5.6/ext/mysqlnd/ |
H A D | mysqlnd_driver.c | 198 size_t alloc_size = sizeof(MYSQLND_STMT) + mysqlnd_plugin_count() * sizeof(void *); in MYSQLND_METHOD() local 199 MYSQLND_STMT * ret = mnd_pecalloc(1, alloc_size, conn->persistent); in MYSQLND_METHOD() 291 size_t alloc_size = sizeof(MYSQLND_PROTOCOL) + mysqlnd_plugin_count() * sizeof(void *); in MYSQLND_METHOD() local 292 MYSQLND_PROTOCOL *ret = mnd_pecalloc(1, alloc_size, persistent); in MYSQLND_METHOD()
|
H A D | mysqlnd_result_meta.c | 403 size_t alloc_size = sizeof(MYSQLND_RES_METADATA) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_meta_init() local 404 MYSQLND_RES_METADATA *ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_meta_init()
|
H A D | mysqlnd_result.c | 1998 size_t alloc_size = sizeof(MYSQLND_RES) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_init() local 1999 MYSQLND_RES * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_init() 2020 size_t alloc_size = sizeof(MYSQLND_RES_UNBUFFERED) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_unbuffered_init() local 2021 MYSQLND_RES_UNBUFFERED * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_unbuffered_init() 2061 size_t alloc_size = sizeof(MYSQLND_RES_BUFFERED_ZVAL) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_buffered_zval_init() local 2062 MYSQLND_RES_BUFFERED_ZVAL * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_buffered_zval_init() 2104 size_t alloc_size = sizeof(MYSQLND_RES_BUFFERED_C) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_buffered_c_init() local 2105 MYSQLND_RES_BUFFERED_C * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_buffered_c_init()
|
/PHP-5.6/main/ |
H A D | php_variables.c | 511 size_t alloc_size = sizeof(buf); in _php_import_environment_variables() local 520 if (nlen >= alloc_size) { in _php_import_environment_variables() 521 alloc_size = nlen + 64; in _php_import_environment_variables() 522 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in _php_import_environment_variables()
|
/PHP-5.6/sapi/cgi/ |
H A D | cgi_main.c | 1597 size_t alloc_size = sizeof(buf); local 1606 if (var_len >= alloc_size) { 1607 alloc_size = var_len + 64; 1608 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); 1620 if (var_len >= alloc_size) { 1621 alloc_size = var_len + 64; 1622 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
|
/PHP-5.6/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-5.6/sapi/litespeed/ |
H A D | lsapi_main.c | 284 size_t alloc_size = sizeof(buf); in litespeed_php_import_environment_variables() local 333 if (nlen >= alloc_size) { in litespeed_php_import_environment_variables() 334 alloc_size = nlen + 64; in litespeed_php_import_environment_variables() 335 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in litespeed_php_import_environment_variables()
|
/PHP-5.6/Zend/ |
H A D | zend.h | 154 #if ZEND_GCC_VERSION >= 4003 || __has_attribute(alloc_size) 155 # define ZEND_ATTRIBUTE_ALLOC_SIZE(X) __attribute__ ((alloc_size(X))) 156 # define ZEND_ATTRIBUTE_ALLOC_SIZE2(X,Y) __attribute__ ((alloc_size(X,Y)))
|
Completed in 84 milliseconds