Re: what is the reasonable thing to with a segfault in php?

From: Date: Thu, 15 Apr 2004 10:57:16 +0000
Subject: Re: what is the reasonable thing to with a segfault in php?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-9170@lists.php.net to get a copy of this message
On Thu, 15 Apr 2004 12:44:20 +0200 Per Jessen <per@computer.org> wrote: > Per Jessen wrote: > > > > > $editmain=strcasecmp($_REQUEST['contact'],"main")==0; > > //$editbilling=strcasecmp($_REQUEST['contact'],"billing")==0; > > > > //$edittechnical=strcasecmp($_REQUEST['contact'],"technical")==0; > > > > OK, > I've now guarded the above with : > > if ( isset($_REQUEST['contact']) ) > { > $editmain=strcmp($_REQUEST['contact'],"main")==0; > $editbilling=strcmp($_REQUEST['contact'],"billing")==0; > $edittechnical=strcasecmp($_REQUEST['contact'],"technical")==0; > } > > and the segfault is gone. Still, a segfault just because I'm using an unset > global? And why only on the 2nd or later statement? > Read this first: http://bugs.php.net/how-to-report.php Try a CVS snapshot and generate a backtrace - this would help more than your code. --- WBR, Antony Dovgal aka tony2001 tony2001@phpclub.net || antony@dovgal.com

« previous php.internals (#9170) next »