On December 3, 2015 PHP 7.0.0 was released, starting a new milestone for PHP web application development and also announcing the final years for PHP 5, the version developers have loved for over a decade. A decent knowledge of PHP 5 syntax and behavior is required to understand changes that were made in PHP7.
25. OTHER REMOVED/CHANGED ITEMS
๏ php.ini
๏ always_populate_raw_post_data
๏ asp_tags
๏ xsl.security_prefs
๏ $HTTP_RAW_POST_DATA -> php://input
๏ No # in INI files with parse_ini_file() or parse_ini_string() -> use ;
๏ func_get_arg() and func_get_args() return always current value of
arguments (no longer original values)
55. OTHER CHANGED FUNCTIONS
๏ File System
๏ tempnam() now emits a noFce when falling back to the system's temp
directory.
๏ JSON
๏ json_encode() now accepts a new opFon,
JSON_UNESCAPED_LINE_TERMINATORS, to disable the escaping of U+2028
and U+2029 characters when JSON_UNESCAPED_UNICODE is supplied.
๏ MulTbyte String
๏ mb_ereg() now rejects illegal byte sequences.
๏ mb_ereg_replace() now rejects illegal byte sequences.
๏ PDO
๏ PDO::lastInsertId() for PostgreSQL will now trigger an error when nextval
has not been called for the current session (the postgres connecFon).
77. S/MYSQL_/MYSQLI_
๏ On bash you could grep -r mysql_ * in your project’s root
directory to discover files sFll using old mysql elements
๏ Use your IDE and search for “mysql_”
๏ Most of the Fme you can just replace “mysql_” with “mysqli_”
86. in it2PROFESSIONAL PHP SERVICES
Thank you!
Slides at in2.se/hd-php7
training@in2it.be - www.in2it.be - T in2itvof - F in2itvof
PHPUnit
Getting Started
Advanced Testing
Zend Framework 2
Fundamentals
Advanced
Azure PHP
Quick time to market
Scale up and out
jQuery
Professional jQuery
PHP
PHP for beginners
Professional PHP
HTML & CSS
The Basics
Our training courses
87. 29c51
If you enjoyed this talk, thanks.
If not, tell me how to make it better
Leave feedback and grab the slides