Re: Re: Newbie help: Segmentation fault

From: Date: Tue, 16 Jan 2007 12:13:26 +0000
Subject: Re: Re: Newbie help: Segmentation fault
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-27482@lists.php.net to get a copy of this message
On Tue, 16 Jan 2007, Arnold Daniels wrote: > Yes sure you are right, but there was some other code which I replaced > with printf to show where the problem lies. The printf not in the actual > code, only in the e-mail :). > I'm very sure that the problem lies in the ret != NULL. Function > zend_parse_parameters() puts a strange value in ret, when the argument > is not supplied in PHP. But I'll try gdb to see if I can find where the > problem is coming from. When an argument is not supplied, zend_pp doesn't touch the value. You would need to initialize it in your variable declaration, such as : char *ret = NULL; regards, Derick

« previous php.internals (#27482) next »