cvs: ZendEngine2 / ZEND_CHANGES
| From: | Andi Gutmans | Date: | Thu, 30 Oct 2003 10:07:26 +0000 |
| Subject: | cvs: ZendEngine2 / ZEND_CHANGES | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1952@lists.php.net to get a copy of this message | ||
andi Thu Oct 30 05:07:26 2003 EDT
Modified files:
/ZendEngine2 ZEND_CHANGES
Log:
- Beta 2
Index: ZendEngine2/ZEND_CHANGES
diff -u ZendEngine2/ZEND_CHANGES:1.67 ZendEngine2/ZEND_CHANGES:1.68
--- ZendEngine2/ZEND_CHANGES:1.67 Sat Oct 25 11:11:49 2003
+++ ZendEngine2/ZEND_CHANGES Thu Oct 30 05:07:26 2003
@@ -410,16 +410,6 @@
echo 'Foo::constant = ' . Foo::constant . "\n";
?>
- The Zend Engine 2.0 allows for expressions within constants:
-
- <?php
- class Bar {
- const a = 1<<0;
- const b = 1<<1;
- const c = a | b;
- }
- ?>
-
Old code that has no user-defined classes or functions
named 'const' will run without modifications.
@@ -609,7 +599,22 @@
The pseudo variable $this is not available inside a method that
has been declared static.
- * instanceof (TBD)
+ * instanceof.
+ New support for an instanceof operator which checks if an object
+ is of a certain class or interface type.
+
+ Example:
+
+ <?php
+
+ class Foo {
+ }
+
+ $obj = new Foo();
+ if ($obj instanceof Foo) {
+ print "Yay!\n";
+ }
+ ?>
* Static function variables.
@@ -636,7 +641,8 @@
The __autoload() interceptor function will be automatically called
when an undeclared class is to be instantiated. The name of that
class will be passed to the __autoload() interceptor function as its
- only argument.
+ only argument. __autoload() must succeed in loading the class. If it
+ doesn't then an E_ERROR is emitted.
Example:
@@ -872,7 +878,15 @@
reflection_extension::export('standard');
?>
-
+ * New memory manager
+ The Zend Engine has a new memory manager which allows it to run efficiently
+ in multi-threaded environments as it doesn't need to use mutexes to lock
+ and unlock during allocation/deallocation.
+
+ * Others
+ Probably other changes which we forgot to list. This list will be kept up-to-date
+ as much as possible.
+
Changes in the Zend Engine 1.0