Bug #72632 [NEW]: preg_match_all doesnt include matches longer than 2753 chars

From: Date: Wed, 20 Jul 2016 17:34:51 +0000
Subject: Bug #72632 [NEW]: preg_match_all doesnt include matches longer than 2753 chars
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202446@lists.php.net to get a copy of this message
From:             marcel dot wiegand at pixelgenau dot com
Operating system: Debian 8.5
PHP version:      7.0.8
Package:          *Regular Expressions
Bug Type:         Bug
Bug description:preg_match_all doesnt include matches longer than 2753 chars

Description:
------------
I tried to run a TYPO3 website on PHP 7.0.8 and noticed
that a RegEx used in their template engine behaves differently
in all PHP 7.X versions. The preg_match_all using this specific RegEx
doesn't include a match if it's longer than 2753 characters long
(until PHP 7.0.6 it was a maximum of 1414 characters). In every other
PHP Version before 7.0.0 it is working correctly.

my configure line:

./configure \
--prefix=/opt/php-7.0.8 \
--with-config-file-scan-dir=/opt/php-7.0.8/etc/conf.d \
--with-zlib-dir \
--with-freetype-dir \
--enable-mbstring \
--with-libxml-dir=/usr \
--enable-soap \
--enable-calendar \
--with-curl \
--with-mcrypt \
--with-zlib \
--with-gd \
--with-bz2 \
--with-zlib \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-pcntl \
--enable-mbregex \
--with-mhash \
--enable-zip \
--with-pcre-regex \
--with-mysql \
--with-pdo-mysql \
--with-mysqli \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--enable-gd-native-ttf \
--with-openssl \
--with-fpm-user=www-data \
--with-fpm-group=www-data \
--with-libdir=/lib/x86_64-linux-gnu \
--with-gettext \
--with-readline \
--enable-fpm \
--enable-inline-optimization \
--with-fpm-systemd

I have used the shipped php.ini-production

Test script:
---------------
1415 characters match:
https://3v4l.org/IQaph

2754 characters match:
https://3v4l.org/m39jl


-- 
Edit bug report at https://bugs.php.net/bug.php?id=72632&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=72632&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=72632&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=72632&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=72632&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=72632&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=72632&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=72632&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=72632&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=72632&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=72632&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=72632&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=72632&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=72632&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72632&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=72632&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=72632&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=72632&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72632&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=72632&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=72632&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#202446) next »