ID: 11590
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Reproducible crash
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
Please include a complete but short script into this report
which demonstrates this problem.
Previous Comments:
---------------------------------------------------------------------------
[2001-06-20 16:46:03] [EMAIL PROTECTED]
A Function in a class:
function mParseStatisticData ($ids,$result="" ) {
// some stuff inside;
$result_[$pos]["threadid"] = $result[$pos]["threadid"];M
$result_[$pos]["readcount"] = $result[$pos]["readcount"];M
}
I call these function with:
$result_ = $this->mParseStatisticData($a);
And the apache processes stops with a segmentation fault:
[Wed Jun 20 17:46:20 2001] [notice] child pid 28697 exit
signal Segmentation fault (11)
How to fix it:
function mParseStatisticData ($ids,$result=array() ) {
Ok, it's wrong to use a string as an array... my fault..
but.. why my apache (1.3.20) crashes with a segfault? ;-)
Greetings Olli
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11590&edit=2
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]