DAvide Mendolia
http://davidemendolia.blogspot.com
dmendolia@php.net
lead developer APM (Alternative PHP
Monitor)
Contributor of php-benchmark
ZCE PHP5 - ZF, CMDEV
Working @ AUSY
Will Be Release...
30 June 2009
Features
Language
Extensions
No major compatibility break
NAmespace
Avoid things like :
Zend_Search_Lucene_Analysis_Analyzer_Common_Tex
t_CaseInsensitive
NAMESPACE
namespace blueplanet;
class Animal {
public function saveTheWorld($when) {
}
}
$animal = new blueplanetAnimal();
$animal->saveTheWorld('now');
// or
use blueplanet as caprica;
$animal = new capricaAnimal();
$animal->saveTheWorld('now');
Why ?
namespace foo::bar;
function baz(){ echo "func";}
namespace foo;
class bar {
public static function baz() {
echo "method";
}
}
foo::bar::baz();
Still the Problem with MaC
keyboard
Use Alt + Shift + /
Closures
Usage differ from javascript
kind of parameter passed at declaration time
$container = "bottle";
$closure = function() use ($container) {
echo $container;
}
$closure();
FunctOrs
class Functor {
public function __invoke() {
echo "functionoids";
}
}
$functor = new Functor;
$functor();
FileInfo
Based on libmagic
finfo_file() return the mime type based on the
structure of the file
Intl
Internationalization
Based on ICU library (International
Components for Unicode)
Originally planned for PHP 6
Intl - Classes
Locale : Identifier for a language, culture or regional
specific
Collator : string comparison locale-sensitive
NumberFormatter : format numbers, currencies and
percentages in locale-sensitive
IntDateFormatter : format date locale-sensitive
MessageFormatter : format string with time, date,
number or choice input
Phar
PHP Archive
Similar to Jar concept from Java
Allow the possibility to put an entire applications in one
file.
Extensions not required to execute the file
Facilitate the distribution
Can improve performance with a byte code cache system
Mysqlnd
Mysql Native Driver
ext/mysql, ext/mysqli, PDO_MYSQL
better performance fetching buffered result
0 comments
Post a comment