summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2014-12-15 11:31:53 -0800
committerStanislav Malyshev <stas@php.net>2014-12-15 11:33:28 -0800
commitb65d184d5e117158df444e88e909cec1355ebc7e (patch)
tree9049187f98ff897cfa36db7757d97bf73f627c1a
parente304c3191be257e5b3f041bfbb95197ed70989fe (diff)
downloadphp-git-b65d184d5e117158df444e88e909cec1355ebc7e.tar.gz
add BC breaks from PHPNG RFC
-rw-r--r--UPGRADING7
1 files changed, 7 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index 544c8c0e48..d2be2afd5d 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -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