Move to GitHub

Just notifying all interested parties, that my “Application Server in PHP” and “MySQL Query Builder” projects are moved to GitHub.

Their new homes are:

Application Server in PHP
MySQL Query Builder

p.s. newest release of MySQL Query Builder has support for subqueries in . . . → Read More: Move to GitHub

Spread constants

Playing with Spread Toolkit. Absolutely love their constant-names

UNRELIABLE_MESS
RELIABLE_MESS
FIFO_MESS
CAUSAL_MESS
AGREED_MESS
SAFE_MESS
REGULAR_MESS

p.s. freshly released php binding . . . → Read More: Spread constants

GSoC is about to start

Google announced the list of students, they will be sponsoring this summer to work on open-source projects. My congratulations to everyone, who succeeded. . . . → Read More: GSoC is about to start

Syck 0.9.2

I’ve just released syck for php 0.9.2 (a parser and emitter of YAML documents. If you don’t know anything about YAML and why it is good: check my previous posts on the subject). A lot of new and tasty features

First, and most important: a lot of stability and consistency fixes (previous release wasn’t properly . . . → Read More: Syck 0.9.2

syck vs. spyc (benchmarking)

Regarding syck vs. spyc debate which seems to appear again and again:

al_n @ [link]:

I re tested syck and it does make a BIG difference.
I tested with a yaml file of about 200,000 lines which I killed after an hour while using spyc. The same file was loaded with syck in about 5 minutes!!!

p.s. I hope to . . . → Read More: syck vs. spyc (benchmarking)

YAML, php, DevZone

Vikram Vaswani wrote an article for Zend Developer Zone about the Syck extension in PECL. That is, actually, a very nice introduction to YAML in PHP and I encourage everyone to look at it.

On the other hand, it reminds me, that I should release the . . . → Read More: YAML, php, DevZone

PDO gets official support from MySQL AB

Lukas Kahwe Smith just posted the following to php.internals mailing list:

Ok, it seems that MySQL AB is finally committing to fix up PDO_MySQL and to generally accept the fact that PDO is the future. Of course mysqli will also be actively maintained. But they will also make mysqlnd play nicely with PDO etc.

They have a budget . . . → Read More: PDO gets official support from MySQL AB

Syck for PHP, 0.9.1 (aka “beta2″)

I posted an update to PECL package of Syck.

Changelog:

fixed handling of invalid merge-references [reported by Sascha Kettler]
fixed tsrm-incompatibility introduced in 0.9
added support for timestamps in syck_load (thanks to Derick for a hint)
added support for DateTime in syck_dump
fixed dumping of associative-arrays

Update is highly recommended . . . → Read More: Syck for PHP, 0.9.1 (aka “beta2″)

DateTime vs numeric timezone

Is it possible to create DateTime object if I have some date string, and a numeric timezone value?

Something like:

$timestamp = ’2007-07-07 07:07:07′;
$timezone = ‘+0300′;

$obj = new DateTime($timestamp, new DateTimeZone(????));

I need this, to add proper support for YAML-timestamps in my syck extension.

In YAML, timestamps have several representations:

canonical: 2001-12-15T02:59:43.1Z
valid iso8601: . . . → Read More: DateTime vs numeric timezone

Syck for PHP goes Beta (in PECL)

Here it is: new and shiny PECL package of Syck

This is an extension for reading and writing YAML-files.

YAMLâ„¢ (rhymes with “camel”) is a straightforward machine parsable data serialization format designed for human readability and interaction with scripting languages. YAML is optimized for data serialization, configuration settings, log files, Internet messaging and filtering.

YAML is extensively used by . . . → Read More: Syck for PHP goes Beta (in PECL)