PHP 5.3.3. released

The PHP 5.3.3 was released a few days ago.

The PHP core team has announced the 5.3.3 availability. This release has focused on improve security and stability issues with more than 100 fixed bugs, most of them related to security issues.

Previous versions incompatibility
For previous version than 5.3.3 there is a big incompatibility. The methods with the same name as the class name used by the namespace are not anymore considered as the class constructor. This change does not affect the classes those do not use namespaces.

1
2
3
4
5
6
7
8
9
10
<?php
namespace Foo;
class Bar
{
    public function Bar()
    {
        // Act as constructor in PHP 5.3.0-5.3.2
        // Act as a regular method in PHP 5.3.3
    }
}

This change does not have impact in migrations from PHP 5.2.x, due to namespaces were introduced from PHP 5.3.0.

share it...Share on FacebookTweet about this on TwitterShare on LinkedInShare on Google+Pin on PinterestDigg thisEmail this to someone

2 Comments

  1. Hi there!! I’ve installed Fedora 12 in a client PC and Fedora 13 in my personal PC and I’ve figured out that php 5.3.3 is really incompatible with previous versions because the already developed website in my local pc stopped working 🙁 When I log in the website is not redirecting to the user home, and the session is lost. 🙁 There are a lot of wrong behaviors. I really want to downgrade to a previous version like php 5.2.9 but I don’t know how! Could you help me with this? Thanks!!

    Reply

Leave a Comment.