com php-src: fix zpp: ext/mcrypt/mcrypt.c
| From: | Anatol Belski | Date: | Thu, 21 Aug 2014 18:13:55 +0000 |
| Subject: | com php-src: fix zpp: ext/mcrypt/mcrypt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-80691@lists.php.net to get a copy of this message | ||
Commit: 3cb5c6e6921242658783d8d9592027005300bbcb
Author: Anatol Belski <ab@php.net> Thu, 21 Aug 2014 20:13:55 +0200
Parents: 7de2259818cf73482aafc96a8df082d5657e74f1
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3cb5c6e6921242658783d8d9592027005300bbcb
Log:
fix zpp
Changed paths:
M ext/mcrypt/mcrypt.c
Diff:
diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c
index 44c5b4e..3ae0bb3 100644
--- a/ext/mcrypt/mcrypt.c
+++ b/ext/mcrypt/mcrypt.c
@@ -1400,11 +1400,11 @@ PHP_FUNCTION(mcrypt_ofb)
PHP_FUNCTION(mcrypt_create_iv)
{
char *iv;
- long source = URANDOM;
- long size;
+ php_int_t source = URANDOM;
+ php_int_t size;
int n = 0;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|l", &size, &source) ==
FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "i|i", &size, &source) ==
FAILURE) {
return;
}