038.phpt 172 B

123456789101112
  1. --TEST--
  2. Trying to use lambda as array key
  3. --FILE--
  4. <?php
  5. var_dump(array(function() { } => 1));
  6. ?>
  7. --EXPECTF--
  8. Warning: Illegal offset type in %s on line %d
  9. array(0) {
  10. }