Skip to content

Commit 72924c8

Browse files
committed
message should technically be a string
1 parent 2f2bee1 commit 72924c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/basic/gh20858_headers.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ $headers .= "Cc: test <[email protected]>\n";
88
$headers .= 'X-Mailer: PHP/' . phpversion();
99

1010
// Send mail with destination set
11-
error_log(0, 1, "[email protected]>", null);
11+
error_log("Error message with dest", 1, "[email protected]>", null);
1212

1313
// Send mail with custom headers
14-
error_log(0, 1, null, $headers);
14+
error_log("Error message cust headers", 1, null, $headers);
1515

1616
// Send mail with destination set + custom headers
17-
error_log(0, 1, "[email protected]>", $headers);
17+
error_log("Error message with both", 1, "[email protected]>", $headers);
1818
?>
1919
--EXPECTF--

tests/basic/gh20858_no_destination.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
GH-20858 Null pointer dereference in php_mail_detect_multiple_crlf via error_log
33
--FILE--
44
<?php
5-
error_log(0, 1, null);
5+
error_log("Error message", 1, null);
66
?>
77
--EXPECTF--
88
sendmail: fatal: %r[^()]+%r(%d): No recipient addresses found in message header

0 commit comments

Comments
 (0)