From: Anatol Belski Date: Fri, 24 Jul 2015 19:30:53 +0000 (+0200) Subject: avoid pointer truncation X-Git-Tag: php-7.0.0beta3~5^2~97^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5334d53499b2d7f2a3281f5fbc6b0963ae61aaad;p=php avoid pointer truncation --- diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 0a84202509..5f65c9f068 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -1951,7 +1951,7 @@ phpdbg_out: /* hack to restore mm_heap->use_custom_heap in order to receive memory leak info */ if (use_mm_wrappers) { /* ASSUMING that mm_heap->use_custom_heap is the first element of the struct ... */ - *(int *) mm_heap = 0; + *(size_t *) mm_heap = 0; } zend_try { php_request_shutdown(NULL);