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

/PHP_5_5/ext/sockets/
H A Dconversions.c118 static inline void *accounted_emalloc(size_t alloc_size, ser_context *ctx) argument
120 void *ret = emalloc(alloc_size);
124 static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx) argument
126 void *ret = ecalloc(nmemb, alloc_size);
130 static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_context *ctx) argument
132 void *ret = safe_emalloc(nmemb, alloc_size, offset);
133 memset(ret, '\0', nmemb * alloc_size + offset);
/PHP_5_5/Zend/
H A Dzend.h154 #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)))
/PHP_5_5/ext/mysqlnd/
H A Dmysqlnd_driver.c198 size_t alloc_size = sizeof(MYSQLND_STMT) + mysqlnd_plugin_count() * sizeof(void *); local
199 MYSQLND_STMT * ret = mnd_pecalloc(1, alloc_size, conn->persistent);
291 size_t alloc_size = sizeof(MYSQLND_PROTOCOL) + mysqlnd_plugin_count() * sizeof(void *); local
292 MYSQLND_PROTOCOL *ret = mnd_pecalloc(1, alloc_size, persistent);
H A Dmysqlnd_result_meta.c391 size_t alloc_size = sizeof(MYSQLND_RES_METADATA) + mysqlnd_plugin_count() * sizeof(void *); variable
392 MYSQLND_RES_METADATA *ret = mnd_pecalloc(1, alloc_size, persistent);
H A Dmysqlnd_result.c1652 size_t alloc_size = sizeof(MYSQLND_RES) + mysqlnd_plugin_count() * sizeof(void *); variable
1653 MYSQLND_RES *ret = mnd_pecalloc(1, alloc_size, persistent);
/PHP_5_5/sapi/cgi/
H A Dcgi_main.c1591 size_t alloc_size = sizeof(buf); local
1600 if (var_len >= alloc_size) {
1601 alloc_size = var_len + 64;
1602 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
1614 if (var_len >= alloc_size) {
1615 alloc_size = var_len + 64;
1616 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
/PHP_5_5/main/
H A Dphp_variables.c422 size_t alloc_size = sizeof(buf); local
431 if (nlen >= alloc_size) {
432 alloc_size = nlen + 64;
433 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
/PHP_5_5/sapi/litespeed/
H A Dlsapi_main.c238 size_t alloc_size = sizeof(buf); local
269 if (nlen >= alloc_size) {
270 alloc_size = nlen + 64;
271 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));

Completed in 19 milliseconds