Re: cvs: php4 /pear/DB storage.php
| From: | Markus Fischer | Date: | Sun, 23 Dec 2001 04:48:07 +0000 |
| Subject: | Re: cvs: php4 /pear/DB storage.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-1665@lists.php.net to get a copy of this message | ||
On Sun, Dec 23, 2001 at 02:32:12AM -0000, Thomas V.V.Cox wrote :
> cox Sat Dec 22 21:32:12 2001 EDT
>
> Modified files:
> /php4/pear/DB storage.php
> Log:
> Call-time pass-by-reference fixes
>
>
> Index: php4/pear/DB/storage.php
> diff -u php4/pear/DB/storage.php:1.26 php4/pear/DB/storage.php:1.27
> --- php4/pear/DB/storage.php:1.26 Tue Dec 11 10:31:18 2001
> +++ php4/pear/DB/storage.php Sat Dec 22 21:32:12 2001
> @@ -17,7 +17,7 @@
> // | |
> // +----------------------------------------------------------------------+
> //
> -// $Id: storage.php,v 1.26 2001/12/11 15:31:18 sebastian Exp $
> +// $Id: storage.php,v 1.27 2001/12/23 02:32:12 cox Exp $
> //
> // DB_storage: a class that lets you return SQL data as objects that
> // can be manipulated and that updates the database accordingly.
> @@ -204,7 +204,7 @@
> */
> function toString()
> {
> - $info = get_class(&$this);
> + $info = get_class($this);
> $info .= " (table=";
> $info .= $this->_table;
> $info .= ", keycolumn=";
> @@ -264,7 +264,7 @@
> */
> function &create($table, &$data)
> {
> - $classname = get_class(&$this);
> + $classname = get_class($this);
Are you sure you need the & here? References slow down code
(ok, this may not be applicable to this example, just treat
it as a general advice ;).
- Markus
--
Please always Cc to me when replying to me on the lists.