More Related Content Similar to PHP 5.4 - So what?! Similar to PHP 5.4 - So what?! (20) PHP 5.4 - So what?!8. The break and continue statements
no longer accept variable
arguments.
9. In the date and time extension, the
timezone can no longer be set using
the TZ environment variable.
10. Non-numeric string offsets - e.g.
$a['foo'] where $a is a string - now
return false on isset() and true on
empty(), and produce a warning if
you try to use them.
19. <?= is now always available,
regardless of the short_open_tag ini
option.
21. Session Upload Progress
• Session extension can now track the upload
progress of files.
• ini settings
– session.upload_progress.enabled = true
– session.upload_progress.cleanup = true
– session.upload_progress.prefix = "upload_progress_ "
– session.upload_progress.name =
"PHP_SESSION_UPLOAD_PROGRESS "
– session.upload_progress.freq = "1%"
– session.upload_progress.min-freq = 1
22. Built-in web server in CLI mode
• php -S localhost:8000 -t foo/
• C:UsersfuhrDownloadsphp-5.4.0-Win32-
VC9-x86>.php -c php.ini-development -S
localhost:8181 -t
Usersfuhrworkspacephp54src
24. Stack Frame Limit
• array debug_backtrace ([ int $options =
DEBUG_BACKTRACE_PROVIDE_OBJECT [, int
$limit = 0 ]] )
• void debug_print_backtrace ([ int $options = 0
[, int $limit = 0 ]] )
30. SPL
• RegexIterator::getRegex()
• SplObjectStorage::getHash()
• DirectoryIterator::getExtension()
• SplDoublyLinkedList::serialize()
• SplDoublyLinkedList::unserialize()
• SplFileInfo::getExtension()
• SplFileObject::fputcsv()
• SplQueue::serialize()
• SplQueue::unserialize()
• SplStack::serialize()
• SplStack::unserialize()
• SplTempFileObject::fputcsv()