01580: Two PHP warnings in pmwiki.php

Summary: Two PHP warnings in pmwiki.php
Created: 2026-11-29 16:41
Status: Open
Category: PHP Compatibility
Assigned:
Priority: 1
Version: 2.7.11
OS: 8.4.28

Description: The first warning:

Warning: preg_replace_callback(): Null byte in regex in /var/www/pmwiki/pmwiki.php on line 3116
Warning: preg_replace_callback(): Null byte in regex in /var/www/pmwiki/pmwiki.php on line 3117

This happens multiple times on my OpenWrt wiki when I set the variable $EnableMarkupDiag to 1.
Similar to PITS:01556, here you must either replace the double quotation marks with single quotation marks or escape the backslashes.

Another PHP deprecated warning appears on my homepage:
pmwiki.php: Passing null to parameter #2 ($string) of type string is deprecated on line 2783

I should also mention that this error message is displayed on my homepage via set_error_handler. You can also insert a ??'' into the corresponding line, and that should take care of the problem.
Michael Engelke