Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27481 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82514 invoked by uid 1010); 16 Jan 2007 11:18:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82499 invoked from network); 16 Jan 2007 11:18:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2007 11:18:48 -0000 Authentication-Results: pb1.pair.com header.from=info@adaniels.nl; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=info@adaniels.nl; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain adaniels.nl from 82.94.236.173 cause and error) X-PHP-List-Original-Sender: info@adaniels.nl X-Host-Fingerprint: 82.94.236.173 loco.helderhosting.nl Linux 2.5 (sometimes 2.4) (4) Received: from [82.94.236.173] ([82.94.236.173:49740] helo=loco.helderhosting.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/95-36919-894BCA54 for ; Tue, 16 Jan 2007 06:18:48 -0500 Received: from [192.168.1.167] (a80-126-54-132.adsl.xs4all.nl [80.126.54.132]) by loco (Postfix) with ESMTP id F002A10D8667; Tue, 16 Jan 2007 12:18:43 +0100 (CET) Message-ID: <45ACB491.7090907@adaniels.nl> Date: Tue, 16 Jan 2007 12:18:41 +0100 User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: Michael Wallner Cc: internals@lists.php.net References: <45ABE8FF.4060400@adaniels.nl> <95.C2.17729.AFE7CA54@pb1.pair.com> In-Reply-To: <95.C2.17729.AFE7CA54@pb1.pair.com> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/alternative; boundary="------------070604050909040602060304" Subject: Re: [PHP-DEV] Re: Newbie help: Segmentation fault From: info@adaniels.nl (Arnold Daniels) --------------070604050909040602060304 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, 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. Thanks for replying anyway, Arnold Michael Wallner wrote: > Arnold Daniels wrote: > > >> if (ret != NULL) { >> printf('1'); >> } >> > > '1' is 0x00000031, use "1" and you'll get a real memory address to print. > > --------------070604050909040602060304--