]> granicus.if.org Git - php/commitdiff
Remove bogus skipif and make adjust the tests
authorHannes Magnusson <bjori@php.net>
Wed, 7 Sep 2011 10:44:32 +0000 (10:44 +0000)
committerHannes Magnusson <bjori@php.net>
Wed, 7 Sep 2011 10:44:32 +0000 (10:44 +0000)
Zend/tests/bug39304.phpt
Zend/tests/isset_003.phpt

index 03916fd0fa85e731071275cc30a725c5e4b5a9b8..ea068df75dfc6360f4eeb101e636d90c08fcd7e4 100755 (executable)
@@ -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
+
index 8232405bee9b4bbf5edb2a446d99510a397c62c5..4db42a933b6b72aefa3af4b3863060a632e1f714 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Testing isset accessing undefined array itens and properties
---SKIPIF--
-<?php if (version_compare(zend_version(), '2.4.0', '>=')) die('skip ZendEngine 2.3 or below needed'); ?>
 --FILE--
 <?php
 
@@ -31,10 +29,10 @@ bool(true)
 bool(false)
 bool(false)
 
-Notice: Undefined variable: d in %s on line %d
-
 Notice: Undefined variable: c in %s on line %d
 
+Notice: Undefined variable: d in %s on line %d
+
 Notice: Trying to get property of non-object in %s on line %d
 bool(false)
 bool(true)