]> granicus.if.org Git - php/commitdiff
Fixed Closure::apply() for int64
authorAndrea Faulds <ajf@ajf.me>
Wed, 27 Aug 2014 01:05:50 +0000 (02:05 +0100)
committerAndrea Faulds <ajf@ajf.me>
Wed, 27 Aug 2014 01:05:50 +0000 (02:05 +0100)
Zend/zend_closures.c

index c0df245c1798afdae46d9b82a8cbd462bcd77bc6..946085f92f86819a98d114bfbc957e1976e91a2d 100644 (file)
@@ -28,6 +28,7 @@
 #include "zend_objects.h"
 #include "zend_objects_API.h"
 #include "zend_globals.h"
+#include "php_stdint.h"
 
 #define ZEND_CLOSURE_PRINT_NAME "Closure object"
 
@@ -75,7 +76,7 @@ ZEND_METHOD(Closure, call) /* {{{ */
        zend_fcall_info fci;
        zend_fcall_info_cache fci_cache;
        zval *my_params;
-       zend_uint my_param_count = 0;
+       uint32_t my_param_count = 0;
        zend_function my_function;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "o*", &newthis, &my_params, &my_param_count) == FAILURE) {