bug73203.phpt 596 B

12345678910111213141516171819202122
  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={MAIL:bug73203.eml}
  10. mail.add_x_header = Off
  11. --FILE--
  12. <?php
  13. var_dump(
  14. mail('test@example.com', 'subject', 'message', 'From: lala@example.com', '')
  15. );
  16. ?>
  17. --EXPECT--
  18. bool(true)
  19. --CLEAN--
  20. <?php
  21. unlink('bug73203.eml');
  22. ?>