[PHP-DEV] Tracing flow in PHP ...

2007-07-16 Thread Usman S. Ansari
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)

Re: [PHP-DEV] PHP Source Code Help

2007-07-15 Thread Usman S. Ansari
e flow with less pain ? Usman Alexey Zakhlestin wrote: start "apache -X" inside of gdb On 7/15/07, Usman S. Ansari <[EMAIL PROTECTED]> wrote: >> failed to open stream >> >> Which I have traced to file: php-4.4.7/main/streams.c and function >> _p

Re: [PHP-DEV] PHP Source Code Help

2007-07-15 Thread Usman S. Ansari
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 c

Re: [PHP-DEV] PHP Source Code Help

2007-07-15 Thread Usman S. Ansari
Antony Dovgal 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

[PHP-DEV] PHP Source Code Help

2007-07-13 Thread Usman S. Ansari
I am trying to debug my custom TCP stack which is running under Linux OS. Do to some bug in my stack or missing feature I am getting error following from php. 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