php

Proposal for fixing PHP namespacing in Drupal 8

Collisions with non-Drupal PHP code

In theory, although I have never see this happen, a PHP library that Drupal is utilising could declare a function or class that is already declared in Drupal. This would cause PHP to abort.

PHP 5.3 has a solution - namespaces (http://php.net/manual/en/language.namespaces.php).

Drupal 8 should require PHP 5.3 - it was released 2009-06-30. Drupal 7 requires 5.2 and may just get released this year. When will D8 be released? Probably 2012 or 2013 - by then PHP 5.3 will be 3 or 4 years old.

Syndicate content