com php-src: Fix tests filenames: ext/mbstring/tests/bug52681.phpt ext/mbstring/tests/bug52861.phpt ext/session/tests/bug71603.phpt
ext/session/tests/bug71683.phpt

From: Date: Mon, 11 Mar 2019 02:57:32 +0000
Subject: com php-src: Fix tests filenames: ext/mbstring/tests/bug52681.phpt ext/mbstring/tests/bug52861.phpt ext/session/tests/bug71603.phpt
ext/session/tests/bug71683.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105059@lists.php.net to get a copy of this message
Commit: c67c2c4d8fece402c2dfb5c289917a1cd2780976 Author: Gabriel Caruso <carusogabriel34@gmail.com> Sun, 10 Mar 2019 23:57:32 -0300 Parents: 173e126a77d3ec9a71f93fc0ce99341c51a8f012 Branches: PHP-7.4 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c67c2c4d8fece402c2dfb5c289917a1cd2780976 Log: Fix tests filenames Changed paths: A ext/mbstring/tests/bug52681.phpt D ext/mbstring/tests/bug52861.phpt D ext/session/tests/bug71603.phpt A ext/session/tests/bug71683.phpt Diff: diff --git a/ext/mbstring/tests/bug52681.phpt b/ext/mbstring/tests/bug52681.phpt new file mode 100644 index 0000000..dc1914d --- /dev/null +++ b/ext/mbstring/tests/bug52681.phpt @@ -0,0 +1,29 @@ +--TEST-- +Bug #52681 (mb_send_mail() appends an extra MIME-Version header) +--SKIPIF-- +<?php +if (substr(PHP_OS, 0, 3) == 'WIN') { + die('skip.. Not valid for Windows'); +} +if (!function_exists("mb_send_mail") || !mb_language("neutral")) { + die("skip mb_send_mail() not available"); +} +?> +--INI-- +sendmail_path=/bin/cat +mail.add_x_header=off +--FILE-- +<?php +$to = 'example@example.com'; +$headers = 'MIME-Version: 2.0'; + +mb_send_mail($to, mb_language(), "test", $headers); +?> +--EXPECTF-- +To: example@example.com +Subject: %s +MIME-Version: 2.0 +Content-Type: text/plain; charset=%s +Content-Transfer-Encoding: %s + +%s diff --git a/ext/mbstring/tests/bug52861.phpt b/ext/mbstring/tests/bug52861.phpt deleted file mode 100644 index dc1914d..0000000 --- a/ext/mbstring/tests/bug52861.phpt +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -Bug #52681 (mb_send_mail() appends an extra MIME-Version header) ---SKIPIF-- -<?php -if (substr(PHP_OS, 0, 3) == 'WIN') { - die('skip.. Not valid for Windows'); -} -if (!function_exists("mb_send_mail") || !mb_language("neutral")) { - die("skip mb_send_mail() not available"); -} -?> ---INI-- -sendmail_path=/bin/cat -mail.add_x_header=off ---FILE-- -<?php -$to = 'example@example.com'; -$headers = 'MIME-Version: 2.0'; - -mb_send_mail($to, mb_language(), "test", $headers); -?> ---EXPECTF-- -To: example@example.com -Subject: %s -MIME-Version: 2.0 -Content-Type: text/plain; charset=%s -Content-Transfer-Encoding: %s - -%s diff --git a/ext/session/tests/bug71603.phpt b/ext/session/tests/bug71603.phpt deleted file mode 100644 index ee0ecf0..0000000 --- a/ext/session/tests/bug71603.phpt +++ /dev/null @@ -1,15 +0,0 @@ ---TEST-- -Bug #71683 Null pointer dereference in zend_hash_str_find_bucket ---SKIPIF-- -<?php include('skipif.inc'); ?> ---INI-- -session.save_handler=files -session.auto_start=1 -session.use_only_cookies=0 ---FILE-- -<?php -ob_start(); -echo "ok\n"; -?> ---EXPECT-- -ok diff --git a/ext/session/tests/bug71683.phpt b/ext/session/tests/bug71683.phpt new file mode 100644 index 0000000..ee0ecf0 --- /dev/null +++ b/ext/session/tests/bug71683.phpt @@ -0,0 +1,15 @@ +--TEST-- +Bug #71683 Null pointer dereference in zend_hash_str_find_bucket +--SKIPIF-- +<?php include('skipif.inc'); ?> +--INI-- +session.save_handler=files +session.auto_start=1 +session.use_only_cookies=0 +--FILE-- +<?php +ob_start(); +echo "ok\n"; +?> +--EXPECT-- +ok

« previous php.cvs (#105059) next »