On Wed, Aug 1, 2018 at 2:41 PM, Marcos Passos
wrote:
> Whenever you look for more information about the maximum size of an array,
> you find someone saying that "PHP arrays do not have a maximum size, but
> the amount of memory available". However, I could not find any excerpt in
> PHP documentati
If you are arguing strictly about not knowing what to write on the
documentation, let's move the discussion towards whether it should be
defined or not.
2018-08-01 16:51 GMT-03:00 Sherif Ramadan :
> Right, and therein lies the problem. No one has ever defined this
> behavior. As such, one cannot
Right, and therein lies the problem. No one has ever defined this behavior.
As such, one cannot document what has never been defined.
What you're describing is UNdefined. Undefined things cannot be documented.
On Wed, Aug 1, 2018, 3:46 PM Marcos Passos
wrote:
> *The point is not about the poss
*The point is not about the possibility of crossing the limit of the array,
but the need for a definition so one can design a method or function whose
behavior aligns with the array capabilities. This need, in fact, became
more noticeable from a design point of view since the introduction of the
it
It looks like the limit I mentioned, used by some functions, is
architecture-dependent:
https://github.com/php/php-src/blob/master/Zend/zend_types.h#L288
Also, that's such a ridiculously large number for the vast majority of
> people using PHP that hardly anyone ever runs into this limit.
The po
It's undocumented, because it's considered undefined behavior. PHP arrays
implicitly store the number of elements internally as an unsigned 32 bit
integer (regardless of architecture). This means that (technically) you
can't create an array with more than ((2**31) - 1) elements (or
2,147,483,647 el
On Wed, Aug 1, 2018 at 12:42 PM Marcos Passos
wrote:
>
> Whenever you look for more information about the maximum size of an array,
> you find someone saying that "PHP arrays do not have a maximum size, but
> the amount of memory available". However, I could not find any excerpt in
> PHP documenta
On Wed, Aug 1, 2018 at 12:42 PM Marcos Passos
wrote:
>
> Whenever you look for more information about the maximum size of an array,
> you find someone saying that "PHP arrays do not have a maximum size, but
> the amount of memory available". However, I could not find any excerpt in
> PHP documenta
On 01/08/18 19:41, Marcos Passos wrote:
My understanding is that the conceptual limit is*PHP_INT_MAX*, as there is
no way to represent the size above this value.
And on which definition, 32bit versions of PHP crash out before 64bit
builds ...
It assumes that one HAS to convert variables to bin
Whenever you look for more information about the maximum size of an array,
you find someone saying that "PHP arrays do not have a maximum size, but
the amount of memory available". However, I could not find any excerpt in
PHP documentation that supports that.
Even if the engine imposes no hard lim
10 matches
Mail list logo