From: ole at gidderikke dot no Operating system: Debian GNU/Linux 3.1 (sarge) PHP version: 5.1.5 PHP Bug Type: Mail related Bug description: Call to undefined function mail()
Description: ------------ Fatal error: Call to undefined function mail() in /path/file.php on line 1 Reproduce code: --------------- php-script: $headers = "From: $name <$frommail>\n"; $mailtext = "Text for the mail."; mail($tomail, "Subject for the mail", $mailtext, $headers); php.ini (the path is correct): sendmail_path = "/var/qmail/bin/qmail-inject" Expected result: ---------------- I expect that PHP will find it's mail()-function. All this code and php.ini worked in earlier versions (not with) than PHP 5.1.4. I don't remember wich version, but I guess it was ~5.1.2. Version running now: 5.1.6 (not 5.1.5). -- Edit bug report at http://bugs.php.net/?id=38611&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38611&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38611&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38611&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38611&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38611&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38611&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38611&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38611&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38611&r=support Expected behavior: http://bugs.php.net/fix.php?id=38611&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38611&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38611&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38611&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38611&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38611&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38611&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38611&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38611&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38611&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38611&r=mysqlcfg