Welcome! Log In Create A New Profile

Advanced

[PHP-DEV] Deprecation of assert() with string argument

Posted by Christoph M. Becker 
Christoph M. Becker
[PHP-DEV] Deprecation of assert() with string argument
January 06, 2018 02:40PM
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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Michael Morris
Re: [PHP-DEV] Deprecation of assert() with string argument
January 06, 2018 03:50PM
On Sat, Jan 6, 2018 at 7:36 AM Christoph M. Becker <[email protected]>
wrote:

> 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
>

Yes.

For what it’s worth, I’m expecting the asset_options function to be
deprecated entirely eventually and am working on a patch for Drupal to
address this

>
>
>
Sorry, only registered users may post in this forum.

Click here to login