diff options
author | Stanislav Malyshev <stas@php.net> | 2014-12-15 11:31:53 -0800 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2014-12-15 11:33:28 -0800 |
commit | b65d184d5e117158df444e88e909cec1355ebc7e (patch) | |
tree | 9049187f98ff897cfa36db7757d97bf73f627c1a | |
parent | e304c3191be257e5b3f041bfbb95197ed70989fe (diff) | |
download | php-git-b65d184d5e117158df444e88e909cec1355ebc7e.tar.gz |
add BC breaks from PHPNG RFC
-rw-r--r-- | UPGRADING | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -35,6 +35,13 @@ PHP X.Y UPGRADE NOTES . Removed ASP (<%) and script (<script language=php>) tags. (RFC: https://wiki.php.net/rfc/remove_alternative_php_tags) . call_user_method() and call_user_method_array() no longer exists. + . PHP 7 doesn't keep original values of arguments passed to user functions, + so func_get_arg() and func_get_args() will return current value of argument + instead of the actually passed. The following code is going to be affected: + function foo($x) { $x = 2; return func_get_arg(0);} var_dump(foo(1)); + It will now produce 2, not 1. + . Function parameters with duplicate name are not allowed anymore. Definitions + like “function foo($x,$x) {}” will lead to compile time error. - DBA . dba_delete() now returns false if the key was not found for the inifile |