mirror of
https://github.com/php/php-src.git
synced 2026-04-27 01:48:26 +02:00
c7d3dc6fab
The INI option can be NULL or invalid, resulting in a NULL global. So we have to add a NULL check. Closes GH-17996.
17 lines
303 B
PHP
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
|