• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

beto 1.0 please help (Call-time pass-by-reference has been d

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
7 posts • Page 1 of 1

Postby islandjuice » Fri Jun 16, 2006 12:48 pm

Hi keep getting a Warning message over my chat that saids.

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 W:wwwblbetasrccontainersfile.class.php on line 37

can anyone please tell me how to fix this
islandjuice
New member
 
Posts: 1
Joined: Fri Jun 16, 2006 11:48 am
Top

Postby phpfreechat » Fri Jun 16, 2006 1:17 pm

Thanks you for the report, this is now fixed in the subversion.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby iezzip » Sun Jun 18, 2006 2:43 pm

sorry, just to make sure before I'm testing the most recent SVN-checkout:

Have all other call-time-pass-by-reference problems also been fixed? I've encountered those two in 1.0-beta2:

Code: Select all
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 D:DP_devphpfreechatsrcproxysnoflood.class.php on line 68

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 D:DP_devphpfreechatsrcproxysauth.class.php on line 96

take care
Pipo
iezzip
New member
 
Posts: 9
Joined: Wed Apr 26, 2006 5:00 pm
Top

Postby hattrick » Tue Jun 20, 2006 9:17 am

Same for me in those 2 classes, I had to modify php.ini to avoid XML response error on the page and set allow_call_time_pass_reference to on,anyway I don't think this is the best way out.
Can anyone suggest some workaround to patch this call by reference?
thanks a lot and congratulation on how this chat is getting better and better.
hattrick
New member
 
Posts: 7
Joined: Fri Jun 16, 2006 2:59 pm
Top

Postby iezzip » Tue Jun 20, 2006 9:48 am

just remove the "&" in those two function calls:

Code: Select all
Index: auth.class.php
===================================================================
--- auth.class.php      (Revision 621)
+++ auth.class.php      (Arbeitskopie)
@@ -93,7 +93,7 @@
     }

     // forward the command to the next proxy or to the final command
-    $this->next->run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid);
+    $this->next->run($xml_reponse, $clientid, $param, $sender, $recipient, $recipientid);
   }
 }

Index: noflood.class.php
===================================================================
--- noflood.class.php   (Revision 621)
+++ noflood.class.php   (Arbeitskopie)
@@ -65,7 +65,7 @@
     }

     // forward the command to the next proxy or to the final command
-    $this->next->run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid);
+    $this->next->run($xml_reponse, $clientid, $param, $sender, $recipient, $recipientid);
   }
 }

In PHP5 anyway all objects are passed by reference, so this change shouldn't do any harm.
iezzip
New member
 
Posts: 9
Joined: Wed Apr 26, 2006 5:00 pm
Top

Postby hattrick » Tue Jun 20, 2006 11:15 am

thanks a lot
hattrick
New member
 
Posts: 7
Joined: Fri Jun 16, 2006 2:59 pm
Top

Postby Alphadex » Wed Mar 21, 2007 7:00 pm

I downloaded the latested version (1.0-beta9) of Sourceforge but I get the warning message nevertheless you wrote it is fixed!?
I have no possiblities to change anything converning the php.ini or something like that..
Alphadex
New member
 
Posts: 2
Joined: Wed Mar 21, 2007 6:57 pm
Top


Post a reply
7 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 14 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub