Re: [RFC] [Discussion] Deprecate functions with overloaded signatures
| From: | Rowan Tommins | Date: | Tue, 02 May 2023 11:32:23 +0000 |
| Subject: | Re: [RFC] [Discussion] Deprecate functions with overloaded signatures | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120175@lists.php.net to get a copy of this message | ||
On Fri, 28 Apr 2023 at 09:16, Rowan Tommins <rowan.collins@gmail.com> wrote:
> On a different point, I think "assert_options" is a peculiar name for
> either setting or getting a single option, and would suggest it be
> replaced with two new functions, assert_get_option and
> assert_set_option.
>
Further to this, I've realised that the manual is currently a bit confusing
regarding the interaction of ini_set('zend.assertions', ...),
ini_set('assert.active', ...), and assert_options(ASSERT_ACTIVE, ...)
Either way, all the options to assert_options are documented as having an
equivalent ini setting, so is this function actually needed at all, or
should users be encouraged to use ini_get / ini_set directly?
https://www.php.net/assert_options
Regards,
--
Rowan Tommins
[IMSoP]