bug74980.phpt 365 B

123456789101112131415161718192021222324252627282930
  1. --TEST--
  2. Bug #74980 (Narrowing occurred during type inference)
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. --EXTENSIONS--
  7. opcache
  8. --FILE--
  9. <?php
  10. class A
  11. {
  12. static function foo()
  13. {
  14. while ($undef) {
  15. $arr[][] = NULL;
  16. }
  17. foreach ($arr as $a) {
  18. bar($a + []);
  19. }
  20. }
  21. }
  22. echo "okey";
  23. ?>
  24. --EXPECT--
  25. okey