summaryrefslogtreecommitdiff
path: root/Zend/tests/bug39304.phpt
blob: a5422d2f4f316366e52d2c0cc6458942ec33cddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #39304 (Segmentation fault with list unpacking of string offset)
--FILE--
<?php
  $s = "";
  list($a, $b) = $s[0];
  var_dump($a,$b);
?>
--EXPECTF--
Warning: Uninitialized string offset 0 in %s on line %d
NULL
NULL