On Fri, 16 Mar 2001, Stig Venaas wrote:
> It seems like this is a common problem, I think perhaps most of the
> PHP code (the C code) could be made cleaner if the Zend API separated
> pointers from the array structure. So that one could create a pointer
> and pass it as an argument to Zend hash fu
On Fri, Mar 16, 2001 at 11:21:39AM -0600, Andrei Zmievski wrote:
> On Fri, 16 Mar 2001, Daniel Beckham wrote:
> > Awesome. Are you planning to just fix the array_keys function, or will
> > there be a change as to how the array functions work with the array
> > pointers?
>
> It'll be on a case-by
On Fri, 16 Mar 2001, Daniel Beckham wrote:
> Awesome. Are you planning to just fix the array_keys function, or will
> there be a change as to how the array functions work with the array
> pointers?
It'll be on a case-by-case basis. Some functions do need to move the
pointers.
-Andrei
It is com
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 16, 2001 11:18 AM
Subject: Re: [PHP-DEV] PHP 4.0 Bug #9794: array_keys resets the array
pointer and can not be used when looping
> I'll fix this problem soon. It's even in the TODO.
>
> On Fri, 16 Mar 2001, [EMAIL PROTECTED
I'll fix this problem soon. It's even in the TODO.
On Fri, 16 Mar 2001, [EMAIL PROTECTED] wrote:
> From: [EMAIL PROTECTED]
> Operating system: linux 2.2.16
> PHP version: 4.0.4pl1
> PHP Bug Type: Scripting Engine problem
> Bug description: array_keys resets the array pointer
From: [EMAIL PROTECTED]
Operating system: linux 2.2.16
PHP version: 4.0.4pl1
PHP Bug Type: Scripting Engine problem
Bug description: array_keys resets the array pointer and can not be used when looping
The following code is broken:
$arr = array("a", "b", "c");
foreach ($arr