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