From:             forlevibr at yahoo dot com dot br
Operating system: Slackware 9
PHP version:      4.3.4
PHP Bug Type:     Unknown/Other Function
Bug description:  Php Segmentation fault in cron

Description:
------------
I installed PHP with the commands below:

rm config.cache
make clean
./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs
--with-sybase-ct=/opt/sybase --with-java=/usr/local/java --enable-sockets
--enable-ftp --enable-calendar
make && make install && make install-cli

Then I created a script teste.sh that have permisions 755 with the command
below:

/usr/local/php/bin/php /etc/cron/teste.php

The script teste.php have the commands below:

<?php
mail("[EMAIL PROTECTED]", "Subject', "Text");
?>

I added the command in the contab
0 0-23 * * * /etc/cron/teste.sh

When the job execute it throw the message:
/etc/cron/teste.sh: line 1: 27310 Segmentation fault
/usr/local/php/bin/php /etc/cron/teste.php

When I execute the script in the line command it work, but when the cron
execute it don't work.

Reproduce code:
---------------
file teste.php
<?php
mail("[EMAIL PROTECTED]", "Subject', "Text");
?>

file teste.sh
/usr/local/php/bin/php /etc/cron/teste.php

crontab
0 0-23 * * * /etc/cron/teste.sh

Expected result:
----------------
Crontab execute the script sending the mail

Actual result:
--------------
Crontab execute the script but throw message:

/etc/cron/teste.sh: line 1: 27310 Segmentation fault
/usr/local/php/bin/php /etc/cron/teste.php

and not send mail

-- 
Edit bug report at http://bugs.php.net/?id=26884&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26884&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26884&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26884&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26884&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26884&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26884&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26884&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26884&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26884&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26884&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26884&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26884&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26884&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26884&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26884&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26884&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26884&r=float

Reply via email to