Archive for June, 2009

PHP 5.3: The Good, the Bad and the Ugly

PHP 5.3 was released today; here are my positive and negatives: The Good: Closures Anonymous functions created with create_function have always been a bit messy. With 5.3 comes support for closures with a much cleaner syntax: $greet = function($name) { printf(“Hello %s\r\n”, $name); }; $greet(‘World’); $greet(‘PHP’); The Bad: Backwards incompatible changes Although not a massive [...]