[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1115377: marked as done (php-net-url2: Compilation failed: digits missing after \x or in \x{} or \o{} or \N{U+} at offset 3 in /usr/share/php/Net/URL2.php on line 1200)



Your message dated Fri, 19 Sep 2025 18:33:57 +0200
with message-id <19962d318ef.1228a733f2209982.5587315297281333341@wdes.fr>
and subject line Fixed in php-net-url2 2.2.3
has caused the Debian Bug report #1115377,
regarding php-net-url2: Compilation failed: digits missing after \x or in \x{} or \o{} or \N{U+} at offset 3 in /usr/share/php/Net/URL2.php on line 1200
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1115377: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1115377
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: php-net-url2
Version: 2.2.1-0.2
Severity: important

Dear Maintainer,

First off, thank you for your work on the Debian version of the package!

The issue is, that after upgrading to Debian 13, a preg_replace_callback() error kicks in with the more strict regexp handling of PHP 8.4:

This regexp fails in /usr/share/php/Net/URL2.php in line 1201:

	([\x-\x20\x22\x3C\x3E\x7F-\xFF]+)

Produces a warning:

PHP Warning:  preg_replace_callback(): Compilation failed: digits missing after \x or in \x{} or \o{} or \N{U+} at offset 3 in /usr/share/php/Net/URL2.php on line 1200

But returns null for all string inputs, which breaks PHP applications, since with PHP8.2 it returned the input string untouched.
I bumped into this problem with Roundcube's calendar plugin working with a Radicale CalDAV server, which resulted missing remote calendars in the Roundcube webmail, after upgrading to Debian 13.
The correct regexp, which works as expected in PHP 8.4 too:

	([\x00-\x20\x22\x3C\x3E\x7F-\xFF]+)

The regexp changes of PHP 8.4 are documented here: https://php.watch/versions/8.4/pcre2-regexp-syntax-changes

The issue has already been corrected in version 2.2.3 of Net_URL2 on Pear.
Please update the Debian package to 2.2.3 or at least backport this particualar correction.

Until that, manually correcting this single line regexp in /usr/share/php/Net/URL2.php solves the problem.

In case you need any more information on this, I'd be glad to help!

Thank you in advance,
Andras Galos

-- System Information:
Debian Release: 13.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.43+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages php-net-url2 depends on:
ii  php-common  2:96

php-net-url2 recommends no packages.

php-net-url2 suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Control: notfound 1115377 php-net-url2/2.2.3-1

Thank you for reporting this bug !
Fixed in 2.2.3-1

--- End Message ---

Reply to: