Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27482 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98251 invoked by uid 1010); 16 Jan 2007 12:14:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 98236 invoked from network); 16 Jan 2007 12:14:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2007 12:14:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 82.94.239.5 cause and error) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.5 (sometimes 2.4) (4) Received: from [82.94.239.5] ([82.94.239.5:51523] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/A7-36919-FA1CCA54 for ; Tue, 16 Jan 2007 07:14:39 -0500 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id l0GCEamV002165; Tue, 16 Jan 2007 13:14:36 +0100 Date: Tue, 16 Jan 2007 13:13:26 +0100 (CET) X-X-Sender: derick@localhost To: Arnold Daniels cc: Michael Wallner , internals@lists.php.net In-Reply-To: <45ACB491.7090907@adaniels.nl> Message-ID: References: <45ABE8FF.4060400@adaniels.nl> <95.C2.17729.AFE7CA54@pb1.pair.com> <45ACB491.7090907@adaniels.nl> X-Face: "L'&?Ah3MYF@FB4hU'XhNhLB]222(Lbr2Y@F:GE[OO;"F5p>qtFBl|yVVA&D{A(g3[C}mG:199P+5C'v.M/u@Z\![0b:Mv.[l6[uWl' MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Re: Newbie help: Segmentation fault From: derick@php.net (Derick Rethans) 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