News Feed
Sections




News Archive
feed this:

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

PHP.net:
PHP 5.4.32 Released
August 22, 2014 @ 12:48:52

The PHP development team has officially announced the release of the latest version in the PHP 5.4.x series that fixes several security issues: PHP 5.4.32.

The PHP development team announces the immediate availability of PHP 5.4.32. 16 bugs were fixed in this release, including the following security-related issues: CVE-2014-2497, CVE-2014-3538, CVE-2014-3587, CVE-2014-3597, CVE-2014-4670, CVE-2014-4698, CVE-2014-5120. All PHP 5.4 users are encouraged to upgrade to this version.

You can view the full list of changes and what part of the language they effect in the changelog. To download this latest version, you can get the source from the downloads page or windows.php.net for Windows users.

0 comments voice your opinion now!
release language php54 security bugfix upgrade

Link: http://php.net/index.php#id2014-08-21-1

SitePoint PHP Blog:
Legacy Code is a Cancer
August 04, 2014 @ 11:08:45

In the latest post to the SitePoint PHP blog Bruno Skvorc proposes the idea that "legacy code is a cancer" that can influence decisions and technology choices that shy away from the new and possibly more functional alternatives.

This might come out controversial, but I firmly believe there is no room for legacy code in modern systems. Allow me to elaborate before you sharpen your pitchfork and light your torch. What I mean by that is: there should be absolutely zero reason to keep implementing the functions you're adding to the new version retroactively into the old version, just because some people are still using it, even if the people using it are a vast majority.

He talks about the "support everything for as long as we can" ideal and how it can come back to bite you in the end. He suggests that, at some point, the v1 users have to "be discarded" and dropped for the upgraded version of the application. He talks about failure potentially brining around success and compares applications versus libraries and components and the upgrade path for each. He ends the post with a suggested upgrade path to move the system itself away from legacy support and into the new, latest version.

0 comments voice your opinion now!
legacy code cancer maintenance upgrade support users

Link: http://www.sitepoint.com/legacy-code-cancer/

Hasin Hayder:
Upgrading PHP to 5.5 in a CentOS 6 server with Vesta CP
June 04, 2014 @ 09:22:31

In his latest post Hasin Hayder shares some instructions for upgrading CentOS to PHP 5.5 (a server with Vesta CP) via the Remi repository.

Vesta CP comes with PHP 5.4 by default. If you want to upgrade it to 5.5, follow these steps.

He's broken it up into five simple steps:

  • Stop Apache and Remove current PHP
  • Add remi repository
  • Enable Remi Repository (for yum)
  • Install PHP 5.5
  • Cleanup, linking and finishing

These instructions aren't really just for the CentOS install either. They could be used for any platform that makes use of "yum" to work with installed packages (with a few tweaks here and there).

0 comments voice your opinion now!
upgrade php55 centos vestacp yum remi

Link: http://hasin.me/2014/06/03/upgrading-php-to-5-5-in-a-centos-6-server-with-vesta-cp/

PHP.net:
PHP 5.5.12 release
May 01, 2014 @ 09:09:43

The PHP development group has officially released the latest version of the language in the 5.5.x series - PHP 5.5.12:

The PHP Development Team announces the immediate availability of PHP 5.5.12. This release fixes several bugs against PHP 5.5.11, as well as CVE-2014-0185 regarding PHP-FPM. All PHP users are encouraged to upgrade to this new version.

Among the bugs fixed in this release are things around cURL support, DateTime functionality, Fileinfo and Json handling. The PHP-FPM issue (CVE-2014-0185) relates to a possible issue in the FPM functionality that would allow for possible privilege escalation due to insecure default configuration. It is highly recommended that PHP-FPM users update to this latest version immediately. As always you can download this latest version from the main download page or for Windows users, windows.php.net.

0 comments voice your opinion now!
language release php5512 cve phpfpm bugfix upgrade

Link: http://www.php.net/archive/2014.php#id2014-04-30-1

Evert Pot:
MySQL 5.6 BOOL behavior when using PDO and prepared statements
December 05, 2013 @ 10:37:42

Evert Pot was seeing some weird issues with his MySQL BOOL usage via PDO when he upgraded to one of the latest versions (5.6). Thankfully, he's shared his solution to the problem as well as the symptoms he was seeing when it was causing problems.

I recently updated my workstation to run MySQL 5.6.13. It didn't take very long for things to start breaking, and since I couldn't find any other information about this on the web, I figured this may be useful to someone else. The main error that started popping up was: "Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'my_bool' at row 1' in test.php" This exception happens under the condition that you use PDO, prepared statements and booleans.

He includes a small sample script to reproduce the issue and points out the issue - the default casting of prepared values to strings in prepared statements with PDO bound parameters. He shows two "relatively easy solutions" to the problem - either using integers instead of the true/false PHP boolean or specifying a type with the bindValue call.

