Given: 
  $a[2] = '1';
  $k = (double)2;
  echo isset($a[$k]);
  unset($a[$k]);
  echo isset($a[$k]);
  echo " -> expect 1\n";

Results:
  11 -> expect 1

Although a double value isn't a valid array index, it doesn't seem
to be consistent.  I'm thinking that the code should yeild one of
two results:

  1. Issue warning as with using objects or arrays as keys
  2. unset uses the str.val to retrieve the proper index.

Any thoughts on the proper behaviour?


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to