diff options
Diffstat (limited to 'ext/gd/gd_compat.c')
-rw-r--r-- | ext/gd/gd_compat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/gd/gd_compat.c b/ext/gd/gd_compat.c index dc6a95ae11..d6d8d0b2f9 100644 --- a/ext/gd/gd_compat.c +++ b/ext/gd/gd_compat.c @@ -48,14 +48,13 @@ const char * gdPngGetVersionString() int overflow2(int a, int b) { - TSRMLS_FETCH(); if(a <= 0 || b <= 0) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "gd warning: one parameter to a memory allocation multiplication is negative or zero, failing operation gracefully\n"); + php_error_docref(NULL, E_WARNING, "gd warning: one parameter to a memory allocation multiplication is negative or zero, failing operation gracefully\n"); return 1; } if(a > INT_MAX / b) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully\n"); + php_error_docref(NULL, E_WARNING, "gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully\n"); return 1; } return 0; |