Re: log in destructors?
| From: | Martin Jansen | Date: | Tue, 09 Apr 2002 11:06:44 +0000 |
| Subject: | Re: log in destructors? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-1116@lists.php.net to get a copy of this message | ||
On Tue, 9 Apr 2002 11:33:49 +0200, robert janeczek wrote:
>can Log object be used in pear destructors? it looks like it can`t:
>
> [...]
>
>i always get one line in log - the one with 'start ok'.
Verified on Linux, PHP 4.3.0-dev. Additionally I get
"Warning: fopen("log.txt") - Permission denied in
/home/martin/cvs/pear/pear/Log/Log/file.php on line 56"
when calling $this->log->log("...") in the destructor, eventhough
Log was able to open the file in the constructor.
- Martin
--
Martin Jansen, <mail@martin-jansen.de>
http://www.martin-jansen.de/