]> granicus.if.org Git - php/commitdiff
- Add example of default argument for argument passed by-ref
authorAndi Gutmans <andi@php.net>
Mon, 31 Dec 2001 05:28:18 +0000 (05:28 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 31 Dec 2001 05:28:18 +0000 (05:28 +0000)
Zend/ZEND_CHANGES

index ec6a1e8a0016919f9e1151c29a8de041ed64aede..4bccb804d7825de842011ec0e728a6f3420185e7 100644 (file)
@@ -392,6 +392,20 @@ Changes in the Zend Engine 2.0
           print foo::$my_static;
         ?>
 
+    * Supporting default values for by-reference function parameters.
+
+      Example:
+
+        <?php
+          function my_function(&$var = null)
+          {
+               if ($var === null) {
+                   die('$var needs to have a value');
+               }
+          }
+        ?>
+
+
 Changes in the Zend Engine 1.0
 
   The Zend Engine was designed from the ground up for increased speed,