Friday, February 15, 2008

 

PHP on RE2C

Finally.

After years on working on RE2C to make it stable and ready to replace flex-based scanners, work on replacing PHP's flex-based scanner with a RE2C-based one has begun. Actually the work was started by Nuno Lopes and Scott MacVicar on 14th of February 2008, after I happily informed them that I considered RE2C ready for this task. I joined the work a day later, contributed a few ideas and helped with minor RE2C improvements. Today on the 15th of February we can already run make test and get over 98% PASS.

This encouraged me to spend a bit more time on RE2C and release 0.13.2, which you can download here (sorry but it is on sourceforge).

Thanks to Scott, we also have a subversion and Trac setup here, where you can follow our development. If you want to experiment yourself, or even help in our efforts, then you can checkout from svn://whisky.macvicar.net/php-re2c.

Blogged with Flock

Labels: ,


Wednesday, February 13, 2008

 

Whether to INI or not

So I've had enough of different PHP versions compiled in different modes (ZTS or DEGBUG) and having to change the php.ini file every now and then on my dev machines. So I added conditional INI support:

[IF (ZEND_DEBUG_BUILD == true) && (ZEND_THREAD_SAFE == true)]
zend_extension_debug_ts=/usr/src/${PHP_BRANCH}/xdebug.so
[ELSEIF ZEND_DEBUG_BUILD == true]
zend_extension_debug=/usr/src/${PHP_BRANCH}/xdebug.so
[ELSEIF ZEND_THREAD_SAFE == true]
zend_extension_ts=/usr/src/${PHP_BRANCH}/xdebug.so
[ELSE]
zend_extension=/usr/src/${PHP_BRANCH}/modules/xdebug.so
[ENDIF]

I used square brackets for the conditionals, as it seemed the way that comes with the least potential for INI handling. This is because right now we ignore section names anyway.

The patch can be downloaded here and allows for the following:
If you are interested in this stuff, you can either comment on this blog entry or follow the discussion on internals@php.net here.

Blogged with Flock

Labels:


Friday, February 1, 2008

 

We want PDO! Don't we?

So after the initial uproar on last week's attempts to put parts of PHP development under the terms of a CLA (read proposal here), a bunch of us actually spent some time in finding solutions for one way or the other. I don't want to bother you with more details on the why.

But, one thing for certain, we want PDO.

As the reasoning, this was discussed enough, so I'll jump directly to my ideas for a solution.
Sorry for not writing this earlier. So how does this idea sound? Check out answers to the mail here.

The Borg Queen to Kathryn Janeway: 'Do as all pragmatists do, compromise'. And it is no secret that I am a pragmatist.

Blogged with Flock

Labels:


This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]