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.
Thanks for help.
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?