[PHP-DEV] unpack() offset and consumed data measurement

2018-01-28 Thread Chris Wright
Morning all Since PHP 7.1 the unpack() function has a (still undocumented) optional 3rd argument that allows the caller to specify the offset in the input data where parsing should start. While this is a useful feature, it is currently impossible to know how many bytes of the input were consumed f

[PHP-DEV] Re: unpack() offset and consumed data measurement

2018-01-28 Thread Christoph M. Becker
On 28.01.2018 at 13:12, Chris Wright wrote: > Since PHP 7.1 the unpack() function has a (still undocumented) optional 3rd > argument […] JFTR: documented with . -- Christoph M. Becker -- PHP Internals - PHP Runtime Development Mailing L

[PHP-DEV] Re: unpack() offset and consumed data measurement

2018-01-28 Thread Chris Wright
On 28 January 2018 at 12:42, Christoph M. Becker wrote: > On 28.01.2018 at 13:12, Chris Wright wrote: > > > Since PHP 7.1 the unpack() function has a (still undocumented) optional > 3rd > > argument […] > > JFTR: documented with > . > > Tha