> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Atenciosamente,
Pedro Lacerda
2018-02-14 12:40 GMT-03:00 Michael Morris :
> Assert is a statement in PHP 7. Try this code
>
> function foo() {
> debug_print_backtrace();
> return true;
> }
>
> assert(foo());
>
> In PHP 7 only foo() will be in the backtrace. In PHP 5 assert will be
> listed as well.
>
I saw all that `PHP
The same beharviour, but `assert` as statement also uses 1 character less.
Em 14 de fev de 2018 10:13 AM, "Michael Morris"
escreveu:
On Wed, Feb 14, 2018 at 1:16 AM Pedro Lacerda wrote:
> Hi developers,
>
> Trying to resolve the bug #75950 (that after long hours I foun
`assert()` a function,
there are any drawbacks of fully disabling it when `zend.assertions >= 0`?
PS: Strange that nobody cared in recent emails about the proposal to a
small increase of the testing coverage by doubling the testing time
duration, was somewhat interesting.
--
Atenciosamente,
Pedro Lacerda
only through `run-tests.php` is safer for sure, it will not be
highlighted like other constants because `zend_highlight.c` wasn't modified
but whatever, it's only for tests.
--
Atenciosamente,
Pedro Lacerda
6dbc473166dd6f92
e9f81a6eab
Besides testing, may or may not be valuable expose a `__STRICT_TYPES__`
constant.
https://github.com/php/php-src/compare/master...
pslacerda:experimental/strict_testing?diff=split
--
Atenciosamente,
Pedro Lacerda
le in that context, or even `skip_if(expr, reason)` because
makes more sense there, albeit is a bit repetitive `SKIPIF skip_if`.
2018-02-11 20:42 GMT-03:00 Pedro Lacerda :
> I'll check magic constants and give you a response.
>
> The skip message is up to the test developer, however
I'll check magic constants and give you a response.
The skip message is up to the test developer, however at first I'll
probably need to change all relevant tests and your message seems
appropriated to put.
2018-02-11 20:34 GMT-03:00 Christoph M. Becker :
> On 12.02.2018 at 00:03,
reasing the code coverage. Depending of you overral
reception I'll create an RFC for it.
PHP for president!
--
Atenciosamente,
Pedro Lacerda