 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Brian Swan's Blog: SQL Server Driver for PHP Connection Options Snapshot Isolation
by Chris Cornutt September 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.
voice your opinion now!
sqlserver driver isolation snapshot tutorial
Johannes Schluter's Blog: Features in PHP trunk Array dereferencing
by Chris Cornutt August 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.
voice your opinion now!
array dereference trunk patch snapshot
Daniel Cousineau's Blog: PHP 5.3 and Closures
by Chris Cornutt July 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.
voice your opinion now!
closure php5 snapshot namespace win32
Padraic Brady's Blog: PHPSpec Reporting Gets A Needed Boost
by Chris Cornutt November 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.
voice your opinion now!
phpspec reporting stable release spec snapshot phpspec reporting stable release spec snapshot
Edin Kadribasic's Blog: New Snapshot Capabilities
by Chris Cornutt April 30, 2007 @ 09:21:00
In an effort to provide as much information and code about the PHP builds as possible, Edin Kadribasic (with some help from John Mertic) has created some new abilities for the snapshot build process:
Up till now we provided only the debug pack for the latest snap but several people have asked if it was possible to make one available for each snap that was provided on the site. The PECL bundle and the installer were not provided at all (although pecl4win site provides a build of PECL extensions).
As a result, he's generated and posted these packages for the latest PHP releases:
He also makes a request to other PHP-ers out there for suggestions of how to include these builds on the Downloads page right alongside the normal PHP downloads.
voice your opinion now!
snapshot build pack debug pecl download snapshot build pack debug pecl download
|
Community Events
Don't see your event here? Let us know!
|