ssa_bug_007.phpt 502 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Incorrect CFG/SSA construction for SWITCH with few identical successors
  3. --EXTENSIONS--
  4. opcache
  5. --FILE--
  6. <?php
  7. function render($properties) {
  8. foreach ($properties as $key => $value) {
  9. switch ($key) {
  10. case 'Trapped':
  11. if ($value == null) {
  12. $docInfo->$key = 1;
  13. }
  14. case 'CreationDate':
  15. case 'ModDate':
  16. $docInfo->$key = 2;
  17. break;
  18. }
  19. }
  20. }
  21. ?>
  22. OK
  23. --EXPECT--
  24. OK