Date: 06/30/99
- Next message: teo <email protected>: "[PHP-DEV] Bug #1634: make fails with because of regexp lib conflict with Apache"
- Previous message: Tom Payne: "Re: [PHP-DEV] http://www.php.net/manual/"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: oh3mqu <email protected>
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-- PHP Development Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: teo <email protected>: "[PHP-DEV] Bug #1634: make fails with because of regexp lib conflict with Apache"
- Previous message: Tom Payne: "Re: [PHP-DEV] http://www.php.net/manual/"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

