Announcements

5.8.5RC2: REST

at 2012-04-17 in 5.8-SERIESAnnouncementsReleases by friebe

The second release candidate for 5.8.5 contains improvements to the REST server API's type and error handling, new handler finalization specializations (reloaded, cancel, success), extension method fixes for lang.Throwable instances and the ability to use SSL versions in conjuction with CURL transports.

Go get it!

  $ cd ~/xp
$ wget http://releases.xp-framework.net/setup/5.8.5RC2 -O - | php -- -d ~/bin/



New method peer.URL::getCanonicalURL()

at 2012-04-06 in Announcements by friebe

The peer.URL class now features a new method getCanonicalURL. URL canonicalization, or normalization, consist of:

  • Converting the scheme and host to lower case.
  • Capitalizing letters in escape sequences
  • Decoding percent-encoded octets of unreserved characters.
  • Adding trailing /
  • Removing the default port.
  • Removing dot-segments.

For more details, see pull request 143.



5.8.5RC1: The web

at 2012-03-10 in ReleasesAnnouncements by friebe

The first release candidate for 5.8.5 fixes the problems introduced with the implementation of Pull request 121 (Case-preserving parameters / Case-insensitive lookups), and holds a bit of refactoring and improvements of the REST serverside APIs.

Go get it!

  $ cd ~/xp
$ wget http://releases.xp-framework.net/setup/5.8.5RC1 -O - | php -- -d ~/bin/



5.8.4-RELEASE: Multiple config sources, selectable database drivers, SQLite3, MySQL local sockets, mocking library

at 2012-02-26 in ReleasesUnittestsDatabasesAnnouncements5.8-SERIES by friebe

The XP group is proud to announce the immediate availability of framework release 5.8.4. After four release candidates and about three and a half months, we deliver a bigger release, including the following:

Multiple config sources
This feature described in RFC #0221 enables combining properties from more than one source (e.g., ini-files). For example, one can now have a global, system-wide configuration and extend on that in your application. This feature is supported by "XPCLI" commands and the web runner - details can be found here.

Selectable database drivers
With more and more database protocols appearing as userland implementation (MySQL, Sybase, MSSQL), the urge to be able to chose between drivers has come up; and be it just for testing. To select a specific driver, append the implementation name to the driver, e.g. mysql+std to select ext/mysql. To retrieve the default MySQL driver, one can still use mysql://user@host DSN syntax.

SQLite3
With the deprecation of SQLIte2 in PHP 5.4, we have decided to implement SQLIte3 support in the XP Framework. At the same time, and because we now offer selectable drivers, the default is SQLIte3.

MySQL local sockets
We now support local socket connectivity in our MySQL driver implementation by using the special hostname ".": By using "mysql://./DATABASE", we connect through a local socket, while "mysql://localhost/DATABASE" uses TCP/IP. This has been unified throughout the various MySQL drivers.

Mocking library
The package unittest.mock contains the all-new mocking library. The API is modeled in a fashion similar to EasyMock (Java), Rhino Mocks (.Net). You can read all about the details in RFC #219.

...and more
We have almost 20 bugfixes and various features included in this release - all of which can be seen in the ChangeLog.



Go get it!
  $ cd ~/xp
$ wget http://releases.xp-framework.net/setup/5.8.4 -O - | php -- -d ~/bin/

Enjoy:-)



PHP 5.4 support

at 2012-02-26 in PHP5Announcements by friebe

PHP 5 LogoBack in October 2011 we announced preliminary support for PHP 5.4. There have been quite a bit of bugs discovered (and fixed) in PHP since, partially due to the XP Framework's core test suite. You can follow up on the details in this GitHub issue.

On Windows platforms, the official RC8 will fail, you have to use this binary provided as a fix for PHP bug #60879!



Heads up: Deprecated img.graph package removed

at 2012-02-21 in Announcements by friebe

The deprecated package img.graph and the classes therein - img.graph.Graph, img.graph.PieChart and img.graph.PieSlice have been removed. These classes have been deprecated since May 2005.



5.8.4RC4: Scriptlet parameters

at 2012-02-10 in 5.8-SERIESAnnouncementsReleases by friebe

We would like to announce the immediate availability of the fourth release candidate for XP 5.8.4. On top of the third RC, we have included the changes to the scriptlet API previously announced here.

You can download and install as always:

  $ cd ~/xp
$ wget http://releases.xp-framework.net/setup/5.8.4RC4 -O - | php -- -d ~/bin/

Enjoy:-)



Scriptlet request parameters case preserving

at 2012-02-08 in Announcements by friebe

Following the discussion in issue #120, we have now implemented case-preserving parameters, while keeping case-insensitive lookups. There is a minor BC break here:

  // For an URL like http://example.com/?CustomerId=100:
// * Old behaviour: $params = [ customerid : '100' ]
// * New behaviour: $params = [ CustomerId : '100' ]
$params= $request->getParams();

To retain the old behaviour, change the above as follows:

- $params= $request->getParams();
+ $params= $request->getParams(CASE_LOWER);



5.8.4RC3: JSON, Configuration, Properties and FC

at 2012-02-03 in 5.8-SERIES5.9-SERIESAnnouncementsReleases by friebe

We would like to announce the immediate availability of the third release candidate for XP 5.8.4. On top of the second RC, we have included JSON serialization for objects, the possibility to supply multiple configuration sources for both XPCLIs and web applications based on RFC #0221, extended the util.Properties class to be case-insensitive when parsing boolean values and added a method lang.reflect.Field::getTypeName() for forward compatibility with the upcoming 5.9-SERIES.

You can download and install as always:

  $ cd ~/xp
$ wget http://releases.xp-framework.net/setup/5.8.4RC3 -O - | php -- -d ~/bin/

Enjoy:-)



New method Field::getTypeName()

at 2012-01-28 in 5.8-SERIESAnnouncements by friebe

In preparation for the upcoming change of lang.reflect.Field::getType(), due to fix its inconsistency with other parts of the reflection API, we have added a forward-compatible lang.reflect.Field::getTypeName() method that you can start migrating your code to so it will work in both XP Framework versions.

For an example of what needs to be changed, see this pull request to the XP compiler.



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES
Unicode
Language
5.9-SERIES