[php-src] Issue #10627: mb_convert_encoding crashes PHP on Windows

From: Date: Sun, 19 Feb 2023 15:49:35 +0000
Subject: [php-src] Issue #10627: mb_convert_encoding crashes PHP on Windows
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243752@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10627 Author: liviuconcioiu ### Description The following code: ```php <?php if (($handle = fopen('https://www.google.com/', 'r')) !== false) { while (($data = fgetcsv($handle, 1000, ";")) !== false) { $data = mb_convert_encoding($data, 'UTF-8', 'auto'); print_r($data); } fclose($handle); } ``` Resulted in this output: ``` Faulting application name: php-cgi.exe, version: 8.2.3.0, time stamp: 0x63eb5a8b Faulting module name: php_mbstring.dll, version: 8.2.3.0, time stamp: 0x63eb5fc1 Exception code: 0xc0000005 Fault offset: 0x000000000002faeb Faulting process id: 0x990c Faulting application start time: 0x01d944767c2c1fad Faulting application path: z:\nginx\php\php-cgi.exe Faulting module path: z:\nginx\php\ext\php_mbstring.dll Report Id: 32e2f828-cdb9-43ea-82bb-91f6816d7a8d Faulting package full name: Faulting package-relative application ID: ``` DebugDiag Analysis Report [php-cgi.exe_230219_162706_MultipleRules.zip](https://github.com/php/php-src/files/10777263/php-cgi.exe_230219_162706_MultipleRules.zip) ### PHP Version 8.2.3 ### Operating System Windows 10

« previous php.bugs (#243752) next »