Re: [PHP] Re: Question about C++ like macros on PHP

2006-02-01 Thread Andrei
Thnx for the tip. I wanted debug features only for this function. So working with debug_backtrace() was what I needed. Thnx again, Andrei Richard Lynch wrote: On Tue, January 31, 2006 6:40 am, Andrei wrote: Well I know, I wanted to know if any1 did find a workaround... To be more clear, sin

Re: [PHP] Re: Question about C++ like macros on PHP

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 6:40 am, Andrei wrote: > Well I know, I wanted to know if any1 did find a workaround... To be more clear, since obviously several other posters aren't aware of it... http://php.net/set_error_handler allows you to write a function to be called when an error occurs and that

Re: [PHP] Re: Question about C++ like macros on PHP

2006-01-31 Thread Andrei
Well I know, I wanted to know if any1 did find a workaround... Barry wrote: Andrei wrote: Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changin

[PHP] Re: Question about C++ like macros on PHP

2006-01-31 Thread Barry
Andrei wrote: Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changing all function calls would not be an option for me) function my_func( $para