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

Dejan Angelov:
Experimental upgrading to Laravel 5 How I did it
November 24, 2014 @ 12:57:18

In a recent post Dejan Angelov shares the process he went through to upgrade an application to Laravel 5, yet to be released (at least at the time of this post).

Over the past weeks, Taylor introduced many great changes and new features that we'll be able to use in the new version, firstly numbered 4.3 and later 5. According to the framework's six month release cycle, it should had hit stable late this month or in early December. Because of that, I started to play with it and to apply the changes to make my application use it.

However, a couple of days ago, Taylor wrote a blog post on the Laravel's blog saying that because of the importance of this release, the release date will be postponed to January. Considering this, everything you'll read here MUST NOT be applied to applications that are currently in production.

He starts with some of the major differences, including changes in the dependencies required and the removal of the "start.php" file for bootstrapping the application. He talks about the changes in startup and shutdown as well as autoloading. He looks at directory structure changes and the addition of a base namespace. He then gets into how to fix these issues, one at a time, including code and configuration changes that need to be made. This includes updates to the facades, changes for middleware, environment configuration, pagination and routing. There's lots of other changes happening with Laravel 5, so be sure to check out the full post if you're interested in the steps you might need to take when this latest version is released.

0 comments voice your opinion now!
upgrade laravel5 framework change configuration code fix

Link: http://angelovdejan.me/2014/11/22/experimental-upgrading-to-laravel-5-how-i-did-it.html

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


Community Events





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


mvc symfony introduction package community version framework tool update composer voicesoftheelephpant security laravel library release series podcast language opinion interview

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