Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg

PHP : Appendices : Migrating from PHP 5.0.x to PHP 5.1.x : Reading []

Reading []

class XmlTest {

test_ref(&$test) {
$test = "ok";

test($test) { }

run() {
$ar = array();

$o = new XmlTest();

This should always have thrown a fatal E_ERROR, because [] cannot be used for reading in PHP. It is invalid code in PHP 4.4.2 and PHP 5.0.5 upward.

Change Language

Follow Navioo On Twitter
Key PHP 5.1.x features
Changes in reference handling
Reading []
Integer values in function parameters
Class and object changes
Date/time support
Changes in database support
Checking for E_STRICT
eXTReMe Tracker