Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Brian Swan's Blog:
SQL Server Driver for PHP Connection Options: Snapshot Isolation
Sep 15, 2010 @ 12:21:54

Following up on his previous post about transaction-level isolation with the SQL Server driver, Brian Swan has this new look at an additional option - snapshot isolation.

I’ll cover the snapshot isolation level in this post, and (as in my earlier post) I'll look at what happens at the database level when using a particular isolation level (rather than concentrating on PHP data access code).

He introduces snapshots for those not familiar with them - the idea of making a set of data available to other users without having to lock the database in a certain state (also called row versioning). He shows how to turn on the isolation functionality and set it to work with a transaction. With the snapshot created, he shows the SQL needed to fetch the snapshot of data and, of course, how to read it in PHP with the help of the SQL Server driver.

tagged: sqlserver driver isolation snapshot tutorial

Link:

Johannes Schluter's Blog:
Features in PHP trunk: Array dereferencing
Aug 02, 2010 @ 10:41:09

In a recent post to his blog Johannes Schluter talks about a new feature that's just been added to the PHP project's trunk - array dereferencing.

Now you might wonder what this typical short entry means. when doing OO-style PHP you might make use of a syntax feature which one might call "object dereferencing". [...] So one can chain method calls or property access. Now for a long time people requested the same thing for array offset access. This was often rejected due to uncertainties about memory issues, as we don't like memory leaks. But after proper evaluation Felipe committed the patch.

This new feature allows you to return an array from a method and reference it in a new way outside the call - foo()[2] - where the array is like "array(1,2,3)". Johannes includes a few other examples, including how to set the information in an array (using referneces) inside a method.

tagged: array dereference trunk patch snapshot

Link:

Daniel Cousineau's Blog:
PHP 5.3 and Closures
Jul 21, 2008 @ 16:02:46

Daniel Cousineau has posted briefly about a relatively new addition to the feature set of the upcoming PHP 5.3 release - closures.

I'm fairly excited because as of only a week or so ago I found the closures rfc, and not only did I find that the rfc has a working patch, apparently it's already in PHP 5.3. You see, apparently it's not good enough that we get name spaces and late static binding, oh no, we get closures too!

He downloaded a snapshot and gave it a try - code examples are included with his post.

tagged: closure php5 snapshot namespace win32

Link:

Johannes Schluter's Blog:
Easter - Don't just look for eggs but also for bugs
Mar 21, 2008 @ 11:29:41

Johannes Schluter recommends that, this Easter, you not only enjoy the holiday and hunt some eggs but also do a little bug hunting at the same time:

Around Easter there are different holidays, in Germany for instance Friday and Monday are holidays. This gives you some time without annoying customers and colleagues asking you to do stuff. So what could you PHP geeks do when getting bored? - A good idea is to test PHP development snapshots.

The PHP group has put out the second release candidate for PHP 5.2.6 and is looking for a few good testers to help them find whatever issues may lie deep in its code. Accoring to Johannes, though, not much should be broken this time. It's PHP 5.3 everyone should really watch out for...

So grab a snapshot and get testing!

tagged: egg hunt bug snapshot php5 easter releasecandidate

Link:

Antony Dovgal's Blog:
5.3 snapshots are available
Feb 28, 2008 @ 09:33:00

Antony Dovgal points out that Derick Rethans has added the snapshots for PHP 5.3 to the snaps.php.net website.

Short list of what you can find there: Namespaces, __callstatic() magic method, accessing static members through $foo::myFunc(), fully rewritten ini-parser with .htaccess-like user defined ini files for CGI/FastCGI, improved OpenSSL extension, PCRE 7.4, and other fixes and improvements that will never get into 5_2 branch.

He recommends teching throughly before the major release to find all of the bug before the general public does. Builds for both source and Windows systems have been posted.

tagged: php5 snapshot snaps namespace latestaticbinding static pcre openssl

Link:

Padraic Brady's Blog:
PHPSpec Reporting Gets A Needed Boost
Nov 14, 2007 @ 14:25:00

Padraic Brady has made a few updates to the PHPSpec software he's developed in preparation for the first stable release - additions to the reporting functionality to give as much information as possible.

PHPSpec is closing in on its first stable release, so the time had finally come to spruce up its output! No more the simple reporting of failed specs - now you get a few more details in a readable format, exceptions and errors even come with traces. In addition, I've implemented specdoc output as an option (using "-s") so you can get a list of specs in their plain text form.

He's also included an example of the new output in the post as well, showing the results of both successful and errored responses. You can check out the actual spec files on the googlecode repository for the project and get more details on the project itself (including the latest development snapshots) on the project's website.

tagged: phpspec reporting stable release spec snapshot phpspec reporting stable release spec snapshot

Link:

Padraic Brady's Blog:
PHPSpec Reporting Gets A Needed Boost
Nov 14, 2007 @ 14:25:00

Padraic Brady has made a few updates to the PHPSpec software he's developed in preparation for the first stable release - additions to the reporting functionality to give as much information as possible.

PHPSpec is closing in on its first stable release, so the time had finally come to spruce up its output! No more the simple reporting of failed specs - now you get a few more details in a readable format, exceptions and errors even come with traces. In addition, I've implemented specdoc output as an option (using "-s") so you can get a list of specs in their plain text form.

He's also included an example of the new output in the post as well, showing the results of both successful and errored responses. You can check out the actual spec files on the googlecode repository for the project and get more details on the project itself (including the latest development snapshots) on the project's website.

tagged: phpspec reporting stable release spec snapshot phpspec reporting stable release spec snapshot

Link:

Antony Dovgal's Blog:
5.3 snapshots are avilable
Oct 16, 2007 @ 10:24:00

Antony Dovgal has pointed out the updated packages that have been released to the snaps.php.net website by Derick Rethans.

He also includes a list of things that will be included in this upcoming release like:

  • Namespaces
  • Late static binding
  • Accessing static members through $foo::myFunc()
  • Improved OpenSSL extension
  • PCRE 7.4

Grab your copy of these latest snapshots from the snaps website and get to testing them on your system to see what happens before the release.

tagged: snapshot php5 release snapsphpnet snapshot php5 release snapsphpnet

Link:

Antony Dovgal's Blog:
5.3 snapshots are avilable
Oct 16, 2007 @ 10:24:00

Antony Dovgal has pointed out the updated packages that have been released to the snaps.php.net website by Derick Rethans.

He also includes a list of things that will be included in this upcoming release like:

  • Namespaces
  • Late static binding
  • Accessing static members through $foo::myFunc()
  • Improved OpenSSL extension
  • PCRE 7.4

Grab your copy of these latest snapshots from the snaps website and get to testing them on your system to see what happens before the release.

tagged: snapshot php5 release snapsphpnet snapshot php5 release snapsphpnet

Link:

DynamicWebPages.de:
Windows Snapshots for PHP 5.3
Oct 15, 2007 @ 12:03:00

DynamicWebPages.de points out that the Windows binary builds have been posted for the in-development version of PHP, version 5.3:

The sources for 5.3 are now on the snaps.php.net page as well as the Windows Binaries for testing the new PHP version. Besides the addition of name spaces, Late Static Binding and dynamic-static calls, this version also has mysqlnd a new native PHP driver for MySQL (as replacement to libmysql). This not only performs better than libmysql, but also is more resource-saving and can also be used more simply, since he does not have any external dependence.

You can download the snapshots and binaries from the snaps.php.net website.

tagged: windows snapshot binary php5 source download windows snapshot binary php5 source download

Link: