[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 20:00:51 GMT 2026
Control: tag -1 + patch
Dear maintainers,
please find attached the fixes that I have backported from slim/psr7.
Best regards,
Thomas Uhle
On Fri, 20 Feb 2026, Thomas Uhle wrote:
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slim-http-uri.diff.gz
Type: application/gzip
Size: 1049 bytes
Desc:
URL: <http://alioth-lists.debian.net/pipermail/pkg-php-pear/attachments/20260220/8f8a0c1f/attachment.gz>
More information about the pkg-php-pear
mailing list