xref: /PHP-8.0/Zend/tests/bug39304.phpt (revision d30cd7d7)
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--
10Warning: Uninitialized string offset 0 in %s on line %d
11NULL
12NULL
13