Re: Log-1.5 broken?

From: Date: Sun, 03 Nov 2002 08:16:48 +0000
Subject: Re: Log-1.5 broken?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2591@lists.php.net to get a copy of this message
Explanation: you need to get a reference to the object. Without the ampersand & you get a copy. Arnaud. > 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 > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.pear.general (#2591) next »