[PHP-DEV] Re: Making all Traversables an Iterator or IteratorAggregate

2020-06-24 Thread Nikita Popov
On Mon, Jun 22, 2020 at 5:56 PM Björn Larsson wrote: > Hi Nikita, > > Den 2020-06-19 kl. 12:32, skrev Nikita Popov: > > On Tue, Jun 9, 2020 at 3:33 PM Nikita Popov > wrote: > > > >> On Tue, May 12, 2020 at 10:26 AM Nikita Popov > >> wrote: > >> > >>> On Wed, Mar 11, 2020 at 10:50 AM Nikita Popo

[PHP-DEV] [RFC] Permit trailing whitespace in numeric strings (again)

2020-06-24 Thread G. P. B.
Greetings internals, I want to bring back the following RFC, written by Andrea Faulds, back to the discussion table: https://wiki.php.net/rfc/trailing_whitespace_numerics As she doesn't have time to move forward with it she allowed me to take it over. I've rebased her patch onto master in the fo

Re: [PHP-DEV] [RFC] Permit trailing whitespace in numeric strings (again)

2020-06-24 Thread Larry Garfield
On Wed, Jun 24, 2020, at 8:40 AM, G. P. B. wrote: > Greetings internals, > > I want to bring back the following RFC, written by Andrea Faulds, back to > the discussion table: https://wiki.php.net/rfc/trailing_whitespace_numerics > > As she doesn't have time to move forward with it she allowed me

[PHP-DEV] Permitting trailing commas in closure use() declarations

2020-06-24 Thread tyson andre
Hi internals, https://wiki.php.net/rfc/trailing_comma_in_parameter_list mentioned > https://wiki.php.net/rfc/list-syntax-trailing-commas Trailing Commas In List > Syntax was a previous proposal to support optional trailing commas in all > list-like structures. > > Nothing has substantially chan

Re: [PHP-DEV] Permitting trailing commas in closure use() declarations

2020-06-24 Thread Ben Ramsey
> On Jun 24, 2020, at 10:22, tyson andre wrote: > > Hi internals, > > https://wiki.php.net/rfc/trailing_comma_in_parameter_list mentioned > >> https://wiki.php.net/rfc/list-syntax-trailing-commas Trailing Commas In List >> Syntax was a previous proposal to support optional trailing commas in a

[PHP-DEV] Making the hardcoded string length limit of Throwable->getTraceAsString() configurable

2020-06-24 Thread tyson andre
Hi internals, By default, strings in parameter lists are truncated to 15 bytes by default in Throwable->getTraceAsString() (and Throwable->__toString() as a consequence). (in Zend/zend_exception.c in `static void _build_trace_args(zval *arg, smart_str *str)`) This limit is too short to see re

Re: [PHP-DEV] [RFC] \PHP namespace usage heuristics

2020-06-24 Thread Rowan Tommins
On 24/06/2020 01:30, Larry Garfield wrote: * We should never namespace anything ever. * We can namespace things but we need something more concrete than "RFCs can namespace things if they feel like it." I can't do much about the former, but the latter is a solvable problem. To that end, Mark

[PHP-DEV] Making the hardcoded string length limit of Throwable->getTraceAsString() configurable

2020-06-24 Thread Alex
On Wed, Jun 24, 2020 at 9:22 PM tyson andre wrote: > > By default, strings in parameter lists are truncated to 15 bytes by default > in Throwable->getTraceAsString() > (and Throwable->__toString() as a consequence). > (in Zend/zend_exception.c in `static void _build_trace_args(zval *arg, > smart

Re: [PHP-DEV] [RFC] \PHP namespace usage heuristics

2020-06-24 Thread Larry Garfield
On Wed, Jun 24, 2020, at 2:32 PM, Rowan Tommins wrote: > On 24/06/2020 01:30, Larry Garfield wrote: > > * We should never namespace anything ever. > > * We can namespace things but we need something more concrete than "RFCs > > can namespace things if they feel like it." > > > > I can't do much ab

Re: [PHP-DEV] Making the hardcoded string length limit of Throwable->getTraceAsString() configurable

2020-06-24 Thread Ryan Jentzsch
Why is there a 15 byte limit in the first place? On Wed, Jun 24, 2020, 1:22 PM tyson andre wrote: > > Hi internals, > > By default, strings in parameter lists are truncated to 15 bytes by > default in Throwable->getTraceAsString() > (and Throwable->__toString() as a consequence). > (in Zend/zend

Re: [PHP-DEV] Making the hardcoded string length limit of Throwable->getTraceAsString() configurable

2020-06-24 Thread Alex
> Why is there a 15 byte limit in the first place? Presumably it might be so that multi-megabyte strings are not dumped to the console when printing out a stack trace. (Disclaimer: I have not touched the relevant code and am just guessing.) -- PHP Internals - PHP Runtime Development Mailing List