summaryrefslogtreecommitdiff
path: root/Zend/tests/bug39304.phpt
blob: 2e9ebcdee47ee54b9a764fcbd67959438e2f399c (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