Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30959 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74713 invoked by uid 1010); 16 Jul 2007 08:08:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74698 invoked from network); 16 Jul 2007 08:08:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2007 08:08:40 -0000 Authentication-Results: pb1.pair.com header.from=jani.taskinen@sci.fi; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@sci.fi; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sci.fi from 63.208.196.171 cause and error) X-PHP-List-Original-Sender: jani.taskinen@sci.fi X-Host-Fingerprint: 63.208.196.171 outbound.mailhop.org FreeBSD 4.6-4.9 Received: from [63.208.196.171] ([63.208.196.171:2186] helo=outbound.mailhop.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/02-56486-5872B964 for ; Mon, 16 Jul 2007 04:08:39 -0400 Received: from [81.22.163.71] (helo=[10.6.109.91]) by outbound.mailhop.org with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.63) (envelope-from ) id 1IALdC-000Lcj-OB; Mon, 16 Jul 2007 04:08:35 -0400 X-MHO-User: U2FsdGVkX1+VvMOOpmiG25yxxgQxdM4TR9Cxfhsi/yI= X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 81.22.163.71 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19xb8AjTTatxro2uBQdNZr25HM+3GVzCs0= Reply-To: jani.taskinen@iki.fi To: "Usman S. Ansari" Cc: internals@lists.php.net In-Reply-To: <469AD29A.80709@zend.com> References: <46987258.4030205@yahoo.com> <46988CB6.7050100@zend.com> <4699CD43.2080806@yahoo.com> <469AD29A.80709@zend.com> Content-Type: text/plain Date: Mon, 16 Jul 2007 11:08:28 +0300 Message-ID: <1184573308.3352.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP Source Code Help From: jani.taskinen@sci.fi (Jani Taskinen) On Sun, 2007-07-15 at 19:06 -0700, Stanislav Malyshev wrote: > >> Use any of the debuggers available to step into it and see which > >> function is called. > > Since PHP is invoked by Apache server, how can I hockup gcc with php ? > > is there an easy way to do this ? > > easier way would be to run apache single-process with httpd -X under gdb > or attach to a certain process with gdb -p. And easiest is to debug with CLI: # gdb --arg php script-to-debug.php :) --Jani