Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30956 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45607 invoked by uid 1010); 16 Jul 2007 06:48:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 45592 invoked from network); 16 Jul 2007 06:48:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2007 06:48:48 -0000 Authentication-Results: pb1.pair.com header.from=uansari@yahoo.com; sender-id=unknown; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=uansari@yahoo.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain yahoo.com from 69.147.95.65 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: uansari@yahoo.com X-Host-Fingerprint: 69.147.95.65 smtp102.plus.mail.sp1.yahoo.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [69.147.95.65] ([69.147.95.65:26183] helo=smtp102.plus.mail.sp1.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/B3-30659-EC41B964 for ; Mon, 16 Jul 2007 02:48:47 -0400 Received: (qmail 87370 invoked from network); 16 Jul 2007 06:48:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Message-ID:Date:From:Organization:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=0UUF1Omef9+TZzI9jsTor/ncwYOABq8ywiTEZGQ/+bfQ59MdnKELYESFIyIdtuymR7sEKpbzSTdk26lZjlsRU8+f4oj+n5Xls9+Lc3cgOjqSxkxlAa6AKzNptfCUXmTwj5BKfrdXINFYmL4mD2OYEio5R4F14lczLWyKmxUAwB8= ; Received: from unknown (HELO ?192.168.0.101?) (uansari@68.126.190.174 with plain) by smtp102.plus.mail.sp1.yahoo.com with SMTP; 16 Jul 2007 06:48:43 -0000 X-YMail-OSG: iZOm6TwVM1kBqZzFN9Nfi87xicUtUDMKVo_OXgcUdez.UFqdWbPioZRamxeRos3QzfPZzbKAV8mbGQFmXrXkK1LOxtaXZToK6EQ104sPvWx6FmZREg-- Message-ID: <469B14C6.5020100@yahoo.com> Date: Sun, 15 Jul 2007 23:48:38 -0700 Organization: Cavium Networks User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Alexey Zakhlestin CC: internals@lists.php.net, antony@zend.com References: <46987258.4030205@yahoo.com> <46988CB6.7050100@zend.com> <4699D865.5050508@yahoo.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP Source Code Help From: uansari@yahoo.com ("Usman S. Ansari") I tried running apache -X under gdb, problem was system (prime client) timeout out. I am trying to run SPECweb, I suppose most of the people on the list are fimiliar with it. Anyway I was able to read the code and figure out function called by (wrapper->wops->stream_opener), through layers of buffering and function calling. My TCP stack is returning one bytes less from the start, so http:// 200 is ttp:// 200. May be it is calling pread to read the data or aio_read (something which is not implemented in my stack), Is there a documentation which can help me understand the code flow with less pain ? Usman Alexey Zakhlestin wrote: > start "apache -X" inside of gdb > > On 7/15/07, Usman S. Ansari wrote: >> >> >> failed to open stream >> >> >> >> Which I have traced to file: php-4.4.7/main/streams.c and function >> >> _php_stream_open_wrapper_ex >> >> >> >> stream = wrapper->wops->stream_opener(wrapper, path_to_open, >> >> mode, options ^ REPORT_ERRORS, >> >> opened_path, context STREAMS_REL_CC TSRMLS_CC); >> >> >> >> Error condition occurs when stream is assigned NULL from >> >> wrapper->wops->stream_opener call (see above line). I need some help >> >> figuring out which function is call by pointer >> >> wrapper->wops->stream_opener. >> > >> > Use any of the debuggers available to step into it and see which >> > function is called. >> Since PHP is called by apache and error happens right away, is there an >> easy way to invoke php under gdb ? >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > >