Re: Tracing flow in PHP ...

From: Date: Tue, 17 Jul 2007 20:59:47 +0000
Subject: Re: Tracing flow in PHP ...
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-31022@lists.php.net to get a copy of this message
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?

« previous php.internals (#31022) next »