cvs: ZendEngine2 / ZEND_CHANGES
| From: | Sebastian Bergmann | Date: | Fri, 08 Mar 2002 11:36:56 +0000 |
| Subject: | cvs: ZendEngine2 / ZEND_CHANGES | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-8@lists.php.net to get a copy of this message | ||
sebastian Fri Mar 8 06:36:56 2002 EDT
Modified files:
/ZendEngine2 ZEND_CHANGES
Log:
Add 'import const' example.
Index: ZendEngine2/ZEND_CHANGES
diff -u ZendEngine2/ZEND_CHANGES:1.21 ZendEngine2/ZEND_CHANGES:1.22
--- ZendEngine2/ZEND_CHANGES:1.21 Thu Mar 7 05:31:51 2002
+++ ZendEngine2/ZEND_CHANGES Fri Mar 8 06:36:56 2002
@@ -301,6 +301,17 @@
func2();
?>
+ Example:
+
+ <?php
+ class MyOuterClass {
+ const Hello = "Hello, World\n";
+ }
+
+ import const Hello from MyOuterClass;
+ print Hello;
+ ?>
+
Old code that does not take advantage of namespaces will run
without modifications.