Bug #1756 [NEW]: DB_DataObject docs: missing ampersand
| From: | pear-doc at mocsnik dot hu | Date: | Wed, 30 Jun 2004 20:11:27 +0000 |
| Subject: | Bug #1756 [NEW]: DB_DataObject docs: missing ampersand | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4555@lists.php.net to get a copy of this message | ||
From: pear-doc at mocsnik dot hu
Operating system:
PHP version: Irrelevant
Package: Documentation
Bug Type: Bug
Bug description: DB_DataObject docs: missing ampersand
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 bug report at http://pear.php.net/bugs/bug.php?id=1756&edit=1
--