Re: Auth package bug?
| From: | Piotr Klaban | Date: | Fri, 26 Nov 2004 09:52:21 +0000 |
| Subject: | Re: Auth package bug? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15818@lists.php.net to get a copy of this message | ||
On Fri, Nov 26, 2004 at 11:51:25AM +0300, Denis Gerasimov wrote:
> Warning: Call-time pass-by-reference has been deprecated - argument passed
> by value; If you would like to pass it by reference, modify the declaration
> of [runtime function name](). If you would like to enable call-time
> pass-by-reference, you can set allow_call_time_pass_reference to true in
> your INI file. However, future versions may not support this any longer. in
> C:\Program Files\PHP5\PEAR\Auth.php on line 430
>
> Is that Auth package bug or this may be the result of my mistake somewhere?
This bug (#2395) has been fixed in CVS (http://cvs.php.net/pear/Auth/Auth.php):
diff -p --unified=3 -r1.93 -r1.94
--- Auth.php2004/08/31 06:48:221.93
+++ Auth.php2004/10/04 09:28:461.94
[...]
@@ -427,7 +427,7 @@ class Auth {
// BC fix Auth used to use drawLogin for this
// call is sub classes implement this
if(is_callable(array(&$this, 'drawLogin'))) {
- return $this->drawLogin($this->username, &$this);
+ return $this->drawLogin($this->username, $this);
}
Best regards,
--
Piotr Klaban