Re: [PHP-DEV] Suggested change: change priority of new and ->

2018-02-15 Thread Pedro Lacerda
> PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Atenciosamente, Pedro Lacerda

Re: [PHP-DEV] About assert()

2018-02-14 Thread 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

Re: [PHP-DEV] About assert()

2018-02-14 Thread Pedro Lacerda
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

[PHP-DEV] About assert()

2018-02-13 Thread Pedro Lacerda
`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

Re: [PHP-DEV] Proposal to run all tests with and without strict_types enabled

2018-02-12 Thread 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

Re: [PHP-DEV] Proposal to run all tests with and without strict_types enabled

2018-02-11 Thread 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

[PHP-DEV] Re: Proposal to run all tests with and without strict_types enabled

2018-02-11 Thread 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

[PHP-DEV] Re: Proposal to run all tests with and without strict_types enabled

2018-02-11 Thread Pedro Lacerda
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,

[PHP-DEV] Proposal to run all tests with and without strict_types enabled

2018-02-11 Thread Pedro Lacerda
reasing the code coverage. Depending of you overral reception I'll create an RFC for it. PHP for president! -- Atenciosamente, Pedro Lacerda