CHAPTER 13 – COMPATIBILITY MODE
In an earlier section, one suggested solution was to turn on the compatibility mode. This mode actually changes more behavior than just the pass-by- reference behavior. It also affects other Zend Engine 2 (PHP 5) related changes. Turning on Zend Engine 1 (PHP 4) compatibility mode changes the following: Passing objects to a function results in a copy of the object (discussed in the previous section). Casting an object to a Boolean, integer, or double results in 0 if the object has no properties. Comparing objects results in true when the properties of the two objects have the same content.