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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 function accepts optional
arguments of $file and $line which PHP will fill with the __FILE__ and
__LINE__ values of the offending code.

Which is precisely what you need.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux