Re: Log-1.5 broken?
| From: | Richard Heyes | Date: | Sun, 03 Nov 2002 01:21:55 +0000 |
| Subject: | Re: Log-1.5 broken? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2590@lists.php.net to get a copy of this message | ||
> This won't log anything with Log-1.5, though it does thouch the file:
>
> <?php
> require_once("Log.php");
> $log = Log::factory("file", "log");
> $log->log("test");
> ?>
You're missing an ampersand in front of the "Log::".
<?php
require_once("Log.php");
$log = &Log::factory("file", "log");
$log->log("test");
?>
--
Richard Heyes
V-webmail - http://www.v-webmail.co.uk