mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
27 lines
456 B
PHP
27 lines
456 B
PHP
--TEST--
|
|
mb_output_handler() with output_encoding=pass
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--INI--
|
|
output_handler=mb_output_handler
|
|
output_encoding=pass
|
|
--FILE--
|
|
<?php
|
|
var_dump(mb_http_output());
|
|
var_dump("\xff");
|
|
ob_end_flush();
|
|
|
|
ob_start('mb_output_handler');
|
|
mb_http_output("UTF-8");
|
|
var_dump("\xff");
|
|
ob_end_flush();
|
|
|
|
ob_start('mb_output_handler');
|
|
mb_http_output("pass");
|
|
var_dump("\xff");
|
|
?>
|
|
--EXPECT--
|
|
string(4) "pass"
|
|
string(1) "ÿ"
|
|
string(1) "?"
|
|
string(1) "ÿ"
|