Bug #74873 [Opn->Csd]: Minor BC break: PCRE_JIT changes output of preg_match()

From: Date: Fri, 07 Jul 2017 06:54:51 +0000
Subject: Bug #74873 [Opn->Csd]: Minor BC break: PCRE_JIT changes output of preg_match()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209880@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74873&edit=1 ID: 74873 Updated by: dmitry@php.net Reported by: dmitry@php.net Summary: Minor BC break: PCRE_JIT changes output of preg_match() -Status: Open +Status: Closed Type: Bug Package: PCRE related Operating System: * PHP Version: 7.2.0alpha3 Block user comment: N Private report: N New Comment: Automatic comment on behalf of dmitry@zend.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=29653da385f89dcf00ebbb6823a395e1484d4dc3 Log: Fixed bug #74873 (Minor BC break: PCRE_JIT changes output of preg_match()). Previous Comments: ------------------------------------------------------------------------ [2017-07-07 06:44:06] dmitry@php.net Description: ------------ Large offsets cause preg_match() to return 0 instead of false Test script: --------------- <?php var_dump(preg_match('/\S+/', 'foo bar', $matches, 0, 99999)); Expected result: ---------------- bool(false) Actual result: -------------- int(0) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74873&edit=1

« previous php.bugs (#209880) next »