Nikita Popov
b10416a652
Deprecate passing null to non-nullable arg of internal function
...
This deprecates passing null to non-nullable scale arguments of
internal functions, with the eventual goal of making the behavior
consistent with userland functions, where null is never accepted
for non-nullable arguments.
This change is expected to cause quite a lot of fallout. In most
cases, calling code should be adjusted to avoid passing null. In
some cases, PHP should be adjusted to make some function arguments
nullable. I have already fixed a number of functions before landing
this, but feel free to file a bug if you encounter a function that
doesn't accept null, but probably should. (The rule of thumb for
this to be applicable is that the function must have special behavior
for 0 or "", which is distinct from the natural behavior of the
parameter.)
RFC: https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg
Closes GH-6475.
2021-02-11 21:46:13 +01:00
..
2013-08-10 18:02:08 -07:00
2013-08-10 18:01:54 -07:00
2013-04-12 09:50:14 +01:00
2018-09-21 14:12:25 +02:00
2018-09-21 14:12:25 +02:00
2018-09-21 14:12:25 +02:00
2013-08-10 18:01:54 -07:00
2018-10-15 04:33:09 +02:00
2020-02-03 22:52:20 +01:00
2018-10-15 04:33:09 +02:00
2020-02-03 22:52:20 +01:00
2010-04-02 16:15:06 +00:00
2020-09-22 19:12:32 +01:00
2018-10-15 04:33:09 +02:00
2019-03-15 22:55:30 +01:00
2020-02-03 22:52:20 +01:00
2019-03-15 22:55:30 +01:00
2016-11-20 21:11:53 +01:00
2019-03-15 22:55:30 +01:00
2016-11-20 21:11:53 +01:00
2019-11-07 21:31:47 +01:00
2018-10-14 19:45:12 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2018-10-14 19:45:12 +02:00
2020-07-10 21:05:28 +02:00
2018-10-15 04:33:09 +02:00
2018-10-14 19:45:12 +02:00
2010-05-04 15:41:49 +00:00
2012-03-23 22:08:33 +00:00
2020-08-09 22:03:36 +02:00
2019-11-07 21:31:47 +01:00
2019-10-05 18:56:58 +02:00
2020-08-09 22:03:36 +02:00
2019-11-07 21:31:47 +01:00
2018-10-15 04:33:09 +02:00
2018-10-14 12:56:38 +02:00
2018-10-14 12:56:38 +02:00
2018-10-14 12:56:38 +02:00
2020-02-03 22:52:20 +01:00
2021-02-09 12:19:44 +01:00
2020-07-10 21:05:28 +02:00
2020-02-03 22:52:20 +01:00
2018-02-04 17:26:37 +01:00
2020-02-28 16:13:39 +01:00
2015-09-05 01:17:50 +02:00
2020-02-03 22:52:20 +01:00
2020-08-09 22:03:36 +02:00
2017-03-02 12:35:42 +01:00
2019-11-07 21:31:47 +01:00
2020-02-03 22:52:20 +01:00
2018-10-15 04:32:30 +02:00
2020-08-09 22:03:36 +02:00
2020-09-22 19:12:32 +01:00
2019-11-07 21:31:47 +01:00
2020-04-07 13:04:14 +02:00
2020-02-17 09:07:54 +01:00
2020-07-14 12:31:06 +02:00
2020-08-19 11:54:41 +02:00
2020-10-26 13:08:05 +01:00
2021-02-02 20:26:52 +01:00
2018-10-15 04:33:09 +02:00
2020-02-06 22:24:37 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-08-09 22:03:36 +02:00
2020-08-09 22:03:36 +02:00
2020-08-09 22:03:36 +02:00
2020-08-09 22:03:36 +02:00
2020-02-28 16:13:39 +01:00
2020-02-28 16:13:39 +01:00
2020-02-28 16:13:39 +01:00
2020-02-28 16:13:39 +01:00
2020-02-28 16:13:39 +01:00
2020-02-28 16:13:39 +01:00
2020-02-28 16:13:39 +01:00
2020-02-28 16:13:39 +01:00
2020-02-28 16:13:39 +01:00
2020-08-09 22:03:36 +02:00
2020-02-28 16:13:39 +01:00
2020-08-09 22:03:36 +02:00
2020-03-06 00:03:13 +01:00
2020-02-28 16:13:39 +01:00
2020-02-28 16:13:39 +01:00
2020-02-28 16:13:39 +01:00
2020-02-28 16:13:39 +01:00
2020-02-28 16:13:39 +01:00
2020-08-09 22:03:36 +02:00
2020-08-09 22:03:36 +02:00
2018-10-14 19:46:15 +02:00
2019-03-15 22:55:30 +01:00
2020-02-03 22:52:20 +01:00
2020-02-28 16:13:39 +01:00
2020-02-03 22:52:20 +01:00
2018-10-14 12:56:38 +02:00
2020-09-09 10:47:43 +02:00
2018-10-15 04:33:09 +02:00
2020-09-22 19:12:32 +01:00
2018-10-15 04:33:09 +02:00
2018-02-20 21:53:48 +01:00
2018-10-15 04:33:09 +02:00
2020-09-09 10:47:43 +02:00
2018-10-15 04:33:09 +02:00
2018-10-14 19:46:15 +02:00
2012-10-10 10:31:31 +08:00
2018-10-15 04:33:09 +02:00
2019-10-26 16:05:02 +02:00
2019-11-07 21:31:47 +01:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2020-09-09 10:47:43 +02:00
2018-02-20 21:53:48 +01:00
2018-02-20 21:53:48 +01:00
2018-10-15 04:33:09 +02:00
2018-02-20 21:53:48 +01:00
2020-01-16 19:14:31 +01:00
2020-01-16 19:14:31 +01:00
2020-09-22 19:12:32 +01:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2020-02-03 22:52:20 +01:00
2018-02-20 21:53:48 +01:00
2020-02-03 22:52:20 +01:00
2019-03-15 22:55:30 +01:00
2019-10-19 15:42:16 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2020-09-22 19:12:32 +01:00
2019-03-15 22:55:30 +01:00
2018-09-23 17:22:55 +02:00
2019-10-31 16:09:38 +01:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2020-09-29 14:55:10 +02:00
2018-09-23 17:22:55 +02:00
2018-09-23 17:22:55 +02:00
2018-09-23 17:22:55 +02:00
2018-09-23 17:22:55 +02:00
2018-10-14 19:46:15 +02:00
2020-09-29 14:55:10 +02:00
2019-03-15 22:55:30 +01:00
2020-09-29 14:55:10 +02:00
2019-03-15 22:55:30 +01:00
2019-03-15 22:55:30 +01:00
2019-03-15 22:55:30 +01:00
2018-09-23 17:22:55 +02:00
2019-10-31 16:09:38 +01:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2018-10-14 19:46:15 +02:00
2020-09-29 14:55:10 +02:00
2018-09-23 17:22:55 +02:00
2018-09-23 17:22:55 +02:00
2018-09-23 17:22:55 +02:00
2018-09-23 17:22:55 +02:00
2019-03-15 22:55:30 +01:00
2019-03-15 22:55:30 +01:00
2020-02-03 22:52:20 +01:00
2011-06-28 20:17:15 +00:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2018-10-15 04:33:09 +02:00
2020-09-18 14:28:32 +02:00
2019-03-15 22:55:30 +01:00
2019-10-26 16:05:02 +02:00
2019-03-15 22:55:30 +01:00
2020-08-09 22:03:36 +02:00
2019-03-15 22:55:30 +01:00
2019-10-26 16:05:02 +02:00
2019-03-15 22:55:30 +01:00
2021-02-11 21:46:13 +01:00
2020-08-09 22:03:36 +02:00
2019-03-15 22:55:30 +01:00
2019-03-15 22:55:30 +01:00
2019-03-15 22:55:30 +01:00
2019-03-15 22:55:30 +01:00
2020-09-29 14:55:10 +02:00
2019-03-15 22:55:30 +01:00
2020-09-29 14:55:10 +02:00
2019-03-15 22:55:30 +01:00
2019-03-15 22:55:30 +01:00
2019-03-15 22:55:30 +01:00
2019-03-15 22:55:30 +01:00
2019-03-15 22:55:30 +01:00
2020-09-29 14:55:10 +02:00
2019-03-15 22:55:30 +01:00
2018-10-15 04:33:09 +02:00
2019-03-15 22:55:30 +01:00
2020-02-03 22:52:20 +01:00
2019-03-15 22:55:30 +01:00
2019-10-26 16:05:02 +02:00
2019-03-15 22:55:30 +01:00
2018-10-15 04:33:09 +02:00
2019-03-15 22:55:30 +01:00
2019-10-26 16:05:02 +02:00
2018-10-15 04:33:09 +02:00
2020-08-09 22:03:36 +02:00
2012-03-23 22:08:33 +00:00
2020-09-09 10:47:43 +02:00
2018-09-23 17:22:55 +02:00
2018-09-23 17:22:55 +02:00
2018-10-13 14:17:28 +02:00
2018-10-13 14:17:28 +02:00
2018-10-13 14:17:28 +02:00
2014-04-16 14:13:45 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2018-10-14 19:45:12 +02:00
2020-02-03 22:52:20 +01:00
2019-10-19 15:42:16 +02:00
2019-10-19 15:42:16 +02:00
2021-02-09 12:28:28 +01:00
2020-02-10 10:48:18 +01:00
2018-02-20 21:53:48 +01:00
2018-02-20 21:53:48 +01:00
2020-09-22 19:12:32 +01:00
2020-09-22 19:12:32 +01:00
2020-08-09 22:03:36 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-01-16 09:46:47 +01:00
2018-02-20 21:53:48 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2018-02-20 21:53:48 +01:00
2020-02-03 22:52:20 +01:00
2018-10-15 04:33:09 +02:00
2020-08-09 22:03:36 +02:00
2018-02-20 21:53:48 +01:00
2020-08-09 22:03:36 +02:00
2019-11-07 21:31:47 +01:00
2020-09-22 19:12:32 +01:00
2013-06-10 01:50:00 -07:00
2018-10-15 04:33:09 +02:00
2013-08-10 18:01:54 -07:00
2013-08-10 18:01:54 -07:00
2013-08-10 18:01:54 -07:00
2013-08-10 18:01:54 -07:00
2013-08-10 18:01:54 -07:00
2013-06-10 01:50:00 -07:00
2012-04-30 17:23:49 +02:00
2018-10-13 14:17:28 +02:00
2018-10-14 12:56:38 +02:00
2019-10-26 16:05:02 +02:00
2018-10-14 12:56:38 +02:00
2019-09-04 08:36:11 +02:00
2013-08-10 18:02:08 -07:00
2013-08-10 18:01:54 -07:00