File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug39304.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 2 months ago) by misho
Branches: php, MAIN
CVS tags: v5_3_10, HEAD
php

--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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>