ID:               26884
 User updated by:  forlevibr at yahoo dot com dot br
 Reported By:      forlevibr at yahoo dot com dot br
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Slackware 9
 PHP Version:      4.3.4
 New Comment:

I updated php, but the problem continue.


Previous Comments:
------------------------------------------------------------------------

[2004-01-12 10:00:25] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



------------------------------------------------------------------------

[2004-01-12 09:02:54] forlevibr at yahoo dot com dot br

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 this bug report at http://bugs.php.net/?id=26884&edit=1

Reply via email to