Home
last modified time | relevance | path

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

/PHP-7.0/ext/mysqlnd/
H A Dmysqlnd_driver.c195 size_t alloc_size = sizeof(MYSQLND_STMT) + mysqlnd_plugin_count() * sizeof(void *); in MYSQLND_METHOD() local
196 MYSQLND_STMT * ret = mnd_pecalloc(1, alloc_size, conn->persistent); in MYSQLND_METHOD()
288 size_t alloc_size = sizeof(MYSQLND_PROTOCOL) + mysqlnd_plugin_count() * sizeof(void *); in MYSQLND_METHOD() local
289 MYSQLND_PROTOCOL *ret = mnd_pecalloc(1, alloc_size, persistent); in MYSQLND_METHOD()
H A Dmysqlnd_result_meta.c356 size_t alloc_size = sizeof(MYSQLND_RES_METADATA) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_meta_init() local
357 MYSQLND_RES_METADATA *ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_meta_init()
H A Dmysqlnd_result.c1898 size_t alloc_size = sizeof(MYSQLND_RES) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_init() local
1899 MYSQLND_RES * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_init()
1920 size_t alloc_size = sizeof(MYSQLND_RES_UNBUFFERED) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_unbuffered_init() local
1921 MYSQLND_RES_UNBUFFERED * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_unbuffered_init()
1961 size_t alloc_size = sizeof(MYSQLND_RES_BUFFERED_ZVAL) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_buffered_zval_init() local
1962 MYSQLND_RES_BUFFERED_ZVAL * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_buffered_zval_init()
2004 size_t alloc_size = sizeof(MYSQLND_RES_BUFFERED_C) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_buffered_c_init() local
2005 MYSQLND_RES_BUFFERED_C * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_buffered_c_init()
/PHP-7.0/Zend/
H A Dzend_portability.h194 #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.0/main/
H A Dphp_variables.c503 size_t alloc_size = sizeof(buf); in _php_import_environment_variables() local
512 if (nlen >= alloc_size) { in _php_import_environment_variables()
513 alloc_size = nlen + 64; in _php_import_environment_variables()
514 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in _php_import_environment_variables()
/PHP-7.0/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.0/sapi/cgi/
H A Dcgi_main.c1572 size_t alloc_size = sizeof(buf); local
1581 if (var_len >= alloc_size) {
1582 alloc_size = var_len + 64;
1583 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
1595 if (var_len >= alloc_size) {
1596 alloc_size = var_len + 64;
1597 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
/PHP-7.0/sapi/litespeed/
H A Dlsapi_main.c240 size_t alloc_size = sizeof(buf); in litespeed_php_import_environment_variables() local
265 if (nlen >= alloc_size) { in litespeed_php_import_environment_variables()
266 alloc_size = nlen + 64; in litespeed_php_import_environment_variables()
267 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in litespeed_php_import_environment_variables()

Completed in 46 milliseconds