com php-src: fix zpp: ext/ereg/ereg.c
| From: | Anatol Belski | Date: | Thu, 21 Aug 2014 13:40:24 +0000 |
| Subject: | com php-src: fix zpp: ext/ereg/ereg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-80696@lists.php.net to get a copy of this message | ||
Commit: 0e546cecd687b85ee43ad77eb6b9471d42ae8c3b
Author: Anatol Belski <ab@php.net> Thu, 21 Aug 2014 15:40:24 +0200
Parents: fb8c41101d0e213494247783d7ce74f3809cb56e
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0e546cecd687b85ee43ad77eb6b9471d42ae8c3b
Log:
fix zpp
Changed paths:
M ext/ereg/ereg.c
Diff:
diff --git a/ext/ereg/ereg.c b/ext/ereg/ereg.c
index 280b54a..3a4cbbb 100644
--- a/ext/ereg/ereg.c
+++ b/ext/ereg/ereg.c
@@ -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;
}