ID: 31108
User updated by: pierre at zenutech dot com
Reported By: pierre at zenutech dot com
Status: Bogus
Bug Type: *General Issues
Operating System: Red Hat 9 - Linux
PHP Version: 4.3.10
New Comment:
Thank you for helping find a solution to this problem. Any chance we
could add a small message next to the php download saying that if you
use Zend Optimizer, you need latest version to work with this new php?
I'm sure it would help the public right?
Previous Comments:
------------------------------------------------------------------------
[2004-12-16 10:08:04] [EMAIL PROTECTED]
Not a bug in PHP then, but in the Zend Optimizer. In case you encounter
this problem, please upgrade to the latest version of the Zend
Optimizer!
------------------------------------------------------------------------
[2004-12-16 09:49:50] baroiller at daoditu dot com
fixed! :)
just upgrade ZendOptimizer to last version, and it'll work.
------------------------------------------------------------------------
[2004-12-16 09:33:31] baroiller at daoditu dot com
I've got the same problem whith foreach.
here is an example :
$func_key is an array,
var_dump($func_key) return this :array(4) {
[0]=> string(4) "link"
[1]=> string(3) "var"
[2]=> string(8) "rubrique"
[3]=> string(4) "code"
}
the code that doens't work :
foreach($func_key as $key ) {
var_dump($key); // for testing $key content
$approved_tags[]="{".$key."\:}";
}
and the "bad" result .. what's wrong ???
array(2) {
[0]=> string(4) "link"
[1]=> int(0)
}
array(2) {
[0]=> string(3) "var"
[1]=> int(1)
}
array(2) {
[0]=> string(8) "rubrique"
[1]=> int(2)
}
array(2) {
[0]=> string(4) "code"
[1]=> int(3)
}
Before upgrage, $key was filled like this :
string(3) "var"
string(8) "rubrique"
string(4) "code"
any idea ?
------------------------------------------------------------------------
[2004-12-16 09:28:41] [EMAIL PROTECTED]
So, does it work if you remove (or upgradE) the Zend Optimizer?
------------------------------------------------------------------------
[2004-12-16 07:42:35] php-bugs-041216 at Tech dot FutureQuest dot net
Ran into the same problem with 'foreach' during preliminary testing...
The solution is to ensure that your ZendOptimizer has been upgraded to
a minimum of 2.5.7...
--
Terra
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/31108
--
Edit this bug report at http://bugs.php.net/?id=31108&edit=1