PHP 5.3.3 released

PHP 5.3.3 has been released and the major change was a backwards incompatibility change besides some bug fixes.

Backwards incompatible change:

  • Methods with the same name as the last element of a namespaced class name will no longer be treated as constructor. This change doesn’t affect non-namespaced classes.<?php
    namespace Foo;
    class Bar {
    public function Bar() {
    // treated as constructor in PHP 5.3.0-5.3.2
    // treated as regular method in PHP 5.3.3
    }
    }
    ?>

There is no impact on migration from 5.2.x because namespaces were only introduced in PHP 5.3.

More info at: http://www.php.net/index.php#id2010-07-22-2

Advertisements

About mcloide

Making things simpler, just check: http://www.mcloide.com View all posts by mcloide

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: