version 1.1.1.1, 2012/02/21 23:47:52
|
version 1.1.1.3, 2013/10/14 08:02:46
|
Line 435 Changes in the Zend Engine 2.0
|
Line 435 Changes in the Zend Engine 2.0
|
that of other object-oriented languages, such as Java: When the |
that of other object-oriented languages, such as Java: When the |
last reference to an object is destroyed the object's |
last reference to an object is destroyed the object's |
destructor, which is a class method name __destruct() that |
destructor, which is a class method name __destruct() that |
recieves no parameters, is called before the object is freed | receives no parameters, is called before the object is freed |
from memory. |
from memory. |
|
|
Example: |
Example: |
Line 1136 Changes in the Zend Engine 1.0
|
Line 1136 Changes in the Zend Engine 1.0
|
(supports breakpoints, expression evaluation, step-in/over, |
(supports breakpoints, expression evaluation, step-in/over, |
function call backtrace, and more). |
function call backtrace, and more). |
|
|
The Zend Engine claims 100% compatability with the engine of PHP | The Zend Engine claims 100% compatibility with the engine of PHP |
3.0, and is shamelessly lying about it. Here's why: |
3.0, and is shamelessly lying about it. Here's why: |
|
|
* Static variable initializers only accept scalar values |
* Static variable initializers only accept scalar values |
Line 1161 Changes in the Zend Engine 1.0
|
Line 1161 Changes in the Zend Engine 1.0
|
printed the letter { and the contents of the variable $somevar in |
printed the letter { and the contents of the variable $somevar in |
PHP 3.0), it will result in a parse error with the Zend Engine. |
PHP 3.0), it will result in a parse error with the Zend Engine. |
In this case, you would have to change the code to print |
In this case, you would have to change the code to print |
"\{$somevar"; This incompatability is due to the full variable | "\{$somevar"; This incompatibility is due to the full variable |
reference within quoted strings feature added in the Zend |
reference within quoted strings feature added in the Zend |
Engine. |
Engine. |