|
From: Heiko Z. <he...@zu...> - 2005-01-04 21:30:06
|
>> >> > The "mail()" function appears to be broken in PHP DL 1.2.1. I get: >> >> > >> >> > Fatal error: Call to undefined function: mail() >> >> > >> >> > Which is odd since the documentation says: >> >> > >> >> > There is no installation needed to use these functions; >> >> > they are part of the PHP core. >> >> > >> >> > My only guess is postfix needs to be installed on the LFS so PHP >> can >> >> > find it. Any other ideas? If not, I'll try installing Postfix. >> >> > >> >> > >> >> > Also, some of the case insensitive string functions are broken. >> >> > >> >> > i.e. stripos() is undefined, but strpos() works. >> >> > Same for a couple other str[i]... string functions I tried, >> >> > except strtolower() works. >> >> > >> >> > The string functions are also part of the PHP core, so I have >> >> > no clue how to solve this one. Any ideas? >> >> >> >> Are you trying to run a specific application? >> > >> > I'm writing my own. >> > >> >> I'm using SquirrelMail and didn't experience any problems. >> > >> > I pretty sure that SquirrelMail doesn't use the mail() function. >> > No idea what string functions it uses. >> >> The only other application I ran before is ACID and I didn't have >> problems >> with that one either. But again it doesn't use the mail() function. > > The original build log for PHP says: > > checking for sendmail... no > > When I manually install postfix in the LFS and run PHP ./configure: > > checking for sendmail... /usr/sbin/sendmail > > I suspect that's the problem for the mail() function. Change the build system and install postfix in the 'build' section. Then make PHP dependend on postfix. > I'll change the postfix build script to install in the LFS, > recompile, test, and report back. (and commit if it works :) > > > I think I solved the string [i] functions too, they are only available > in PHP5 and above. Aaaahhh DL 1.3.x is PHP5 included, but I doubt it's stable enough for a production system. -- Regards Heiko Zuerker http://www.devil-linux.org |