betz            Mon Jun 21 03:32:08 2004 EDT

  Modified files:              
    /phpdoc/en/reference/strings/functions      sscanf.xml 
  Log:
  bugfix #28859
  Call-time pass-by-reference has been deprecated
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/sscanf.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/strings/functions/sscanf.xml
diff -u phpdoc/en/reference/strings/functions/sscanf.xml:1.8 
phpdoc/en/reference/strings/functions/sscanf.xml:1.9
--- phpdoc/en/reference/strings/functions/sscanf.xml:1.8        Thu Dec 18 12:46:55 
2003
+++ phpdoc/en/reference/strings/functions/sscanf.xml    Mon Jun 21 03:32:08 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <!-- splitted from ./en/functions/strings.xml, last change in rev 1.33 -->
   <refentry id="function.sscanf">
    <refnamediv>
@@ -46,8 +46,7 @@
       </programlisting>
      </example>
      If optional parameters are passed, the function will return the
-     number of assigned values. The optional parameters must be passed
-     by reference.
+     number of assigned values.
      <example>
       <title><function>sscanf</function> - using optional parameters</title>
       <programlisting role="php">
@@ -55,7 +54,7 @@
 <?php
 // get author info and generate DocBook entry
 $auth = "24\tLewis Carroll";
-$n = sscanf($auth, "%d\t%s %s", &$id, &$first, &$last);
+$n = sscanf($auth, "%d\t%s %s", $id, $first, $last);
 echo "<author id='$id'>
     <firstname>$first</firstname>
     <surname>$last</surname>

Reply via email to