News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

SitePoint PHP Blog:
Dealing with Dependencies
0 comments :: posted Monday February 04, 2008 @ 12:09:00
voice your opinion now!

On the SitePoint PHP blog today, Troels Knak-Nielsen has written up an article that talks about dependencies in your applications - those little interconnections your code relies on to do more with less.

In lack of better words, I'll call this compositional programming style. It's a style which is usually more prevalent with experienced programmers. [...] There is, however, a dark side to composition - dependencies.

He starts with a definition to bring everyone up to a level field then moves on to how their used (through a "global symbol" or directly passed in) and how they can "leak" if you're not careful.

To help protect you and your code from any kind of damage down the line, Troels suggests making a container to keep objects where they need to be. He even includes an example with namespace support to make things even easier down the road.

tagged with: dependencies tutorial compositional programming container leak namespace


Christopher Jones' Blog:
Temporary LOBS in PHP's OCI8 Extension. Instant Client.
0 comments :: posted Monday January 21, 2008 @ 12:05:00
voice your opinion now!

Christopher Jones talks today on his blog about a bug he's just corrected and integrated into the release of the Oracle Instant Client that lets PHP correctly take advantage of the temporary LOBS functionality.

When PHP is done with the temporary LOB, it needs to tell Oracle to destroy it. If this isn't done, then the temporary LOB will hang around using DB space until the connection is closed. I just merged a fix worked on by Krishna Mohan and myself for bug 43497.

Example code is included showing two instances of its use - a normal use that frees the memory correctly and the other showing how to create the temporary lob to hold the data as needed.

tagged with: temporary lob patch oci8 extension instant client memory leak


PEAR mysql package ajax zend release developer code zendframework security conference PHP5 book cakephp job framework releases database pecl application

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework