Re: [RFC] Deprecate remains of string evaluated code assertions
| From: | G. P. B. | Date: | Mon, 26 Jun 2023 15:05:35 +0000 |
| Subject: | Re: [RFC] Deprecate remains of string evaluated code assertions | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120679@lists.php.net to get a copy of this message | ||
On Wed, 31 May 2023 at 23:20, Claude Pache <claude.pache@gmail.com> wrote:
> Although your RFC says that the
zend.assertions ini setting has
> superseded assert.active for a while, the “official”
> php.ini file still
> advises to modify the value of assert.active rather than the
> one of
> zend.assertion in order to switch behaviour at runtime:
>
>
>
> https://github.com/php/php-src/blob/91fd5641cde138b8894a48c921929b6e4abd5c97/php.ini-development#L1604
>
>
> I bet that many people (myself included) follows the advice given in
> php.ini.
>
This talks about run-time modification, which is something that I don't
think should be done in practice, nor is often done.
> Another point: Your RFC is missing assert.quiet_eval...
>
I have clarified that this was indeed removed in PHP 8.0.
https://wiki.php.net/rfc/assert-string-eval-cleanup
Best regards,