Bug #78122 [Opn->Nab]: preg_split returns false since PHP 7.3.5 instead of array

From: Date: Thu, 06 Jun 2019 15:29:23 +0000
Subject: Bug #78122 [Opn->Nab]: preg_split returns false since PHP 7.3.5 instead of array
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221176@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78122&edit=1 ID: 78122 Updated by: nikic@php.net Reported by: nicolas dot grekas+php at gmail dot com Summary: preg_split returns false since PHP 7.3.5 instead of array -Status: Open +Status: Not a bug Type: Bug Package: PCRE related PHP Version: 7.3.6 Block user comment: N Private report: N New Comment: This is an intentional change due to bug #76127. preg_split() was silently ignoring errors, contrary to the documented contract and all other preg_* functions. Previous Comments: ------------------------------------------------------------------------ [2019-06-06 15:19:21] nicolas dot grekas+php at gmail dot com Description: ------------ On 7.3.5 and 7.3.6 Test script: --------------- var_export(preg_split('//iu', chr(226).'foo')); Expected result: ---------------- array ( 0 => '�foo', ) Actual result: -------------- false ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78122&edit=1

« previous php.bugs (#221176) next »