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

2018-01-30 Thread Chris Wright
On 28 January 2018 at 12:12, Chris Wright wrote: > > Here is some code that demonstrates the problem: > > /* This is the only way to know for certain how big float is on the > local system */ > define('FLOAT_WIDTH', strlen(pack('f', 0.0))); > > /* an exaggerated example using two varia

[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

[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