Language Selection

English French German Italian Portuguese Spanish

What’s new in PHP 5.3

Filed under

In my previous post I mentioned that PHP 5.3 will be released in early 2008 so I think it’s just in time to talk about the features of this version. It is started by this polling (in detail, in an ordered version) on the internal list. The big gun features are namespaces, late static binding and mysqlnd, but there are other interesting improvements, for example __callStatic, dynamic static calls. In this part of this series we are going to analyze namespaces in detail.


Namespace support in PHP was a long-felt want feature. In PHP the main motivation behind adding namespace support to the language was to solve the problem of long class names. If you develop a bigger library, you have to use long class names to avoid naming conflicts, for example look at this monster: Zend_Search_Lucene_Analysis_Analyzer_Common_Text_CaseInsensitive.

From the version 5.3 you can group your code into namespaces. Different namespaces can contains classes, functions, constants with the same name. Defining a namespace is very straightforward, you should use the namespace statement in the very beginning of the file, for example:

part 1: namespaces

part 2: late static binding

part 3: mysqlnd

part 4: __callStatic, OpenID support, user.ini, XSLT profiling and more

More in Tux Machines

Leftovers: Software

  • Kafka and syslog-ng
    First of all, let me introduce Kafka, a high-throughput distributed messaging system. It was originally developed by LinkedIn as a backbone of a website activity tracking infrastructure. Once open source, it was developed further under the umbrella of the Apache Foundation. In 2014 Confluent was founded to provide enterprise level support to Kafka users. Kafka is now used by major companies, including Netflix, Twitter and PayPal. There are now many more uses for Kafka: message queuing, log aggregation, stream processing or as a commit log.
  • Nmap 7.00 Has Been Released
    As you may know, Nmap is a command-line network exploration tool that supports ping scanning to determine the online hosts, port scanning techniques and TCP/IP fingerprinting for remote device identification.
  • Atom 1.2.4 Has Been Released
  • Vuze 5.7 (Open-Source BitTorrent Client) Has Been Released
  • Aptik 1.6.6 (Backup Software) Has Been Released
    As you may know, Aptik is an open-source application that enables the users to easily perform and restore backups of PPAs, aplications and packages in Ubuntu, Linux Mint, Elementary OS and other Ubuntu derivates.
  • Linphone 3.9.1 Brings Only Bug-Fixes
    As you may know, Linphone is an open-source VoIP service that allows the users to perform voice calls, video calls and text conversations with friends and other Linphone users.
  • Install QGifer 0.2.3 RC2 on Ubuntu
    Up to date packages are available via some third party PPA, so installing the software on Ubuntu 15.10 Wily Werewolf, Ubuntu 14.04 Trusty Tahr, Linux Mint 17.x, Elementary OS 0.3 Freya and other Ubuntu derivative systems is easy.
  • Wireshark 2.0 Has Been Released
    As you already know, Wireshark is an open-source protocol analyzer software, very used for monitoring the network traffic.
  • Kodi 16.0 Beta 2 “Jarvis” Brings Changes

today's howtos

Leftovers: Gaming

Krita 2.9