summaryrefslogtreecommitdiff
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
commita953f69ed622a8e541881d200c4bbcf374f7baed (patch)
tree6e6216483d3ec379253cc4cbd4bdae145139f3fe
parent2fd3e799d89b0d3bae2846617a2bb9149cc78b90 (diff)
downloadphp-git-a953f69ed622a8e541881d200c4bbcf374f7baed.tar.gz
Remove bogus skipif and make adjust the tests
-rwxr-xr-xZend/tests/bug39304.phpt9
-rw-r--r--Zend/tests/isset_003.phpt6
2 files changed, 8 insertions, 7 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
+
diff --git a/Zend/tests/isset_003.phpt b/Zend/tests/isset_003.phpt
index 8232405bee..4db42a933b 100644
--- a/Zend/tests/isset_003.phpt
+++ b/Zend/tests/isset_003.phpt
@@ -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)