Bug #77165 [Asn->Csd]: mb_check_encoding crashes when argument given an empty array

From: Date: Thu, 15 Nov 2018 16:17:39 +0000
Subject: Bug #77165 [Asn->Csd]: mb_check_encoding crashes when argument given an empty array
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217980@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77165&edit=1 ID: 77165 Updated by: nikic@php.net Reported by: youkidearitai at gmail dot com Summary: mb_check_encoding crashes when argument given an empty array -Status: Assigned +Status: Closed Type: Bug Package: Reproducible crash Operating System: Linux PHP Version: 7.3.0RC5 Assigned To: nikic Block user comment: N Private report: N New Comment: Automatic comment on behalf of nikita.ppv@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=dee5a450d9b7f7b03f012dd1912cc0a3dcb0482c Log: Fixed bug #77165 Previous Comments: ------------------------------------------------------------------------ [2018-11-15 16:02:48] youkidearitai at gmail dot com Description: ------------ mb_check_encoding is crashing when first argument given an empty array. It is also "Process exited with code 139" on https://3v4l.org/Yd42T Test script: --------------- var_dump(mb_check_encoding(array())); Expected result: ---------------- bool(true) Actual result: -------------- Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77165&edit=1

« previous php.bugs (#217980) next »