Lines Matching refs:ret

79 	void *ret;  in _mysqlnd_emalloc()  local
97 ret = _emalloc(REAL_SIZE(size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in _mysqlnd_emalloc()
101 ret = NULL; in _mysqlnd_emalloc()
105 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p", size, ret); in _mysqlnd_emalloc()
107 if (ret && collect_memory_statistics) { in _mysqlnd_emalloc()
108 *(size_t *) ret = size; in _mysqlnd_emalloc()
111 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_emalloc()
119 void *ret; in _mysqlnd_pemalloc() local
137ret = (persistent) ? __zend_malloc(REAL_SIZE(size)) : _emalloc(REAL_SIZE(size) ZEND_FILE_LINE_CC Z… in _mysqlnd_pemalloc()
141 ret = NULL; in _mysqlnd_pemalloc()
145 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p persistent=%u", size, ret, persistent); in _mysqlnd_pemalloc()
147 if (ret && collect_memory_statistics) { in _mysqlnd_pemalloc()
150 *(size_t *) ret = size; in _mysqlnd_pemalloc()
154 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_pemalloc()
162 void *ret; in _mysqlnd_ecalloc() local
181 ret = _ecalloc(nmemb, REAL_SIZE(size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in _mysqlnd_ecalloc()
185 ret = NULL; in _mysqlnd_ecalloc()
190 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p", size, ret); in _mysqlnd_ecalloc()
191 if (ret && collect_memory_statistics) { in _mysqlnd_ecalloc()
192 *(size_t *) ret = size; in _mysqlnd_ecalloc()
195 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_ecalloc()
203 void *ret; in _mysqlnd_pecalloc() local
220ret = (persistent) ? __zend_calloc(nmemb, REAL_SIZE(size)) : _ecalloc(nmemb, REAL_SIZE(size) ZEND_… in _mysqlnd_pecalloc()
224 ret = NULL; in _mysqlnd_pecalloc()
228 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p", size, ret); in _mysqlnd_pecalloc()
230 if (ret && collect_memory_statistics) { in _mysqlnd_pecalloc()
233 *(size_t *) ret = size; in _mysqlnd_pecalloc()
237 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_pecalloc()
245 void *ret; in _mysqlnd_erealloc() local
265ret = _erealloc(REAL_PTR(ptr), REAL_SIZE(new_size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_… in _mysqlnd_erealloc()
269 ret = NULL; in _mysqlnd_erealloc()
273 TRACE_ALLOC_INF_FMT("new_ptr=%p", (char*)ret); in _mysqlnd_erealloc()
274 if (ret && collect_memory_statistics) { in _mysqlnd_erealloc()
275 *(size_t *) ret = new_size; in _mysqlnd_erealloc()
278 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_erealloc()
286 void *ret; in _mysqlnd_perealloc() local
306 ret = perealloc(REAL_PTR(ptr), REAL_SIZE(new_size), persistent); in _mysqlnd_perealloc()
310 ret = NULL; in _mysqlnd_perealloc()
314 TRACE_ALLOC_INF_FMT("new_ptr=%p", (char*)ret); in _mysqlnd_perealloc()
316 if (ret && collect_memory_statistics) { in _mysqlnd_perealloc()
319 *(size_t *) ret = new_size; in _mysqlnd_perealloc()
322 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_perealloc()
393 void *ret; in _mysqlnd_malloc() local
411 ret = malloc(REAL_SIZE(size)); in _mysqlnd_malloc()
415 ret = NULL; in _mysqlnd_malloc()
419 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p", size, ret); in _mysqlnd_malloc()
420 if (ret && collect_memory_statistics) { in _mysqlnd_malloc()
421 *(size_t *) ret = size; in _mysqlnd_malloc()
424 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_malloc()
432 void *ret; in _mysqlnd_calloc() local
450 ret = calloc(nmemb, REAL_SIZE(size)); in _mysqlnd_calloc()
454 ret = NULL; in _mysqlnd_calloc()
458 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p", size, ret); in _mysqlnd_calloc()
459 if (ret && collect_memory_statistics) { in _mysqlnd_calloc()
460 *(size_t *) ret = size; in _mysqlnd_calloc()
463 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_calloc()
471 void *ret; in _mysqlnd_realloc() local
491 ret = realloc(REAL_PTR(ptr), REAL_SIZE(new_size)); in _mysqlnd_realloc()
495 ret = NULL; in _mysqlnd_realloc()
499 TRACE_ALLOC_INF_FMT("new_ptr=%p", (char*)ret); in _mysqlnd_realloc()
501 if (ret && collect_memory_statistics) { in _mysqlnd_realloc()
502 *(size_t *) ret = new_size; in _mysqlnd_realloc()
505 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_realloc()
548 char * ret; in _mysqlnd_pestrndup() local
560ret = (persistent) ? __zend_malloc(REAL_SIZE(length + 1)) : _emalloc(REAL_SIZE(length + 1) ZEND_FI… in _mysqlnd_pestrndup()
564 char * dest = (char *) FAKE_PTR(ret); in _mysqlnd_pestrndup()
572 *(size_t *) ret = length; in _mysqlnd_pestrndup()
576 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_pestrndup()
584 char * ret; in _mysqlnd_pestrdup() local
600ret = (persistent) ? __zend_malloc(tmp_str.len + sizeof(size_t)) : _emalloc(REAL_SIZE(tmp_str.len … in _mysqlnd_pestrdup()
601 memcpy(FAKE_PTR(ret), tmp_str.c, tmp_str.len); in _mysqlnd_pestrdup()
603 if (ret && collect_memory_statistics) { in _mysqlnd_pestrdup()
604 *(size_t *) ret = tmp_str.len; in _mysqlnd_pestrdup()
609 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_pestrdup()