Skip to content

Commit 241c98a

Browse files
committed
Error checks done and otherwise these functions return zero
1 parent 48d9086 commit 241c98a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/pcre/php_pcre.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ static PHP_GSHUTDOWN_FUNCTION(pcre) /* {{{ */
241241
static PHP_INI_MH(OnUpdateBacktrackLimit)
242242
{/*{{{*/
243243
OnUpdateLong(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage);
244-
/* TODO error check */
245244
if (mctx) {
246245
pcre2_set_match_limit(mctx, (uint32_t)PCRE_G(backtrack_limit));
247246
}
@@ -252,7 +251,6 @@ static PHP_INI_MH(OnUpdateBacktrackLimit)
252251
static PHP_INI_MH(OnUpdateRecursionLimit)
253252
{/*{{{*/
254253
OnUpdateLong(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage);
255-
/* TODO error check */
256254
if (mctx) {
257255
pcre2_set_depth_limit(mctx, (uint32_t)PCRE_G(recursion_limit));
258256
}

0 commit comments

Comments
 (0)