zeev            Mon Aug  4 04:42:36 2003 EDT

  Added files:                 
    /php-src/tests/lang bug24652.phpt 
  Log:
  Add a test
  
  

Index: php-src/tests/lang/bug24652.phpt
+++ php-src/tests/lang/bug24652.phpt
--TEST--
Bug #24652 (broken array_flip())
--FILE--
<?php
  /* This works */
  $f = array('7' => 0);
  var_dump($f);
  var_dump(array_key_exists(7, $f));
  var_dump(array_key_exists('7', $f));

  print "----------\n";
  /* This doesn't */
  $f = array_flip(array('7'));
  var_dump($f);
  var_dump(array_key_exists(7, $f));
  var_dump(array_key_exists('7', $f));
?>
--EXPECT--
array(1) {
  [7]=>
  int(0)
}
bool(true)
bool(true)
----------
array(1) {
  [7]=>
  int(0)
}
bool(true)
bool(true)



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to