Deprecation of assert() with string argument
| From: | Christoph M. Becker | Date: | Sat, 06 Jan 2018 13:36:24 +0000 |
| Subject: | Deprecation of assert() with string argument | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-101560@lists.php.net to get a copy of this message | ||
Hi everybody!
As of PHP 7.2.0 calling assert() with a string argument has been
deprecated[1]. However, it seems that ASSERT_QUIET_EVAL /
assert.quiet_eval is supposed to only work as documented, if a string
argument is passed[2]. If that is indeed the case, wouldn't it make
sense to deprecate the usage of this flag / ini setting as well?
[1]
<https://wiki.php.net/rfc/deprecations_php_7_2#assert_with_string_argument>
[2] <https://bugs.php.net/75769>
--
Christoph M. Becker