 | News Feed |
Sections
Community Events
|
| feed this: |  |
PHP.net: PHP 5.2.6 Released
posted Friday May 02, 2008 @ 07:51:13
voice your opinion now!
BY CHRIS CORNUTT
The PHP development team has released the latest version in the PHP 5.2.x series today - version 5.2.6:
This release focuses on improving the stability ofthe PHP 5.2.x branch with over 120 bug fixes, several of which are security related.All users of PHP are encouraged to upgrade to this release. Further details about the PHP 5.2.6 release can be found in the release announcement for 5.2.6, the full list of changes is available in the ChangeLog for PHP 5.
Security updates include prevention of a buffer overflow in FastCGI mode, an integer overflow in printf, correction for a safe_mode bypass method in cURL and the bundling of PCRE 7.6 to update the regular expression functionality of the language.
You can grab this latest release from the downloads page on PHP.net (or your favorite mirror) - both the source and the Windows binaries.
tagged with: release php5 series security overflow pcre safemode download
Shantanu Goel's Blog: Migrating From PHP4 To PHP5 Solving WP-Cache (and maybe other) Issues
posted Thursday May 01, 2008 @ 14:23:33
voice your opinion now!
BY CHRIS CORNUTT
If you're a WordPress user and are in the process of an upgrade from PHP4 to PHP5, you might be having a few issues. One problem can be cause by the wp-cache component and this recent post from Shantanu Goel.
The issues range from weird page layouts, to some controls not working, to some errors popping up here and there, and probably your blog not even displaying. This occurs because even though WordPress is PHP5 compatible, some of the plugins you are using might not be.
In his case, it was the wp-cache plugin that was causing the problems. Permissions weren't right to allow it to do its job. This resulted in problems rendering content and with the site acting as it normally would. His solution involved disabling and reenabling the plugin after deleting the cache and lock file the plugin uses.
tagged with: wordpress php4 php5 issue wpcache plugin
Marco Tabini's Blog: 5 PHP 5 features you can't afford to ignore
posted Tuesday April 29, 2008 @ 17:06:45
voice your opinion now!
BY CHRIS CORNUTT
Marco Tabini has posted his list of what he considers five features of PHP5 that you "can't afford to ignore" when doing your development work:
Despite the fact that you may not have a choice in the matter, upgrading comes with a number of bonus new features that can help you write better code and gain access to new functionality that required a fair amount of hacking in previous version. Here's a quick list of 5 personal favourites.
The feature to make his list are SimpleXML, JSON/SOAP, PDO, the Standard PHP Library and SQLite. Each has their own bonus feature(s) included too for a little extra incentive to check them out.
tagged with: php5 feature list ignore simplexml json soap pdo spl sqlite
Mike Lively's Blog: Late Static Binding (LSB) forward_static_call()
posted Wednesday April 09, 2008 @ 11:24:19
voice your opinion now!
BY CHRIS CORNUTT
On his blog, Mike Lively has posted a look at some of the work he's been doing on patches for the late static binding functionality to be included in PHP, including an example of the updates in action.
This weekend I wrapped up a few small tests and sent the patch in and it was subsequently pushed to php 5.3 and php 6.0. Now, this is not at all the way I wanted things to work, in all honesty I think the patch is pretty hokey but unfortunately nobody really spoke up in support of the changes I wanted to make to parent:: in regards to LSB.
His example shows how to override a static method and push that new method's execution to the parent class (in two ways - safe using forward_static_call and the not so safe calling itself with a parent:: override).
tagged with: latestaticbinding php5 php6 patch safe unsafe parent forwardstaticcall
DevShed: Defining a Custom Function for File Uploaders with PHP 5
posted Wednesday April 09, 2008 @ 09:48:48
voice your opinion now!
BY CHRIS CORNUTT
On DevShed today, there's a new article in their series looking at creating custom functions to handle file uploads in your application:
I'm going to show you how to wrap the file uploading application built in the previous article of the series into a single custom PHP function. This will turn it into a more maintainable and reusable piece of code.
They review the source built in previous parts of the series and show how to update it with a uploadFile() function that takes all of the logic from before (exceptions and all) and wraps it up into a nice little package that can be reused anywhere.
tagged with: php5 file upload custom function tutorial
|