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

Fatal error: Cannot use string offset as an array in %sbug39304.php on line 3