summaryrefslogtreecommitdiff
path: root/Zend/ZEND_CHANGES
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2003-10-30 10:07:26 +0000
committerAndi Gutmans <andi@php.net>2003-10-30 10:07:26 +0000
commit0b3fe789062221deb65f7c0b15c450d9bda9bcbb (patch)
treedc74509c73da7edfca247a120d55781a73c9bd3c /Zend/ZEND_CHANGES
parent038a7c4831df457f74a5b79441a036ecf0ab8516 (diff)
downloadphp-git-0b3fe789062221deb65f7c0b15c450d9bda9bcbb.tar.gz
- Beta 2
Diffstat (limited to 'Zend/ZEND_CHANGES')
-rw-r--r--Zend/ZEND_CHANGES38
1 files changed, 26 insertions, 12 deletions
diff --git a/Zend/ZEND_CHANGES b/Zend/ZEND_CHANGES
index d774bb3d2e..3d3d015820 100644
--- a/Zend/ZEND_CHANGES
+++ b/Zend/ZEND_CHANGES
@@ -410,16 +410,6 @@ Changes in the Zend Engine 2.0
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 @@ Changes in the Zend Engine 2.0
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 @@ Changes in the Zend Engine 2.0
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 @@ Changes in the Zend Engine 2.0
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