|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-07-12 16:52 UTC] om at wysiwyg dot de
Description: ------------ Since the patch for "headers_trimmed" was added in the mail.c I always get a segmentation fault when using mail(). This only affects rhel4.x 64 bit os. rhel 5.x 64 bit or rhel4.x 32 bit works fine. Using mail.c from a snapshot before 2010-04-22 in the actual snapshot source everything works fine. --- php/php-src/branches/PHP_5_2/ext/standard/mail.c 2010-04-22 01:07:48 UTC (rev 298290) -> works fine +++ php/php-src/branches/PHP_5_2/ext/standard/mail.c 2010-04-22 02:22:49 UTC (rev 298291) -> segmentation fault when using mail() in a php script on a rhel4.x 64 bit host Test script: --------------- running "make test" after building php from source. the provided test script also reports the problem. PatchesRadio-Powerfreunde (last revision 2010-11-25 00:08 UTC by sendeleitung-radiofreunde at freenet dot de)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 08:00:01 2025 UTC |
sorry I forgot the testscript: <?php $to = '[email protected]'; $subject = 'test'; $message = 'test'; $headers = 'From: OM' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); //mail without $headers is working //mail($to, $subject, $message); //with $headers -> seg. fault mail($to, $subject, $message, $headers); ?>