summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-12-31 05:28:18 +0000
committerAndi Gutmans <andi@php.net>2001-12-31 05:28:18 +0000
commitc54f216ecd87eef483ab72dcc894ce272520ad69 (patch)
tree4f83d9fedef30ece2572e34230cd9a366bd0cfa2
parent97e03e1573b56355f48c7d255fe2056bdd34bc6a (diff)
downloadphp-git-c54f216ecd87eef483ab72dcc894ce272520ad69.tar.gz
- Add example of default argument for argument passed by-ref
-rw-r--r--Zend/ZEND_CHANGES14
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/ZEND_CHANGES b/Zend/ZEND_CHANGES
index ec6a1e8a00..4bccb804d7 100644
--- a/Zend/ZEND_CHANGES
+++ b/Zend/ZEND_CHANGES
@@ -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,