summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-07-24 21:30:53 +0200
committerAnatol Belski <ab@php.net>2015-07-24 21:51:29 +0200
commit5334d53499b2d7f2a3281f5fbc6b0963ae61aaad (patch)
tree7a8b163c216b0faeb0c7781967299a5fde3e72d4 /sapi/phpdbg/phpdbg.c
parent05496c7312c4bdfc799dcd080ff00e07d3a58480 (diff)
downloadphp-git-5334d53499b2d7f2a3281f5fbc6b0963ae61aaad.tar.gz
avoid pointer truncation
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r--sapi/phpdbg/phpdbg.c2
1 files changed, 1 insertions, 1 deletions
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);