|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-06-29 14:04 UTC] joe at nowalls dot com
PHP Options:
'./configure' '--with-mysql' '--with-gd' '--enable-track-vars' '--with-jpeg-dir=/usr/local/lib' '--enable-bcmath' '--with-apache=../apache_1.3.20' '--enable-ftp' '--enable-sockets' '--with-mcrypt'
The problem I am having is:
When using the code:
$cipher = md5($cipher); httpd crashes the current child process with:
[Fri Jun 29 10:54:49 2001] [notice] child pid 9766 exit signal Segmentation fault (11)
[Fri Jun 29 10:54:50 2001] [notice] child pid 9920 exit signal Segmentation fault (11)
The page then fails to load, returning nothing to the browser.
Also, I have another function called CleanSring($string); which looks like:
function CleanString($string)
{
$string = strip_tags($string);
$string = preg_replace("/<\/?(html|head|meta|title|body|font|img|.jpg|.gif|.vbs|script|tr|table|text).*>/","",$string);
$string = preg_replace("/<\/?(HTML|HEAD|META|TITLE|BODY|FONT|IMG|.JPG|.GIF|.VBS|SCRIPT|TR|TABLE|TEXT).*>/","",$string);
$string = preg_replace("/<[^>]*>/","",$string);
return $string;
}
Calling this function like:
$string = CleanString($string); causes the same problem.
Whats weird is I call md5() again below the problem code:
$now = date("r");
$thisID = md5(substr(makeID(), 0, 16));
$onetimepass = substr(md5($thisID), 0, 8);
And neither of these causes the same problem, even when being used in the same document.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 07:00:01 2025 UTC |
Derick, Thanks I did not think to check there this time. I see the following, even with the the $cipher = md5() and CleanString functions disabled: [Sun Jul 1 09:11:55 2001] Script: '/home/nerdwww/compose.php' --------------------------------------- mcrypt.c(1322) : Block 0x08429258 status: Beginning: OK (allocated on mcrypt.c:1252, 24 bytes) End: Overflown (magic=0x35653364 instead of 0x2A8FCC84) At least 4 bytes overflown --------------------------------------- Here are the calls I make using mcrypt outside of the compose.php script you have already seen: http://www.nerdnet.com/functions.phps Thanks again! Joe