Re: [PHP-DEV] unsuscribe

2018-01-30 Thread Good Guy
On 30/01/2018 14:20, Alvaro Torres wrote: Please read this if you want to unsubscribe: -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Potential adoption of run-tests.php replacement

2018-01-30 Thread Stanislav Malyshev
Hi! > For instance, it is painful to work with tests in PHP source tree when they > are called 001.phpt, 002.phpt and so on - you need to open each file and read > it to see what it intends to test. My tool uses file names instead, which > makes browsing source tree with tests more productive a

Re: [PHP-DEV][RFC][DISCUSSION] Collection Inspection

2018-01-30 Thread Levi Morrison
On Tue, Jan 30, 2018 at 11:13 AM, Larry Garfield wrote: > On Monday, January 29, 2018 6:46:10 PM CST Michael Morris wrote: >> On Mon, Jan 29, 2018 at 6:16 PM, Larry Garfield >> >> wrote: >> > Really, these functions would be useful only on arrays, period. To allow >> > them >> > on anything else

Re: [PHP-DEV][RFC][DISCUSSION] Collection Inspection

2018-01-30 Thread Michael Morris
On Tue, Jan 30, 2018 at 12:13 PM, Larry Garfield wrote: > On Monday, January 29, 2018 6:46:10 PM CST Michael Morris wrote: > > On Mon, Jan 29, 2018 at 6:16 PM, Larry Garfield > > > > wrote: > > > Really, these functions would be useful only on arrays, period. To > allow > > > them > > > on anyt

Re: [PHP-DEV][RFC][DISCUSSION] Collection Inspection

2018-01-30 Thread Larry Garfield
On Monday, January 29, 2018 6:46:10 PM CST Michael Morris wrote: > On Mon, Jan 29, 2018 at 6:16 PM, Larry Garfield > > wrote: > > Really, these functions would be useful only on arrays, period. To allow > > them > > on anything else is just dangerous, and on other iterables there are > > better,

[PHP-DEV] unsuscribe

2018-01-30 Thread Alvaro Torres
-- Atte. Alvaro Torres F.

Re: [PHP-DEV][RFC][DISCUSSION] Collection Inspection

2018-01-30 Thread Christoph M. Becker
On 30.01.2018 at 01:46, Michael Morris wrote: > So what about this function > > bool array_test(array $array [, callable $callback [, mixed $flag = 0]]) > > Iterates over $array, passing the value of each element to $callback. If > the callback returns true for all elements the array_test return

[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