Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31022 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65904 invoked by uid 1010); 17 Jul 2007 20:59:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 65876 invoked from network); 17 Jul 2007 20:59:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2007 20:59:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:2092] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/A0-59838-5CD2D964 for ; Tue, 17 Jul 2007 16:59:51 -0400 Received: (qmail 78543 invoked by uid 98); 17 Jul 2007 20:59:47 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/3688. Clear:RC:1(127.0.0.1):. Processed in 0.096392 secs); 17 Jul 2007 20:59:47 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 17 Jul 2007 20:59:47 -0000 Received: from 24.1.37.132 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Tue, 17 Jul 2007 15:59:47 -0500 (CDT) Message-ID: <1690.24.1.37.132.1184705987.squirrel@www.l-i-e.com> In-Reply-To: <975151.98159.qm@web50508.mail.re2.yahoo.com> References: <975151.98159.qm@web50508.mail.re2.yahoo.com> Date: Tue, 17 Jul 2007 15:59:47 -0500 (CDT) To: "Usman S. Ansari" Cc: internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Tracing flow in PHP ... From: ceo@l-i-e.com ("Richard Lynch") On Mon, July 16, 2007 4:45 pm, Usman S. Ansari wrote: > In file "main/streams.c, function PHPAPI size_t > _php_stream_read(php_stream *stream, char *buf, size_t size TSRMLS_DC) > is called when php script is trying to connect and read from remote > web server. > > I have so far traced that it is calling > > toread = stream->ops->read(stream, buf, size TSRMLS_CC); > > at line 641. I need to figure out which function is actully called by > function pointer stream->ops->read ? > > This is PHP 4.4.7. I know this is old version, I am only trying to > debug mu TCP stack. You can use a debugger such as XDebug or gdb to see a call stack. You'll need to re-compile with debugging on. You can also use http://lxr.php.net/ to help track down what fits where. Honestly, though, it's extremely unlikely that the actual problem lies in PHP itself, and you should be looking elsewhere. And you ought to upgrade, but you knew that. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?