Skip to content

Commit e034b4a

Browse files
author
Ilia Alshanetsky
committed
Removed dummy vars.
# Patch by Matt Wilmas
1 parent beeb5dd commit e034b4a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/pcre/php_pcre.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,7 @@ PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, int subjec
559559
}
560560
if (name_cnt > 0) {
561561
int rc1, rc2;
562-
long dummy_l;
563-
double dummy_d;
562+
564563
rc1 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMETABLE, &name_table);
565564
rc2 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMEENTRYSIZE, &name_size);
566565
rc = rc2 ? rc2 : rc1;
@@ -574,7 +573,7 @@ PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, int subjec
574573
while (ni++ < name_cnt) {
575574
name_idx = 0xff * name_table[0] + name_table[1];
576575
subpat_names[name_idx] = name_table + 2;
577-
if (is_numeric_string(subpat_names[name_idx], strlen(subpat_names[name_idx]), &dummy_l, &dummy_d, 0) > 0) {
576+
if (is_numeric_string(subpat_names[name_idx], strlen(subpat_names[name_idx]), NULL, NULL, 0) > 0) {
578577
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Numeric named subpatterns are not allowed");
579578
efree(offsets);
580579
efree(subpat_names);

0 commit comments

Comments
 (0)