note 30636 added to function.sscanf

From: Date: Mon, 24 Mar 2003 15:38:31 +0000
Subject: note 30636 added to function.sscanf
Groups: php.notes 
Request: Send a blank email to php-notes+get-45740@lists.php.net to get a copy of this message
In PHP >= 4.3.0, if you use additional reference parameters, you will get this warning: PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value This clearly has the potential to cause unexpected consequences (vars left empty), and will break existing code. So don't do it! These docs need updating to say this too. The syntax: list($a, $b) = sscanf("hello world", "%s %s"); will work as expected, and doesn't seem to cause any problems with Apache that I've noticed. -- http://www.php.net/manual/en/function.sscanf.php http://master.php.net/manage/user-notes.php?action=edit+30636 http://master.php.net/manage/user-notes.php?action=delete+30636 http://master.php.net/manage/user-notes.php?action=reject+30636

« previous php.notes (#45740) next »