summaryrefslogtreecommitdiff
path: root/Zend/tests/bug39304.phpt
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2011-09-07 10:44:32 +0000
committerHannes Magnusson <bjori@php.net>2011-09-07 10:44:32 +0000
commitffe0c530afb235e2fcbc4c89d2cc0ed40cece47b (patch)
tree116cbf32ef59e3dfee15b6436361faabfefc9eab /Zend/tests/bug39304.phpt
parenta68943fc6940c57d37be069c7977e7e0d083c8d2 (diff)
downloadphp-git-ffe0c530afb235e2fcbc4c89d2cc0ed40cece47b.tar.gz
Remove bogus skipif and make adjust the tests
Diffstat (limited to 'Zend/tests/bug39304.phpt')
-rwxr-xr-xZend/tests/bug39304.phpt9
1 files changed, 6 insertions, 3 deletions
diff --git a/Zend/tests/bug39304.phpt b/Zend/tests/bug39304.phpt
index 03916fd0fa..ea068df75d 100755
--- a/Zend/tests/bug39304.phpt
+++ b/Zend/tests/bug39304.phpt
@@ -1,13 +1,16 @@
--TEST--
Bug #39304 (Segmentation fault with list unpacking of string offset)
---SKIPIF--
-<?php if (version_compare(zend_version(), '2.4.0', '>=')) die('skip ZendEngine 2.4 needed'); ?>
--FILE--
<?php
$s = "";
list($a, $b) = $s[0];
+echo "I am alive";
?>
--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
+Notice: Uninitialized string offset: 1 in %sbug39304.php on line 3
+
+Notice: Uninitialized string offset: 0 in %sbug39304.php on line 3
+I am alive
+