Skip to content

Commit b5259ec

Browse files
authored
preg_match(): $flags of type int
PHP: Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in program/lib/Roundcube/rcube_result_thread.php preg_match( string $pattern, string $subject, array &$matches = null, int $flags = 0, int $offset = 0 ): int|false https://www.php.net/manual/de/function.preg-match.php
1 parent d6a6d04 commit b5259ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

program/lib/Roundcube/rcube_result_thread.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public function get_element($index)
368368
$regexp = '(' . $element . '|' . $item . ')';
369369

370370
if (isset($this->meta['pos'][$index])) {
371-
if (preg_match('/([0-9]+)/', $this->raw_data, $m, null, $this->meta['pos'][$index])) {
371+
if (preg_match('/([0-9]+)/', $this->raw_data, $m, 0, $this->meta['pos'][$index])) {
372372
$result = $m[1];
373373
}
374374
} elseif (isset($this->meta['pos'][$index - 1])) {

0 commit comments

Comments
 (0)