0 comments voice your opinion now!
mysql upgrade boolean field pdo prepared statement

Link: http://evertpot.com/mysql-bool-behavior-and-php/

PHP.net:
PHP 5.4.22 Released
November 15, 2013 @ 10:53:07

PHP.net has officially announced the release of PHP 5.4.22, the latest maintenance release for the PHP 5.4.x series:

The PHP development team announces the immediate availability of PHP 5.4.22. About 10 bugs were fixed. All PHP 5.4 users are encouraged to upgrade to this version.

Fixes in this release include:

  • Improved performance of array_merge() and func_get_args()
  • Whitespace handling in json_decode
  • OPCache increase for the max_accelerated_files
  • PDO fix when the constructor throws an exception

You can download this release from the usual sources - the main downloads page or windows.php.net.

0 comments voice your opinion now!
language release bugfix upgrade

Link: http://php.net/index.php#id2013-11-14-3

PHP.net:
PHP 5.5.6 is now available
November 14, 2013 @ 10:07:29

As announced on the main PHP.net site today, the latest version in the PHP 5.5.x series has been made available for download - PHP 5.5.6:

The PHP development team announces the immediate availability of PHP 5.5.6. This release fixes some bugs against PHP 5.5.5, and adds some performance improvements.

Bugfixes in this latest release are updates to:

  • the built-in CLI server
  • the DateTime extension
  • Updates to the filter extension
  • Several OPCache-related fixes
  • ...and more

As always, you can grab this latest download from the main downloads page or from windows.php.net for the Windows users out there.

0 comments voice your opinion now!
language release bugfix upgrade

Link: http://php.net/archive/2013.php#id2013-11-14-1

PHP.net:
PHP 5.4.21 Released
October 18, 2013 @ 09:46:49

Via PHP.net today there's an announcement about the latest release in the PHP 5.4.x series - PHP 5.4.21:

The PHP development team announces the immediate availability of PHP 5.4.21. About 10 bugs were fixed. All PHP 5.4 users are encouraged to upgrade to this version.

As always, you can download the latest source from the main downloads page or the Windows binaries from windows.php.net. Bug fixes in this release include updates to the CLI server, Datetime, DBA extension, IMAP and Filtering.

0 comments voice your opinion now!
language release bugfix upgrade

Link: http://php.net/index.php#id2013-10-17-1

PHP.net:
PHP 5.4.20 Released
September 20, 2013 @ 09:33:13

The PHP development group has officially announced the latest release in the PHP 5.4.x series - PHP 5.4.20. It's mostly a bugfix release, but users are encouraged to upgrade.

Changes in this new release include fixes for:

  • A segfault in the CLI Apache SAPI
  • Segfault on using traits with get_class_methods
  • The use of maxint in array_sum
  • A failure on build with DTrace
  • An issue with "make install" in CGI mode

As always, you can download the latest version from the downloads page or, for the Windows users out there, windows.php.net.

0 comments voice your opinion now!
language release bugfix upgrade windows

Link: http://php.net/index.php#id2013-09-19-2

Simon Champion:
PHP Upgrade Broke My Data Importer
June 27, 2013 @ 12:13:45

In his latest post Simon Champion recounts some of the issues he had when upgrading to PHP 5.4, what's usually a smooth transition from PHP 5.3. His specific problem came in a difference between the previous mysql_query call and the more-correct PDO usage.

Our office is in the thoes of a large-scale upgrade of the servers in our data center. The new version of Debian (version 7, or "Wheezy") has been officially released, having been in beta for the last few millenia, and our Ops team are slowly installing it across all our servers. This is great news, as it means we get to upgrade to PHP 5.4. Woohoo! New shininess. [...] We were ready. The upgrade should have been a breeze. But it wasn't.

He talks about his process of digging through the code trying to figure out why a call to import a CSV file into MySQL was failing. Their Data Importer component started failing with an error from MySQL about the "LOAD INFILE" not being allowed for use. He shares a "work around" that's not ideal (using exec) that manually imports the file into the database. He does point out that it could be something Debian-specific as they don't upgrade the version, just apply security patches retroactively.

We're making an effort to stick to modern PHP coding standards, so we're using PDO throughout, which makes is all the more galling. [...] Given that we do have a work-around now and everything is back up and running, I'm going to have to let this one drop; I don't have the time to try chasing it any more. But I hope this blog post will prove useful to anyone else having the same issue.
0 comments voice your opinion now!
upgrade data importer mysql infile load pdo mysqlquery

Link: http://spudley.com/blog/php-upgrade-broke-my-data-importer


Community Events





Don't see your event here?
Let us know!


release code series introduction library language interview list symfony podcast laravel developer unittest configure threedevsandamaybe community application api wordpress install

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