From 788c4c852d0b0523eb918039e4ac3247f5c8a6d0 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 9 Jul 2015 20:40:07 +0200 Subject: Fix posix_setrlimit segfault --- ext/posix/posix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 6d34da7609..547e93e58e 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -1389,8 +1389,7 @@ PHP_FUNCTION(posix_getrlimit) PHP_FUNCTION(posix_setrlimit) { struct rlimit rl; - zend_long cur, max; - int res; + zend_long res, cur, max; if (zend_parse_parameters(ZEND_NUM_ARGS(), "lll", &res, &cur, &max) == FAILURE) { RETURN_FALSE; -- cgit v1.2.1