bug39304.phpt 381 B

12345678910111213141516
  1. --TEST--
  2. Bug #39304 (Segmentation fault with list unpacking of string offset)
  3. --FILE--
  4. <?php
  5. $s = "";
  6. list($a, $b) = $s[0];
  7. echo "I am alive";
  8. ?>
  9. --EXPECTF--
  10. Notice: Uninitialized string offset: 0 in %sbug39304.php on line %d
  11. Notice: Uninitialized string offset: 1 in %sbug39304.php on line %d
  12. Notice: Uninitialized string offset: 0 in %sbug39304.php on line %d
  13. I am alive