From: Nikita Popov Date: Thu, 9 Jul 2015 18:40:07 +0000 (+0200) Subject: Fix posix_setrlimit segfault X-Git-Tag: php-7.1.1RC1~35^2~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=788c4c852d0b0523eb918039e4ac3247f5c8a6d0;p=php Fix posix_setrlimit segfault --- 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;