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