Re: [PHP-DEV] PHP Source Code Help

2007-07-16 Thread Jani Taskinen
On Sun, 2007-07-15 at 19:06 -0700, Stanislav Malyshev wrote: > >> Use any of the debuggers available to step into it and see which > >> function is called. > > Since PHP is invoked by Apache server, how can I hockup gcc with php ? > > is there an easy way to do this ? > > easier way would be to

Re: [PHP-DEV] PHP Source Code Help

2007-07-15 Thread 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

Re: [PHP-DEV] PHP Source Code Help

2007-07-15 Thread Stanislav Malyshev
Use any of the debuggers available to step into it and see which function is called. Since PHP is invoked by Apache server, how can I hockup gcc with php ? is there an easy way to do this ? easier way would be to run apache single-process with httpd -X under gdb or attach to a certain process

Re: [PHP-DEV] PHP Source Code Help

2007-07-15 Thread Alexey Zakhlestin
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 >> _php_stream_open_wrapper_ex >> >> stream = wrapper->wops->stream_opener(wrapper, path_to_open, >> m

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

Re: [PHP-DEV] PHP Source Code Help

2007-07-14 Thread Antony Dovgal
On 14.07.2007 10:51, Usman S. Ansari wrote: 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-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