Using a php script for sendmail_path causes segmentation fault
|Reported by:||blueyed||Owned by:||moo|
I've noticed that "mail()" failed on my webserver, since I've installed XCache:
# php -d sendmail_path="/usr/local/bin/sendmail_test" -r "var_dump( mail('EMAIL', 'test', 'test') );" /dev/zero: No space left on device Failed creating file mappping PHP Fatal error: Failed creating file mappping in Unknown on line 0 PHP Fatal error: XCache: Cannot create shm in Unknown on line 0 testSegmentation fault bool(false)
/usr/local/bin/sendmail_test looks as follows:
#!/usr/bin/php <?php echo "test"; ?>
Executing sendmail_test itself works fine, only when used for sendmail_path it fails.
The workaround for me is to use "#!/usr/bin/php -n" for this script (-n for "no ini and therefore also no xcache).
Debian/Ubuntu? uses the same conf.d directories for CLI and CGI, otherwise I might have disabled XCache for CLI instead.
If you need more information, like e.g. a backtrace in case you cannot reproduce this, please let me know.