PHP 4.0 Bug #4913: list() returns different output then php3 did.
| From: | rob at tupp dot net | Date: | Thu, 08 Jun 2000 17:26:15 +0000 |
| Subject: | PHP 4.0 Bug #4913: list() returns different output then php3 did. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-20585@lists.php.net to get a copy of this message | ||
From: rob@tupp.net
Operating system: FreeBSD 2.2.8-STABL
PHP version: 4.0.0 Release
PHP Bug Type: Misbehaving function
Bug description: list() returns different output then php3 did.
if(!isset($pim_user)){
print "Not logged in. \n";
print "<a class=blue href=\"index.php?mode=login\" >Login</a> |
\n";
print "<a class=blue href=\"index.php?mode=reg_user\"
>Register</a>\n";
} else {
list($UserName) = $pim_user;
print "Welcome $UserName. \n";
print "<a class=blue href=\"logout.php\" >Logout</a> | \n";
print "<a class=blue href=\"index.php?mode=user_update\" >User
Info</a>\n";
}
in php3 and if statement was false, it will show username from cookie (ie rtolman) with php4 and
exact code I get out put of only first character of username. (ie r)
I access this at a web hosting company, where php is executed out of my cgi-bin directory
Please contact me if more info is neccessary at email above.
Rob