xref: /PHP-5.6/Zend/tests/bug39304.phpt (revision 610c7fbe)
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
11
12Notice: Uninitialized string offset: 1 in %sbug39304.php on line %d
13
14Notice: Uninitialized string offset: 0 in %sbug39304.php on line %d
15I am alive
16
17