From: [EMAIL PROTECTED]
Operating system: RedHat Linux 7.0.
PHP version: 4.0.6
PHP Bug Type: Apache related
Bug description: Apache segfaults when acessing certain scripts
hello,
i am using apache 1.3.20 with php-4.0.6
since my update to the 1.3.20 i have strange segmentation faults when i
access some scripts.
error_log:
[notice] child pid 9707 exit signal Segmentation fault (11)
PLEASE NOTICE:
i have also tryed it with the latest development snapshot - the same
here is my configuration:
'./configure' '--prefix=/usr' '--with-config-file-path=/etc'
'--enable-debug' '--with-apxs' '--disable-debug' '--enable-discard-path'
'--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext'
'--with-gd=shared' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib'
'--with-db2' '--with-db3' '--with-gdbm' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-sysvsem' '--enable-sysvshm'
'--enable-track-vars' '--enable-yp' '--enable-ftp' '--with-mysql=/usr'
'--without-oracle' '--without-oci8' '--with-recode' '--with-xml'
i have allready tryed to disable things like xml or regex or recode - the
same...
here is a short demo script to reproduce the error:
<?
$ar = array("hund","katze","schwein","kuh","kamel");
function ar1($ar)
{
reset($ar);
foreach($ar as $key => $val)
{
if($val != "kuh")
{
echo "f1 $key => $val<br>";
}
else
{
ar2($ar);
}
}
}
function ar2($ar)
{
foreach($ar as $key=>$val)
{
if($val=="kuh")
{
echo "f2 $key => $val<br>";
}
else
{
ar1($ar);
}
}
}
ar1($ar);
?>
infortunately apache refuses to produce a core dump in this case
please help
daniel
--
Edit bug report at: http://bugs.php.net/?id=13034&edit=1
--
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]