Skip to content

Commit 076464d

Browse files
committed
Get rid of redundant code
This isn't reachable since ab32d36
1 parent b3a4c76 commit 076464d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ext/pcre/php_pcre.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,6 @@ static zend_string **make_subpats_table(uint32_t name_cnt, pcre_cache_entry *pce
568568
if (persistent) {
569569
GC_MAKE_PERSISTENT_LOCAL(subpat_names[name_idx]);
570570
}
571-
if (is_numeric_string(ZSTR_VAL(subpat_names[name_idx]), ZSTR_LEN(subpat_names[name_idx]), NULL, NULL, 0) > 0) {
572-
php_error_docref(NULL, E_WARNING, "Numeric named subpatterns are not allowed");
573-
free_subpats_table(subpat_names, num_subpats, persistent);
574-
return NULL;
575-
}
576571
name_table += name_size;
577572
}
578573
return subpat_names;

0 commit comments

Comments
 (0)