Bug #1633: -enable-track-vars and arrays

From: Date: Wed, 30 Jun 1999 14:59:20 +0000
Subject: Bug #1633: -enable-track-vars and arrays
Groups: php.dev 
Request: Send a blank email to php-dev+get-7874@lists.php.net to get a copy of this message
From: oh3mqu@teraflops.com Operating system: Linux and Solaris PHP version: 3.0.9 PHP Bug Type: Other Bug description: -enable-track-vars and arrays So... If I have a program like this ----- clip here ----- <?php $x[0][0]=1; $x[0][1]=1; $x[1][0]=1; $x[1][1]=1; while($y=each($x)) echo "'$y[0]' - '$y[1]'<br>\n"; ?> ----- clip here ----- It works correctly and prints '0' - 'Array' '1' - 'Array' But if I have HTML-form like this <form action=foo.phtml> <input type=checkbox name=x[0][0]> <input type=checkbox name=x[0][1]> <input type=checkbox name=x[1][0]> <input type=checkbox name=x[1][1]> <input type=submit> </form> And foo.phtml is <?php while($y=each($x)) echo "'$y[0]' - '$y[1]'"; ?> This works different way and it prints '0][0' - '1' '0][1' - '1' '1][0' - '1' '1][1' - '1' This is tested with linux and solaris apache+php 3.0.6/7/9 -- Ari

« previous php.dev (#7874) next »