RE: [PHP] display error line in object method
| From: | Mike Johnson | Date: | Wed, 10 Aug 2005 15:33:43 +0000 |
| Subject: | RE: [PHP] display error line in object method | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-220343@lists.php.net to get a copy of this message | ||
From: Georgi Ivanov [mailto:joro@abacustrade.com]
> Thank you for the replay.
> I know i can pass __LINE to $db->error().
> This is not the idea. I want $db->error() to print the line
> on which it was
> executed .
> $parent::__LINE__
> Who is the $parent here ?
There isn't, necessarily. That was pseudo-code to demonstrate what I
thought you were asking about.
The point of my reply was "I don't think it's possible to do what you
want to do here," and offer up an alternative in passing __LINE__ as an
argument to error().
Good luck!
--
Mike Johnson Smarter Living, Inc.
Web Developer www.smartertravel.com
mike@smarterliving.com (617) 886-5539