1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00
Files
Niels Dossche c7d3dc6fab Fix GH-17989: mb_output_handler crash with unset http_output_conv_mimetypes
The INI option can be NULL or invalid, resulting in a NULL global.
So we have to add a NULL check.

Closes GH-17996.
2025-03-09 11:16:33 +01:00

17 lines
303 B
PHP

--TEST--
GH-17989 (mb_output_handler crash with unset http_output_conv_mimetypes)
--EXTENSIONS--
mbstring
--INI--
mbstring.http_output_conv_mimetypes=
--FILE--
<?php
echo "set mime type via this echo\n";
ob_start('mb_output_handler');
echo "hi";
ob_flush();
?>
--EXPECT--
set mime type via this echo
hi