Debian Bug report logs -
#481513
php5: preg_match dont find a match on a bit larger string
Reported by: Bernd Hanisch <bh@cocon.net>
Date: Fri, 16 May 2008 16:38:54 UTC
Severity: normal
Found in version 5.2.0-8+etch11
Done: Ondřej Surý <ondrej@sury.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#481513; Package php5.
(full text, mbox, link).
Acknowledgement sent to Bernd Hanisch <bh@cocon.net>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: php5
Version: 5.2.0-8+etch11
Severity: normal
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-amd64
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
after updating from php4 to php5 i run in problems with a few php scripts using preg_match.
preg_match( "/<head>.*<\/head>/is", $content, $matches );
nothing special in $content. only <head> {a few chars} </head> { a lot of chars }. This only occur, if the string is larger.
I dont found the exact limit, my test file is around 126kb large. i will upload the testscript and the testfile later.
i simplified the testfile. so only the matchstrings and spaces are in.
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#481513; Package php5.
(full text, mbox, link).
Acknowledgement sent to Bernd Hanisch <bh@cocon.net>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #10 received at 481513@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
[Message part 2 (text/html, inline)]
[phpbug.dat.gz (application/x-gzip, attachment)]
[phpbug.php (application/x-php, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#481513; Package php5.
(Mon, 22 Jun 2009 14:27:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Bernd Hanisch <bh@cocon.net>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Mon, 22 Jun 2009 14:27:02 GMT) (full text, mbox, link).
Message #15 received at 481513@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi,
after run in the problem a second time and some google searches i found
the solution.
add
pcre.recursion_limit=1000000
pcre.backtrack_limit=1000000
to my php.ini fix the bug (strings smaller 1mb)
Greetings Bernd
[Message part 2 (text/html, inline)]
Reply sent
to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility.
(Fri, 08 Jan 2010 16:33:05 GMT) (full text, mbox, link).
Notification sent
to Bernd Hanisch <bh@cocon.net>:
Bug acknowledged by developer.
(Fri, 08 Jan 2010 16:33:06 GMT) (full text, mbox, link).
Message #20 received at 481513-done@bugs.debian.org (full text, mbox, reply):
Not really a bug, but a user settings.
--
Ondřej Surý <ondrej@sury.org>
http://blog.rfc1925.org/
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 06 Feb 2010 07:28:15 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 03:08:47 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.