Bug #1756 [Opn->Csd]: DB_DataObject docs: missing ampersand

From: Date: Thu, 15 Jul 2004 08:46:18 +0000
Subject: Bug #1756 [Opn->Csd]: DB_DataObject docs: missing ampersand
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-4600@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=1756&edit=1 ID: 1756 Updated by: mj@php.net Reported By: pear-doc at mocsnik dot hu -Status: Open +Status: Closed Type: Bug Package: Documentation PHP Version: Irrelevant New Comment: This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. Previous Comments: ------------------------------------------------------------------------ [2004-06-30 16:11:27] pear-doc at mocsnik dot hu Description: ------------ http://pear.php.net/manual/en/package.database.db-dataobject.db-dataobject.getdatabaseconnection.php example "getting the connection" looks actually like <?php $person = new DataObjects_Person; $db= $person->getDatabaseConnection(); echo $db->phptype; ?> Expected result: ---------------- it should be: <?php $person = new DataObjects_Person; $db = &$person->getDatabaseConnection(); echo $db->phptype; ?> note the added ampersand (&) in the 3rd line ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=1756&edit=1

« previous php.pear.doc (#4600) next »