Skip to content

Commit a855ef8

Browse files
committed
fix tests
1 parent 72924c8 commit a855ef8

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

tests/basic/gh20858_headers.phpt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
--TEST--
22
GH-20858 Null pointer dereference in php_mail_detect_multiple_crlf via error_log
3+
--INI--
4+
sendmail_path="cat > /tmp/php_test_gh20878_headers.out"
5+
mail.force_extra_parameters="-n"
6+
mail.add_x_header = Off
7+
--SKIPIF--
8+
<?php
9+
if(substr(PHP_OS, 0, 3) == "WIN")
10+
die("skip Won't run on Windows");
11+
?>
312
--FILE--
413
<?php
514

tests/basic/gh20858_no_destination.phpt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
--TEST--
22
GH-20858 Null pointer dereference in php_mail_detect_multiple_crlf via error_log
3+
--INI--
4+
sendmail_path="cat > /tmp/php_test_gh20878_headers.out"
5+
mail.force_extra_parameters="-n"
6+
mail.add_x_header = Off
7+
--SKIPIF--
8+
<?php
9+
if(substr(PHP_OS, 0, 3) == "WIN")
10+
die("skip Won't run on Windows");
11+
?>
312
--FILE--
413
<?php
514
error_log("Error message", 1, null);

0 commit comments

Comments
 (0)