andrew_dunn Posted June 18, 2009 Share Posted June 18, 2009 'm debugging a Facebook application, and I get the following error message: Warning: Call-time pass-by-reference has been deprecated in /usr/www/users/adminclt/fb/fbapp/facebook/classes/app.class.php on line 24 I've been trying to figure it out, but I can't seem to. Line 24 of the file is line 6 here. Here's the relevant code: function __construct($facebook=NULL,$isAjax=false) { // initialize class require_once (PATH_CORE.'/classes/db.class.php'); $this->db=new cloudDatabase(); require_once (PATH_CORE.'/classes/systemStatus.class.php'); $this->ssObj=new systemStatus($this->db); $this->ssObj->getProperties(&$this); if (!is_null($facebook)) $this->facebook=&$facebook; // must do before setupTemplates(); require_once (PATH_FACEBOOK.'/classes/session.class.php'); $this->session=new session($this); $this->isAjax=$isAjax; if (!$isAjax) { $this->session->setupSession(); } else { // to do - setup session via jscript rather than POST } } Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/162695-code-is-deprecated/ Share on other sites More sharing options...
xtopolis Posted June 18, 2009 Share Posted June 18, 2009 Google. Srsly. Link to comment https://forums.phpfreaks.com/topic/162695-code-is-deprecated/#findComment-858620 Share on other sites More sharing options...
andrew_dunn Posted June 18, 2009 Author Share Posted June 18, 2009 I tried Google, which didn't help. But through trial and error I solved the problem. I'm working on a demanding schedule, that's why I turned to the forum. Apologies if I mucked up the board. Link to comment https://forums.phpfreaks.com/topic/162695-code-is-deprecated/#findComment-858642 Share on other sites More sharing options...
haku Posted June 18, 2009 Share Posted June 18, 2009 Can't use & signs in function calls, only function definitions. Link to comment https://forums.phpfreaks.com/topic/162695-code-is-deprecated/#findComment-858688 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.