Hi,
I currently got the 3.0.2 build 2045 version.
I see from my tests that nucoder does not support all of the 5.3 features.
Before paying the $100 nucoder upgrade (for last version) for a probable discontinued product, I would like to know if it will actually support full 5.3 features?
Particularily:
- Late Static Binding
- Closures
here are 2 sample that will fail with nucoder:
--> Notice the "static::"
class Automobile {
static $horn = "beep";
static function honkHorn() {
// echo self::$horn;
//PHP 5.3's new late-static binding feature: use the static keyword to reference the class attribute that will be displayed rather than the self keyword:
echo static::$horn;
}
}
class GeneralLee extends Automobile {
static $horn = "HONKITY HONK HONKY TONK!!!";
}
//What do you believe will happen when the following command is called?
GeneralLee::honkHorn();
|
closures (or anonymous functions if you prefer):
$history = 'The Magna Carta was signed on 06-15-1215.';
echo preg_replace_callback("|(d{2})-(d{2})-(d{2})|",
function($matches) {
return "{$matches[2]}-{$matches[1]}-{$matches[3]}";
},
$history
);
|
Currently Nucoder do not recognize the statements ("parse error, unexepected _STATIC")
I am ok to stick to php 5.3 because most of the features of 5.4 got me thinking "Hey, I don't need that"
(except for simplified array declarations)
But a decent support of the 5.3 langage version would be necessary.
Thanks for your answer