Re: [PHP-DEV] substr with null length

2019-10-21 Thread Colin O'Dell
On Mon, Oct 21, 2019 at 11:29 AM Nikita Popov wrote: > This is a fairly common deficiency in the implementation of internal > functions. Part of the reason is that historically zend_parse_parameters > did not support the ! modifier for integers, and partly these are just > implementation oversigh

Re: [PHP-DEV] substr with null length

2019-10-21 Thread Nikita Popov
On Mon, Oct 21, 2019 at 5:03 PM Colin O'Dell wrote: > Hello Internals, > > Is there any particular reason why the substr() function doesn't accept a > null $length like mb_substr() does? It seems the behavior to read through > the end of the string can only be controlled by the presence or absen

[PHP-DEV] substr with null length

2019-10-21 Thread Colin O'Dell
Hello Internals, Is there any particular reason why the substr() function doesn't accept a null $length like mb_substr() does? It seems the behavior to read through the end of the string can only be controlled by the presence or absence of the $length parameter: https://3v4l.org/YpuO1 I discove