]> granicus.if.org Git - php/commitdiff
fix zpp
authorAnatol Belski <ab@php.net>
Thu, 21 Aug 2014 13:40:24 +0000 (15:40 +0200)
committerAnatol Belski <ab@php.net>
Thu, 21 Aug 2014 13:40:24 +0000 (15:40 +0200)
ext/ereg/ereg.c

index 280b54a43dde5e2b8c08bbc10a40038287b90604..3a4cbbbb85101fdd26cdb39a43c12309c7fa22e0 100644 (file)
@@ -630,14 +630,14 @@ PHP_FUNCTION(eregi_replace)
  */
 static void php_split(INTERNAL_FUNCTION_PARAMETERS, int icase)
 {
-       long count = -1;
+       php_int_t count = -1;
        regex_t re;
        regmatch_t subs[1];
        char *spliton, *str, *strp, *endp;
        int spliton_len, str_len;
        int err, size, copts = 0;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", &spliton, &spliton_len, &str, &str_len, &count) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|i", &spliton, &spliton_len, &str, &str_len, &count) == FAILURE) {
                return;
        }