xref: /PHP-7.0/Zend/tests/bug39304_2_4.phpt (revision 7c7b9184)
1--TEST--
2Bug #39304 (Segmentation fault with list unpacking of string offset)
3--SKIPIF--
4<?php if (version_compare(zend_version(), '2.4.0', '<')) die('skip ZendEngine 2.4 needed'); ?>
5--FILE--
6<?php
7  $s = "";
8  list($a, $b) = $s[0];
9  var_dump($a,$b);
10?>
11--EXPECTF--
12Notice: Uninitialized string offset: 0 in %sbug39304_2_4.php on line %d
13NULL
14NULL
15