Bug #717: The type of array keys is being lost
| From: | obyrne at iol dot ie | Date: | Wed, 02 Sep 1998 16:53:23 +0000 |
| Subject: | Bug #717: The type of array keys is being lost | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-737@lists.php.net to get a copy of this message | ||
From: obyrne@iol.ie
Operating system: Digital Unix
PHP version: 3.0.3
PHP Bug Type: Misbehaving function
Bug description:
<HTML><HEAD><TITLE>Test PHP3 Script</TITLE>
</HEAD><BODY>
<?php
$longstring="123456789012345";
$vals["$longstring"]=1;
echo "<p>Setting array ",gettype($longstring)," element $longstring with
",
$vals["$longstring"],"</p>\n";
while (list($arg,$val)=each($vals)) {
echo "<p>Got array ",gettype($arg)," element $arg = $val </p>\n";
}
?>
</BODY></HTML>
gives :-
Setting array string element 123456789012345 with 1
Got array integer element -2045911175 = 1
My configuration is Apache-1.3.1 with mod_ssl, php2 and php3.
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net