Browse Source

Remove bogus skipif and make adjust the tests

pull/271/head
Hannes Magnusson 15 years ago
parent
commit
ffe0c530af
  1. 9
      Zend/tests/bug39304.phpt
  2. 6
      Zend/tests/isset_003.phpt

9
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

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

Loading…
Cancel
Save