]> granicus.if.org Git - php/commitdiff
- Fix skip conditions
authorJani Taskinen <jani@php.net>
Sat, 1 Nov 2008 22:48:52 +0000 (22:48 +0000)
committerJani Taskinen <jani@php.net>
Sat, 1 Nov 2008 22:48:52 +0000 (22:48 +0000)
ext/spl/tests/bug46115.phpt
ext/spl/tests/countable_class_basic1.phpt

index 71207d8a25ee88e00a36b2328c315130b2c583c5..b585599131fdb76ad48b4f55b8c807e69e61bb15 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #46115 (Memory leak when calling a method using Reflection)
+--SKIPIF--
+<?php if (!extension_loaded('reflection')) die('skip Reflection extension not loaded'); ?>
 --FILE--
 <?php
 $h = new RecursiveArrayIterator(array());
index 0f712cb8b8be9c97c57f9cbea782bec4b73d5b3e..449fc71701979874af855393de0451406265c366 100644 (file)
@@ -1,13 +1,7 @@
 --TEST--
 SPL: Test shape of interface Countable.
 --SKIPIF--
-<?php 
-// Skip the test case if Standard PHP Library(spl) is not installed
-  if( !extension_loaded('spl'))
-  {
-     die('skip spl is not installed');
-  }
-?>
+<?php if (!extension_loaded('spl') || !extension_loaded('reflection')) print 'skip'; ?>
 --FILE--
 <?php
 ReflectionClass::export('Countable');