bug73203.phpt 686 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Bug #73203 (passing additional_parameters causes mail to fail)
  3. --DESCRIPTION--
  4. We're not really interested in testing mail() here, but it is currently the
  5. only function besides mb_send_mail() which allows to call php_escape_shell_cmd()
  6. with an empty string. Therefore we don't check the resulting email, but only
  7. verify that the call succeeds.
  8. --INI--
  9. sendmail_path=cat >/dev/null
  10. mail.add_x_header = Off
  11. --SKIPIF--
  12. <?php
  13. if (substr(PHP_OS, 0, 3) === 'WIN') die('skip won\'t run on Windows');
  14. ?>
  15. --FILE--
  16. <?php
  17. var_dump(
  18. mail('test@example.com', 'subject', 'message', 'From: lala@example.com', '')
  19. );
  20. ?>
  21. ===DONE===
  22. --EXPECT--
  23. bool(true)
  24. ===DONE===