Skip to content

Commit 445eb3f

Browse files
committed
Use APPLY_STOP in pcre_clean_cache()
Once num_clean has reached 0, we never remove any more elements anyway.
1 parent 025ed70 commit 445eb3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pcre/php_pcre.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ static int pcre_clean_cache(zval *data, void *arg)
525525
(*num_clean)--;
526526
return ZEND_HASH_APPLY_REMOVE;
527527
} else {
528-
return ZEND_HASH_APPLY_KEEP;
528+
return ZEND_HASH_APPLY_STOP;
529529
}
530530
}
531531
/* }}} */

0 commit comments

Comments
 (0)