mirror of
https://github.com/php/php-src.git
synced 2026-03-27 17:52:16 +01:00
MFH (skip conditions for tests)
This commit is contained in:
@@ -5,6 +5,9 @@ mb_send_mail() test 5 (lang=Simplified Chinese)
|
||||
if (@mb_send_mail() === false || !mb_language("Simplified Chinese")) {
|
||||
die("skip mb_send_mail() not available");
|
||||
}
|
||||
if (!@mb_internal_encoding('GB2312')) {
|
||||
die("skip GB2312 encoding is not avaliable on this platform");
|
||||
}
|
||||
?>
|
||||
--INI--
|
||||
sendmail_path=cat
|
||||
|
||||
@@ -5,6 +5,9 @@ mb_send_mail() test 6 (lang=Traditional Chinese)
|
||||
if (@mb_send_mail() === false || !mb_language("Traditional Chinese")) {
|
||||
die("skip mb_send_mail() not available");
|
||||
}
|
||||
if (!@mb_internal_encoding('BIG5')) {
|
||||
die("skip BIG5 encoding is not avaliable on this platform");
|
||||
}
|
||||
?>
|
||||
--INI--
|
||||
sendmail_path=cat
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
--TEST--
|
||||
Function overloading test (said to be harmful)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
<?php
|
||||
extension_loaded('mbstring') or die('skip mbstring not available');
|
||||
if (!function_exists("mail")) {
|
||||
die('skip mail() function is not available.');
|
||||
}
|
||||
?>
|
||||
--INI--
|
||||
output_handler=
|
||||
mbstring.func_overload=7
|
||||
|
||||
Reference in New Issue
Block a user