diff options
| author | Zeev Suraski <zeev@php.net> | 2000-02-08 22:21:43 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2000-02-08 22:21:43 +0000 |
| commit | 2460569ccbd98dbfbab31cdb7c793932f4625cc3 (patch) | |
| tree | 9c9a7e33b0b9d90ec9bf7c85a5ee569936dcebe6 /ext/pcre/pcrelib/pcreposix.c | |
| parent | ebddd16c75c076cfdd1843a795604d2896ef6442 (diff) | |
| download | php-git-2460569ccbd98dbfbab31cdb7c793932f4625cc3.tar.gz | |
Change string->str where possible; string is basic a C++ class, so gdb can't look
inside variables named 'string'.
Diffstat (limited to 'ext/pcre/pcrelib/pcreposix.c')
| -rw-r--r-- | ext/pcre/pcrelib/pcreposix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pcre/pcrelib/pcreposix.c b/ext/pcre/pcrelib/pcreposix.c index 9672be4fd6..3c56d63c68 100644 --- a/ext/pcre/pcrelib/pcreposix.c +++ b/ext/pcre/pcrelib/pcreposix.c @@ -212,7 +212,7 @@ return 0; *************************************************/ int -regexec(regex_t *preg, const char *string, size_t nmatch, +regexec(regex_t *preg, const char *str, size_t nmatch, regmatch_t pmatch[], int eflags) { int rc; @@ -223,7 +223,7 @@ if ((eflags & REG_NOTEOL) != 0) options |= PCRE_NOTEOL; preg->re_erroffset = (size_t)(-1); /* Only has meaning after compile */ -rc = pcre_exec(preg->re_pcre, NULL, string, (int)strlen(string), 0, options, +rc = pcre_exec(preg->re_pcre, NULL, str, (int)strlen(str), 0, options, (int *)pmatch, nmatch * 2); if (rc == 0) return 0; /* All pmatch were filled in */ |
