com php-src: Fix posix_setrlimit segfault: ext/posix/po six.c
| From: | Nikita Popov | Date: | Thu, 09 Jul 2015 18:40:07 +0000 |
| Subject: | com php-src: Fix posix_setrlimit segfault: ext/posix/po six.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87874@lists.php.net to get a copy of this message | ||
Commit: 788c4c852d0b0523eb918039e4ac3247f5c8a6d0
Author: Nikita Popov <nikic@php.net> Thu, 9 Jul 2015 20:40:07 +0200
Parents: cc876c04b420589cb1f62b650d0c0e24975dd4af
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=788c4c852d0b0523eb918039e4ac3247f5c8a6d0
Log:
Fix posix_setrlimit segfault
Changed paths:
M ext/posix/posix.c
Diff:
diff --git a/ext/posix/posix..c b/ext/posix/posix.c
index 6d34da7..547e93e 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;