Quercus, meet PHP 5.4 and shake hands, please
Saturday, December 29th, 2012I just extended Quercus to support the new core language features of PHP 5.4. The changes are currently in our subversion repository and should be in our next release: 4.0.34. Traits, new in 5.4, was a bit of a pain to implement because of all the weird edge cases (i.e. __CLASS__, insteadof, as). Here’s a list of what’s new:
- traits
<?php trait T0 { function foo() { echo "inside T0->foo()\n"; } } class A { use T0; } $a = new A(); $a->foo(); ?>
