News5.8 Feature showcase: Accessing class internaat 2010-08-30 in Examples, 5.8-SERIES by friebe The XP Framework's 5.8-SERIES contains a feature that will allow the reflection API to access private and protected members. Of course, just because you can, doesn't mean you should, as this does allow you to break the encapsulation principle.On the other side, this feature comes in handy for serialization mechanisms, as well as for reflection-based factory or delegation patterns. (more) 5.8.0RC2: The second pre-release of the upcoming 5.8-SERIESat 2010-08-29 in Releases, Announcements, 5.8-SERIES by friebeThe XP group is proud to announce the immediate availabality of 5.8.0, release candidate #2. On top of the features contained in RC1, the following have been implemented: Plus, all the recent fixes applied to 5.7.11-dev have been merged, most notably the generics fix for equals(). You can grab a release as always by using our setup routine: $ cd ~/xp...to give it a test run. Enjoy Y2K38at 2010-08-25 in Further reading by friebeIn a recent Sitepoint article, the author talks about problems with PHP's strtotime() function, which can be basically summed up to this: $ xp -e 'Console::writeLine(date("l d F Y H:i", strtotime("2040-02-01")));'The problem is the internal representation of dates, which will overflow and thus cause strtotime() to yield an incorrect value.The XP Framework's util.Date class, being based on PHP's DateTime class, will not exhibit this problem, regardless of whether the system is 32-bit or 64-bit. <?phpSee also http://en.wikipedia.org/wiki/Year_2038_problem and - with a humouristic take: http://xkcd.com/607/ Workaround for Socket::canRead() failing with PHP's VC9 binariesat 2010-08-23 in Announcements by friebeA workaround was added to the peer.Socket class which fixes up this method raising exceptions although the underlying select() call succeeded. This occurres when PHP's VC9 binaries are used - the native function will issue a warning "Invalid CRT parameters detected" which is incorrectly thought of to be an error. This is documented in PHP bug #49948. Extension methods implementation revampedat 2010-08-18 in RFCs, 5.8-SERIES by friebeJust shortly after announcing the removal of the original extension methods implementation we have now come up with a faster, less-clumsy and well-behaving extension method implementation - and have reactivated the corresponding RFC, scheduled for implementation in SVN next week. (more) PHP 5.3.3 supportat 2010-08-10 in Announcements by friebeFollowing the release of PHP 5.3.3, the XP Framework now supports this PHP version in both 5.7.11-dev and 5.8.0-dev release branches. 5.8.0RC1: The first pre-release of the upcoming 5.8-SERIESat 2010-08-10 in Releases, Announcements, 5.8-SERIES by friebe The 5.8-branch has now been maintained since almost a year, gathering features and maturity and is now basically a 5.7.11-dev with the most of the items planned for the 5.8.0 release:
You can grab a release as always by using our setup routine: $ cd ~/xp...to give it a test run. Enjoy Generics of primitivesat 2010-08-10 in Examples, 5.8-SERIES by friebeLike in C# (and unlike Java), primitives can be used as components of generics in the 5.8-SERIES. Given a vector util.collections.Vector<string>, the following applies: <?php Primitives can also be used in other generic collections types, e.g. Set and Map implementations as well as Stack and Queue. RFC #0093: xml.metaat 2010-08-09 in RFCs by friebeScope of Change The xml.meta API will be extended to include a way to marshal objects to trees instead of only to strings, and unmarshal XML from streams. Rationale
Read the full RFC here Extension methods removedat 2010-07-31 in 5.8-SERIES by friebeThe extension method implementation has been removed from the 5.8 branch again, its quality and performance was way below expectation:
It's not dead though, if the issues can be resolved, it will be re-added again. |
|