On Thu, 15 Apr 2004 12:44:20 +0200
Per Jessen <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED] || [EMAIL PROTECTED]

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to