com php-src: add BC breaks from PHPNG RFC: UPGRADING

From: Date: Mon, 15 Dec 2014 19:33:28 +0000
Subject: com php-src: add BC breaks from PHPNG RFC: UPGRADING
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83720@lists.php.net to get a copy of this message
Commit: b65d184d5e117158df444e88e909cec1355ebc7e Author: Stanislav Malyshev <stas@php.net> Mon, 15 Dec 2014 11:31:53 -0800 Parents: e304c3191be257e5b3f041bfbb95197ed70989fe Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b65d184d5e117158df444e88e909cec1355ebc7e Log: add BC breaks from PHPNG RFC Changed paths: M UPGRADING Diff: diff --git a/UPGRADING b/UPGRADING index 544c8c0..d2be2af 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

« previous php.cvs (#83720) next »