Bug #77514 [Ver->Asn]: mb_ereg_replace() bug

From: Date: Thu, 24 Jan 2019 14:18:30 +0000
Subject: Bug #77514 [Ver->Asn]: mb_ereg_replace() bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219172@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77514&edit=1 ID: 77514 Updated by: nikic@php.net Reported by: legale dot legale at gmail dot com Summary: mb_ereg_replace() bug -Status: Verified +Status: Assigned Type: Bug Package: mbstring related Operating System: linux PHP Version: 7.3.1 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2019-01-24 13:07:14] cmb@php.net Confirmed: <https://3v4l.org/PHfJA>. ------------------------------------------------------------------------ [2019-01-24 12:53:20] legale dot legale at gmail dot com Description: ------------ Function returns incorrect result. Test script: --------------- <?php $a="abc123"; echo unpack("H*", mb_ereg_replace("123","def\\",$a))[1]; echo PHP_EOL; Expected result: ---------------- 61626364655c Actual result: -------------- 61626364655c00 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77514&edit=1

« previous php.bugs (#219172) next »