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