036.phpt 220 B

12345678910111213
  1. --TEST--
  2. Trying to use lambda in array offset
  3. --FILE--
  4. <?php
  5. $test[function(){}] = 1;
  6. $a{function() { }} = 1;
  7. ?>
  8. --EXPECTF--
  9. Warning: Illegal offset type in %s on line %d
  10. Warning: Illegal offset type in %s on line %d