[pkg-php-pear] Bug#1128518: php-slim: Slim\Http\Uri fails to handle non-string URI queries

Thomas Uhle thomas.uhle at mailbox.tu-dresden.de
Fri Feb 20 19:43:03 GMT 2026


Package: php-slim
Version: 3.12.5-1
Severity: important
Control: affects -1 + src:php-di-slim-bridge

Dear maintainers,

while building php-di-slim-bridge from source, PHPUnit reports the 
following when called with the option '--display-deprecation':

10 tests triggered 1 PHP deprecation:

1) /usr/share/php/Slim/Http/Uri.php:719
preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated

The reason is basically that parse_url() returns null instead of an 
empty string in Uri::createFromEnvironment() if the requested part of 
the URL does not exist.  This issue has already been fixed for Slim 4 
in slim/psr7.

I am going to provide a patch once I have received a ticket number.

Best regards,

Thomas Uhle



More information about the pkg-php-pear mailing list