[PHP-DEV] PHP 4.0 Bug #9794: array_keys resets the array pointer and can not be used when looping

2001-03-16 Thread danbeck
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

Re: [PHP-DEV] PHP 4.0 Bug #9794: array_keys resets the array pointer and can not be used when looping

2001-03-16 Thread Andrei Zmievski
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 and

Re: [PHP-DEV] PHP 4.0 Bug #9794: array_keys resets the array pointer and can not be used when looping

2001-03-16 Thread Daniel Beckham
CTED] 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] wrote: From: [EMAIL PROTECTED]

Re: [PHP-DEV] PHP 4.0 Bug #9794: array_keys resets the array pointer and can not be used when looping

2001-03-16 Thread Stig Venaas
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-case

Re: [PHP-DEV] PHP 4.0 Bug #9794: array_keys resets the array pointer and can not be used when looping

2001-03-16 Thread Andrei Zmievski
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