com php-src: fixes to ereg: ext/ereg/ereg.c
| From: | Anatol Belski | Date: | Wed, 16 Oct 2013 10:10:51 +0000 |
| Subject: | com php-src: fixes to ereg: ext/ereg/ereg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73469@lists.php.net to get a copy of this message | ||
Commit: 3b55e6024531037bd171d96e37104d5c78a0bcdf
Author: Anatol Belski <ab@php.net> Fri, 23 Aug 2013 01:14:02 -0700
Parents: 4f6e709a6794aa7b74e9c2149ee862bcef4daa0e
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3b55e6024531037bd171d96e37104d5c78a0bcdf
Log:
fixes to ereg
Changed paths:
M ext/ereg/ereg.c
Diff:
diff --git a/ext/ereg/ereg.c b/ext/ereg/ereg.c
index d958d0c..fabb41c 100644
--- a/ext/ereg/ereg.c
+++ b/ext/ereg/ereg.c
@@ -628,14 +628,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;
zend_str_size_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;
}