ID: 16199 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Bogus Bug Type: Scripting Engine problem Operating System: FreeBSD 4.5 PHP Version: 4.1.2
Previous Comments: ------------------------------------------------------------------------ [2002-05-03 10:02:52] [EMAIL PROTECTED] what about the semicolon after for (...) ? ------------------------------------------------------------------------ [2002-05-03 09:47:59] [EMAIL PROTECTED] i have an even simpler example: for ($i=0; $i<60; $i++); { echo $i . "<br>"; } this is producing only one iteration throught the loop! the result of this loop is visible at http://www.gleep.org/ test/index.php and the loop visible at http:// www.gleep.org/test/index.phps i'm running 4.2.0 on apache 1.3.24 on a linux box. i've tried it on 4.1.2 and i get the same thing! i know i've used for loops before and not had this problem... ------------------------------------------------------------------------ [2002-03-21 18:04:26] [EMAIL PROTECTED] Hey guys, I have try statically filling the var, and the problem does indeed still persist. Here's recap: FreeBSD 4.5 php 4.1.2 apache 1.3.23 My configure line: './configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-system-regex' '--disable-debug' '--enable-track-vars' '--without-gd' '--without-mysql' '--with-zlib' '--with-mysql=/usr/local' '--enable-sockets' '--enable-trans-sid' '--prefix=/usr/local' And of coarse, the above code. ------------------------------------------------------------------------ [2002-03-21 16:03:15] [EMAIL PROTECTED] The way you set it up looks correct, but when I print the value of the inner loop. It does, in fact only print the value of 2, then stops. I can continue to reproduce this on 2 of my BSD machines, and quite honestly, the code does look ok. --Paul ------------------------------------------------------------------------ [2002-03-21 00:30:48] [EMAIL PROTECTED] Can't reproduce on Linux using 4.0.6/4.1.0/4.2.0 or Windows XP w/4.0.6. I get 0 and 1 as expected. Of course without the original data I can't figure anything out I had to rebuild the data from your print_r output to this. $SESSION_DATA = array( "Domain" => "www.test.com", "Start IP" => "64.24.23.32", "End IP" => "6.23.23.23", "Netmask" => "255.255.255.255", "Number of Disks" => 2, "Disk Type" => "ide", "Enable Raid" => "Y", "Disk Sizes" => array( 0 => array ("SIZE" => 40, "/" => 39, "Swap" => 1), 1 => array("SIZE" => 40, "/home" => 40) ) ); Yeah, it probably is you ;) Here's my output Domain<br>www.test.com<br> Start IP<br>64.24.23.32<br> End IP<br>6.23.23.23<br> Netmask<br>255.255.255.255<br> Number of Disks<br>2<br> Disk Type<br>ide<br> Enable Raid<br>Y<br> Disk Sizes<br>040<br> 140<br> -Chris ------------------------------------------------------------------------ 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/16199 -- Edit this bug report at http://bugs.php.net/?id=16199&edit=1