
Harun Yayli came across a slight problem in his development using the oci_bind_by_name function for one of his queries:
If you think that the maxlength parameter in the documentation of oci_bind_by_name is optional, see this example and think again.
His sample code gave him a "can bind a LONG value only for insert into a LONG column..." error from his Oracle database. His fix was to add that length parameter (his max column length) and all was well. One of his comments (from cj) helps to explain things a bit more:
It makes senses that a length would be required because when the oci_bind_by_name() call is made, there is no data in $$key (a.k.a. $a, $b or $c). Without a length passed, PHP tells the DB to expect a single byte string.
In a new post to his blog today, Ken Guest talks about the split that's been made in a PEAR package for calculating the dates of holidays (Date_Holidays) for localization reasons.
We decided that this one package should be split into subpackages: one subpackage per region/country. Some advantages of this approach are that each driver / filter / subpackage gets it's own stability and version number - we wouldn't have to keep increasing the version number of Date_Holidays each time a new driver is added or when an existing driver gets a significant number of fixes.
To replace your current version of the package (with all of the regions built in) with a new version that still contains all versions, uninstall the Date_Holidays and grab the "Date_Holidays#all" package. Otherwise, you can check out the PEAR page for the main package and see the subpackage list if you only need one for your area.
PHP developers working on Debian have one more reason to be happy with their choice of linux distributions - as Derick Reathans notes, XDebug has been added as an apt-getable package to the Debian systems.
Since a few days, there is a new package in Debian: php5-xdebug. After a few years of talking licenses, due to the help of Martin Meredith and Francois Marier Xdebug can finally be installed with apt-get.
XDebug is a debugging and profiling tool that adds additional information (more than just the usual "error on line..." sort of thing) to the output of your PHP scripts. It also adds more complex functionality like profiling and code coverage reports run on your applications.
The Internet Super Hero blog has announced the release of the latest alpha version of the mysql native driver for PDO - version 1.0.2-alpha (PDO_MYSQLND):
I am glad to announce the availability of the first alpha version of PDO_MYSQLND. PDO_MYSQLND is a PHP PDO driver for MySQL based on the MySQL native driver. PDO_MYSQLND 1.0.2-alpha is available for download on http://downloads.mysql.com/forge/pdo_mysqlnd_preview.
Updates include fixes for return values, patches for memory leaks, more code coverage and some "very promising results" running on a set of dedicated testing machines.
Chris Hartjes has posted about an event happening in Buenos Aries in December 2008 - CakeFest (#2):
The CakeFest site as been updated to announce pre-registration and other information about CakeFest #2, which will be held in Buenos Aries, Argentina at the beginning of December.
As of this post, the speakers haven't been selected (want to give a talk? The Call for Papers is still open through June 13th, 2008!) but you can find out more about the conference and the location on the conference website.