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

From: Date: Thu, 15 Apr 2004 10:44:20 +0000
Subject: Re: what is the reasonable thing to with a segfault in php?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-9169@lists.php.net to get a copy of this message
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? /Per Jessen, Zurich

« previous php.internals (#9169) next »