News

Userland database driver implementations

at 2010-07-09 in ExperimentsDatabases by friebe

Following a discussion we had about software packaging for our test, qa and live clusters (most of which run Debian Lenny, meaning it brings PHP 5.2.6 with the mssql extension, unfortunately unsuitable for ASE 15 / univarchar fields), we decided two things:

  1. We need to compile a more recent PHP version with sybase_ct ourselves
  2. We should investigate in more independence from installed system libraries and PHP extensions
The second point is really not a new decision, the XP Framework has a long history of userland implementations, reflection without the reflection library in PHP4 times, XML builders without ext/dom, the HTTP protocol without ext/curl or http_build_query or JSON without ext/json, to name just a few, and - more recently, FTP without ext/ftp, partially due to the fact that PHP didn't provide these functionalities at the time we implemented them and partially due to the fact that we couldn't count on the extensions being available everywhere we wanted to install and run the XP Framework.


(more)

5.7.10-RELEASE: Independence day!

at 2010-07-04 in AnnouncementsReleases by friebe

The XP group is proud to announce the availabality of XP Framework, release 5.7.10. The highlights in this release include support for unbuffered queries, changes to the unittest runner to also fail for tests with @expect when warnings have occurred, logging of all exceptions in webservices, a nicer string representation of XML trees, support for mysqli and mssql extensions as snap-ins when mysql or sybase_ct are not available, respectively, and various improvements to the web runners.

http://releases.xp-framework.net/xml/release?5.7.10



5.7.10-RELEASE RC3

at 2010-06-22 in AnnouncementsReleases by friebe

This third release candidate includes support for PHP's mysqli (MySQL Improved) extension as well as the new Tree::withRoot() method completing the xml API's fluent interface.

To give this release a test run, install it as always:

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

Enjoy:-)



Fluent XML with the XP Framework

at 2010-06-22 in Examples by friebe

To create an XML tree programmatically, the XP Framework has offered the xml.Tree class since its beginning in 2001. Recently, we've added a fluent interface to it, allowing for the following:

<?php 
$t= create(new Tree())->withRoot(create(new Node('book'))
->withChild
(new Node('author', 'Timm'))
->withChild
(new Node('isbn', '978-0000000000'))
->withChild
(new Node('title', 'Fluent XML with the XP Framework'))
);
?>



5.7.10-RELEASE RC2

at 2010-06-18 in ReleasesAnnouncements by friebe

This second release candidate includes support for unbuffered queries (RFC #0203) and fixes to the JSON de-serialization mechanism for numbers larger than LONG_MAX (or smaller than LONG_MIN).

To give this release a test run, install it as always:

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

Enjoy:-)



Web runner refactoring release

at 2010-06-10 in AnnouncementsReleases by friebe

The web runner infrastructure was refactored for better testability.

These refactorings included changes to the URL mapping. Consider the following (abbreviated) example:

  [app]
map.service="/service"
map.all="/"

...
Before a request to the URL /services (note the "s" at the end) would have also invoked the "service" application, while now this will only apply to /service, /service/json, /service/of/the/day but not /services or /servicebus.

To give this release a test run, install it as always:
  $ cd ~/xp
$ wget http://releases.xp-framework.net/setup/5.7.10RC1 -O - | php -- -d ~/bin/

Enjoy:-)



RFC #0203: Unbuffered queries

at 2010-06-04 in DatabasesRFCs by friebe

Scope of Change
Unbuffered queries will be supported by a dedicated API. Instead of using rdbms.DBConnection::query() (or any of the insert, update, delete or select methods), the result-only rdbms.DBConnection::open() method will support unbuffered queries.

Rationale
Incremental row processing to save memory.

Read the full RFC here



5.7.9-RELEASE: Class loader refactoring

at 2010-05-05 in AnnouncementsReleases by friebe

The XP group is proud to announce the availabality of XP Framework, release 5.7.9. The highlights in this release include the class loader API refactoring, introducing new distinguishable exceptions for errors during class loading, STOMP support and the implementation of RFC #0201 and thus an easy way to "patch" the XP Framework.

http://releases.xp-framework.net/xml/release?5.7.9



RFC #0201: XP Overlays

at 2010-04-25 in RFCs by friebe

Scope of Change
Path files will support prepending elements to the class path via special syntax.

Rationale
Sometimes it's necessary to overwrite certain parts of the XP framework's classes (the ones distributed in xp-rt xar files). One of the usecases is to keep using deprecated APIs in conjunction with a release in which they were removed, but being able to use new APIs provided with this release in other parts of the program. Another example is the ability to production- test new functionality (e.g., from SVN head, or even from the experiments in xp forge) together with the latest release.

Read the full RFC here



RFC #0200: XML API Rework

at 2010-04-11 in RFCs by friebe

Scope of Change
The XML API will be extended to fully support markup-style XML documents.

Rationale
At the moment, certain information will be lost when loading and then emitting an XML tree:

Read the full RFC here



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