I dont know how to make another script for you as i cant reproduce the error in any 5
line of code.
- Svein
---
[2001-04-04 08:28:35] [EMAIL PROTECTED]
I asked for 'self-containing' script. ie. one that doesn'
From: [EMAIL PROTECTED]
Operating system: RH Linux 6.1
PHP version: 4.0.4pl1
PHP Bug Type: *General Issues
Bug description: For loop always execute
I have a strange situation;
I have this code :
$c = count($myarray);
echo $c . '';
for ($i=0; $i<$c; $i++) {
code goes h
ID: 10026
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: *General Issues
Description: For loop always execute
The code submitted is inside a function that is called recursively and its not exact
copy of the code.
I've also tried to change the for loop to a while loop with the same r
f some of you want it i can mail you the file so you can see the things in
perspective.
- Svein
Previous Comments:
---
[2001-03-29 11:55:23] [EMAIL PROTECTED]
I can't reproduce this (using code below):
Could
($c>0) {
echo "c is greater than 0";
for (...) {
...code
}
}
---
then IF c is 0 the echo statement doesnt execute BUT the for loop executes...
I cant figure out why...
If some of you want it i can mail you the file so you can see the things in
persp
es INSIDE a recursively
called function.
I've also tried this one :
---
$c = count($myarray);
if ($c>0) {
echo "c is greater than 0";
for (...) {
...code
}
}
---
then IF c is 0 the echo statement doesnt execute BUT the for loop executes...
I cant figure out
ID: 10026
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: *General Issues
Description: For loop always execute
The parameter passed to the function i prev. post is the stricture returned from
imag_fetchstructure...
- Svein
Previous Comments
cant reproduce the error in any 5
line of code.
- Svein
Previous Comments:
---
[2001-04-04 08:28:35] [EMAIL PROTECTED]
I asked for 'self-containing' script. ie. one that doesn't
need anything outside but works
t to lay down and die. And
since it should not corrupt the PHP internals in any way, I would at least expect to
be able to handle it with set_error_handler().
Svein Roar Nilsen
Norwegian Hydrographic Services
--
Edit Bug report at: http://bugs.php.net/?id=10490&edit=1
--
PHP Developmen