]> granicus.if.org Git - php/commitdiff
Remove superfluous SKIPIF sections in more tests
authorGabriel Caruso <carusogabriel34@gmail.com>
Sat, 3 Feb 2018 14:24:56 +0000 (12:24 -0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 4 Feb 2018 15:57:08 +0000 (16:57 +0100)
90 files changed:
ext/com_dotnet/tests/bug45280.phpt
ext/dom/tests/bug74416.phpt
ext/gd/tests/bug75437.phpt
ext/mysqli/tests/bug74737.phpt
ext/mysqli/tests/bug75434.phpt
ext/openssl/tests/bug75307.phpt
ext/pdo/tests/pdo_014.phpt
ext/pdo/tests/pdo_031.phpt
ext/phar/tests/bug74383.phpt
ext/phar/tests/bug74386.phpt
ext/phar/tests/create_new_and_modify.phpt
ext/phar/tests/create_new_phar_c.phpt
ext/phar/tests/create_path_error.phpt
ext/phar/tests/phar_bz2.phpt
ext/phar/tests/phar_copy.phpt
ext/phar/tests/phar_dir_iterate.phpt
ext/phar/tests/phar_get_supportedcomp1.phpt
ext/phar/tests/phar_get_supportedcomp2.phpt
ext/phar/tests/phar_get_supportedcomp3.phpt
ext/phar/tests/phar_get_supportedcomp4.phpt
ext/phar/tests/phar_gzip.phpt
ext/phar/tests/phar_offset_check.phpt
ext/phar/tests/phar_offset_get_error.phpt
ext/phar/tests/phar_oo_001.phpt
ext/phar/tests/phar_oo_002.phpt
ext/phar/tests/phar_oo_003.phpt
ext/phar/tests/phar_oo_004.phpt
ext/phar/tests/phar_oo_005.phpt
ext/phar/tests/phar_oo_006.phpt
ext/phar/tests/phar_oo_007.phpt
ext/phar/tests/phar_oo_008.phpt
ext/phar/tests/phar_oo_010.phpt
ext/phar/tests/phar_oo_011.phpt
ext/phar/tests/phar_oo_011b.phpt
ext/phar/tests/phar_oo_012.phpt
ext/phar/tests/phar_oo_012_confirm.phpt
ext/phar/tests/phar_oo_012b.phpt
ext/phar/tests/phar_oo_getcontents.phpt
ext/phar/tests/phar_oo_getcontentsgz.phpt
ext/phar/tests/phar_oo_nosig.phpt
ext/phar/tests/refcount1.phpt
ext/phar/tests/tar/all.phpt
ext/phar/tests/tar/bug71317-duplicate-filename.phpt
ext/phar/tests/tar/bug71504.phpt
ext/phar/tests/tar/create_new_and_modify.phpt
ext/phar/tests/tar/phar_copy.phpt
ext/phar/tests/tar/refcount1.phpt
ext/phar/tests/tar/require_hash.phpt
ext/phar/tests/tar/tar_001.phpt
ext/phar/tests/tar/tar_002.phpt
ext/phar/tests/tar/tar_003.phpt
ext/phar/tests/tar/tar_004.phpt
ext/phar/tests/tar/tar_bz2.phpt
ext/phar/tests/tar/tar_gzip.phpt
ext/phar/tests/tar/tar_makebz2.phpt
ext/phar/tests/tar/tar_makegz.phpt
ext/phar/tests/tar/tar_nohash.phpt
ext/phar/tests/tar/tar_nostub.phpt
ext/phar/tests/tar/tar_openssl_hash.phpt
ext/phar/tests/zip/all.phpt
ext/phar/tests/zip/bug48791.phpt
ext/phar/tests/zip/bzip2.phpt
ext/phar/tests/zip/corrupt_001.phpt
ext/phar/tests/zip/corrupt_002.phpt
ext/phar/tests/zip/corrupt_003.phpt
ext/phar/tests/zip/corrupt_004.phpt
ext/phar/tests/zip/corrupt_005.phpt
ext/phar/tests/zip/corrupt_006.phpt
ext/phar/tests/zip/corrupt_007.phpt
ext/phar/tests/zip/corrupt_008.phpt
ext/phar/tests/zip/corrupt_009.phpt
ext/phar/tests/zip/corrupt_010.phpt
ext/phar/tests/zip/create_new_and_modify.phpt
ext/phar/tests/zip/odt.phpt
ext/phar/tests/zip/phar_copy.phpt
ext/phar/tests/zip/refcount1.phpt
ext/phar/tests/zip/unixzip.phpt
ext/phar/tests/zip/zlib.phpt
ext/session/tests/bug74541.phpt
ext/simplexml/tests/bug37565.phpt
ext/spl/examples/tests/dualiterator_001.phpt
ext/standard/tests/array/bug40191.phpt
ext/standard/tests/array/bug43505.phpt
ext/standard/tests/array/count_recursive.phpt
ext/standard/tests/array/sizeof_object1.phpt
ext/standard/tests/general_functions/ini_get_all.phpt
ext/zlib/tests/bug75299.phpt
sapi/cli/tests/004.phpt
sapi/cli/tests/005.phpt
sapi/cli/tests/006.phpt

index a1f7e18f731c02aafb940a1b5db3d43fa8f07b69..b530083cca337784d908a63e40caae0c1a91a9d0 100644 (file)
@@ -2,7 +2,6 @@
 Bug #45280 (Reflection of instantiated COM classes causes PHP to crash)
 --SKIPIF--
 <?php
-if (!extension_loaded("reflection")){ echo "skip, no reflection support present"; }
 if (!extension_loaded("com_dotnet")){ echo "skip COM/.Net support not present"; }
 ?>
 --FILE--
index d441c0a7abf2f64a39e0183060ba9b7d3ff72963..c96a927c2e845012fd9a6c7c7669abc6089d4f89 100644 (file)
@@ -3,7 +3,6 @@ Bug #74416 Wrong reflection on DOMNode::cloneNode
 --SKIPIF--
 <?php
 require_once('skipif.inc');
-if (!extension_loaded('reflection')) die('skip reflection extension not available');
 ?>
 --FILE--
 <?php
index bef00bb0f06a5d87c8fae272da8ec5476d10d59a..1dbbae64786e85df58b8b8fa3f983a702618c837 100644 (file)
@@ -2,7 +2,6 @@
 Bug #75437 Wrong reflection on imagewebp
 --SKIPIF--
 <?php
-if (!extension_loaded('reflection')) die('skip reflection not available');
 if (!extension_loaded('gd')) die('skip gd extension not available');
 if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.0', '<')) die("skip test requires GD 2.2.0 or higher");
 if (!function_exists('imagewebp')) die('skip WebP support not available');
index b45f843830f4dc939e77f2e70998ee23c322de9d..3651ac23cdeee0482a62c6a7439a89aef179cbba 100644 (file)
@@ -3,7 +3,6 @@ Bug #74737: Incorrect ReflectionFunction information for mysqli_get_client_info
 --SKIPIF--
 <?php
 require_once('skipif.inc');
-if (!extension_loaded('reflection')) { die("skip"); }
 ?>
 --FILE--
 <?php
index 788aa2cf4f75e7a7d0e00023278c2efbc037c07a..751ad4eb8f41754e61207fdab62b1f8b3eaa31a5 100644 (file)
@@ -3,7 +3,6 @@ Bug #75434 Wrong reflection for mysqli_fetch_all function
 --SKIPIF--
 <?php
 require_once('skipif.inc');
-if (!extension_loaded("reflection")) die("skip reflection extension not available");
 if (!stristr(mysqli_get_client_info(), 'mysqlnd')) die("skip: only available in mysqlnd");
 ?>
 --FILE--
index 606f7a523be892876c81247e8b16d33e0a2dcc8d..2b0cae3a97fee83ef66794751011ab904540a4c7 100644 (file)
@@ -3,7 +3,6 @@ Bug #75307 Wrong reflection for openssl_open function
 --SKIPIF--
 <?php
 if (!extension_loaded("openssl")) die("skip openssl not available");
-if (!extension_loaded("reflection")) die("skip reflection not available");
 ?>
 --FILE--
 <?php
index 7b93fb83a8037f8eeb4d17bf3c6a7c1bad7b4585..46841512a9a0a837cdd2bfd025be62f7ca17ec49 100644 (file)
@@ -3,8 +3,6 @@ PDO Common: PDOStatement SPL iterator
 --SKIPIF--
 <?php # vim:ft=php
 if (!extension_loaded('pdo')) die('skip');
-if (!extension_loaded('SPL')) die('skip SPL not available');
-if (!class_exists('IteratorIterator', false)) die('skip IteratorIterator class not present');
 $dir = getenv('REDIR_TEST_DIR');
 if (false == $dir) die('skip no driver');
 require_once $dir . 'pdo_test.inc';
@@ -17,8 +15,8 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
 $db = PDOTest::factory();
 
 $db->exec('CREATE TABLE test(id int NOT NULL PRIMARY KEY, val VARCHAR(10), grp VARCHAR(10))');
-$db->exec('INSERT INTO test VALUES(1, \'A\', \'Group1\')'); 
-$db->exec('INSERT INTO test VALUES(2, \'B\', \'Group2\')'); 
+$db->exec('INSERT INTO test VALUES(1, \'A\', \'Group1\')');
+$db->exec('INSERT INTO test VALUES(2, \'B\', \'Group2\')');
 $SELECT = 'SELECT val, grp FROM test';
 
 class Test
@@ -49,7 +47,7 @@ class PDOStatementAggregate extends PDOStatement implements IteratorAggregate
        private function __construct()
        {
                echo __METHOD__ . "\n";
-               $this->setFetchMode(PDO::FETCH_NUM);   
+               $this->setFetchMode(PDO::FETCH_NUM);
                /* default fetch mode is BOTH, so we see if the ctor can overwrite that */
        }
 
index 9065ce9719369ffd59b594421d34615c5b967a13..11894e9708048342f8d4b6c274f05f47e833a531 100644 (file)
@@ -3,19 +3,15 @@ PDO Common: PDOStatement SPL iterator
 --SKIPIF--
 <?php # vim:ft=php
 if (!extension_loaded('pdo')) die('skip');
-if (!extension_loaded('SPL')) die('skip SPL not available');
 $dir = getenv('REDIR_TEST_DIR');
 if (false == $dir) die('skip no driver');
 require_once $dir . 'pdo_test.inc';
-if (!class_exists('RecursiveArrayIterator', false)) die('skip Class RecursiveArrayIterator missing');
-if (!class_exists('RecursiveTreeIterator', false) && !file_exists(getenv('REDIR_TEST_DIR').'../../spl/examples/recursivetreeiterator.inc')) die('skip Class RecursiveTreeIterator missing');
 PDOTest::skip();
 ?>
 --FILE--
 <?php
-if (getenv('REDIR_TEST_DIR') === false) putenv('REDIR_TEST_DIR='.dirname(__FILE__) . '/../../pdo/tests/'); 
+if (getenv('REDIR_TEST_DIR') === false) putenv('REDIR_TEST_DIR='.dirname(__FILE__) . '/../../pdo/tests/');
 require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
-if (!class_exists('RecursiveTreeIterator', false)) require_once(getenv('REDIR_TEST_DIR').'../../spl/examples/recursivetreeiterator.inc'); 
 
 $data = array(
     array('10', 'Abc', 'zxy'),
index 4257629ff561ea1c0bb4682d809e964a446dedef..abe50831fcaf625259830b508aa8ec90609f0483 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 Phar: bug #74383: Wrong reflection on Phar::running
 --SKIPIF--
-<?php if (!extension_loaded("phar") || !extension_loaded('reflection')) die("skip"); ?>
+<?php if (!extension_loaded("phar")) die("skip"); ?>
 --FILE--
 <?php
 $rc = new ReflectionClass(Phar::class);
index 1cf86cae3e28501d50699576fe0f934d31c5ae44..0e60e0000990912ddb06826bccb6c94a24929aeb 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 Phar: bug #74386: Phar::__construct(): wrong number of parameters by reflection
 --SKIPIF--
-<?php if (!extension_loaded("phar") || !extension_loaded('reflection')) die("skip"); ?>
+<?php if (!extension_loaded("phar")) die("skip"); ?>
 --FILE--
 <?php
 $r = new ReflectionMethod(Phar::class, '__construct');
index 940e3e9776d86236c091acf12d1a7e286ce45134..029ea7a53f4f7be27b4837ac615b26ac03ae2724 100644 (file)
@@ -2,7 +2,6 @@
 Phar: create and modify phar
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=1
index 6beaa2eb61fb28b330f87b06a7df7971cf19e0fd..d32f758f93fd01af5cbf42f3d80a8f18530cf65f 100644 (file)
@@ -2,7 +2,6 @@
 Phar: create a completely new phar
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=1
index 3449b07fc6345728f069dd17189ca9f618fcc78e..fd200d8613d64b6f350d6fdf0440cedbf06d2894 100644 (file)
@@ -2,7 +2,6 @@
 Phar: create with illegal path
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=1
@@ -29,7 +28,7 @@ set_error_handler('error_handler');
 
 $count = 0;
 $checks = array(
-    '/', '.', '../', 'a/..', 'a/', 'b//a.php', 
+    '/', '.', '../', 'a/..', 'a/', 'b//a.php',
     "Font\xE5\x84\xB7\xE9\xBB\x91pro.ttf", //two valid multi-byte characters
     "\xF0\x9F\x98\x8D.ttf", // valid 4 byte char - smiling face with heart-shaped eyes
     "Font\xE9\xBBpro.ttf", //Invalid multi-byte character - missing last byte
@@ -81,4 +80,3 @@ string(5) "query"
 12:Error: file_put_contents(phar://%s): failed to open stream: phar error: invalid path "%s" contains illegal character
 13:Error: file_put_contents(phar://%s): failed to open stream: phar error: invalid path "%s" contains illegal character
 Error: Phar::offsetSet() expects parameter 1 to be a valid path, string given===DONE===
-
index 556123a85388f0c5e53c4d9ab54781f43f9faace..7328ba510b65e55d997b633b89b0096c7fd92e05 100644 (file)
@@ -3,7 +3,6 @@ Phar: bzipped phar
 --SKIPIF--
 <?php
 if (!extension_loaded("phar")) die("skip");
-if (!extension_loaded("spl")) die("skip SPL not available");
 if (!extension_loaded("bz2")) die("skip bz2 not available");
 ?>
 --INI--
@@ -62,4 +61,4 @@ bool(true)
 
 Warning: Phar::isFileFormat() expects parameter 1 to be integer, array given in %sphar_bz2.php on line %d
 Unknown file format specified
-===DONE===
\ No newline at end of file
+===DONE===
index 382b7f0754ba08a8dbc7ae299da7956897e759dd..8b270302eff64b75c25328193c7b2ad3b178be1e 100644 (file)
@@ -2,7 +2,6 @@
 Phar: copy()
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
 --INI--
 phar.readonly=0
@@ -81,4 +80,4 @@ file "a" cannot be copied to file "b", file must not already exist in phar %spha
 hi
 file "d" cannot be copied to file ".phar/stub.php", cannot copy to Phar meta-file in %sphar_copy2.phar.php
 file ".phar/stub.php" cannot be copied to file "d", cannot copy Phar meta-file in %sphar_copy2.phar.php
-===DONE===
\ No newline at end of file
+===DONE===
index 04968f28b5ba21931d0d220cd3dff006896961ec..6c04571d86c054cf346ce9ee740662fdbfffb336 100644 (file)
@@ -2,7 +2,6 @@
 Phar object: iterate test with sub-directories and RecursiveIteratorIterator
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
@@ -21,7 +20,7 @@ foreach (new RecursiveIteratorIterator($newphar) as $path => $obj) {
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
 __halt_compiler();
 ?>
index d32e12c0aba65737cd0d13b38dd6c5a58f7c8e09..fecb806f2ee9687c3113d8048fe3668c50a91e94 100644 (file)
@@ -2,7 +2,6 @@
 Phar::getSupportedCompression() (bz2 and zlib)
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("bz2")) die("skip bz2 not available"); ?>
 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
 --INI--
@@ -19,4 +18,4 @@ array(2) {
   [1]=>
   string(5) "BZIP2"
 }
-===DONE===
\ No newline at end of file
+===DONE===
index c60772491882c145ca43ce5d63fc213a8320a362..aa941d0e4b38c3953322f2aa26b8494cca0d75af 100644 (file)
@@ -2,7 +2,6 @@
 Phar::getSupportedCompression() (bz2 only)
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("bz2")) die("skip bz2 not available"); ?>
 <?php if (extension_loaded("zlib")) die("skip zlib is available"); ?>
 --INI--
@@ -17,4 +16,4 @@ array(1) {
   [0]=>
   string(5) "BZIP2"
 }
-===DONE===
\ No newline at end of file
+===DONE===
index c300407f3fa44bc0682efeb48481f67e86eced9c..fadb482042b4d1aedff8820618157fd1032a206c 100644 (file)
@@ -2,7 +2,6 @@
 Phar::getSupportedCompression() (zlib only)
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (extension_loaded("bz2")) die("skip bz2 is available"); ?>
 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
 --INI--
@@ -17,4 +16,4 @@ array(1) {
   [0]=>
   string(2) "GZ"
 }
-===DONE===
\ No newline at end of file
+===DONE===
index fba2c71bfcab9654204a3ac9619963b36de12d81..1d953e2e38f53cf330e97c96210a1dded26acbdf 100644 (file)
@@ -2,7 +2,6 @@
 Phar::getSupportedCompression() (none)
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (extension_loaded("bz2")) die("skip bz2 is available"); ?>
 <?php if (extension_loaded("zlib")) die("skip zlib is available"); ?>
 --FILE--
index f7cf7f0964b51a762070240169dc60f60b1a3f70..3308424fa9cd6c0245379ade60367e3ee7765f0d 100644 (file)
@@ -3,7 +3,6 @@ Phar: gzipped phar
 --SKIPIF--
 <?php
 if (!extension_loaded("phar")) die("skip");
-if (!extension_loaded("spl")) die("skip SPL not available");
 if (!extension_loaded("zlib")) die("skip zlib not available");
 ?>
 --INI--
index 7609f2051fd3b9b3df7d38f420a721036664b133..469dce6c11b4381746953447fbed776ec5180806 100644 (file)
@@ -2,7 +2,6 @@
 Phar: disallow stub and alias setting via offset*() methods
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=1
index dade4726d9bfdd0b3e3c29c7259bc8df4da187a6..8e96246eef33162fe3c53d52dd5e0e4cf40fc795 100644 (file)
@@ -2,7 +2,6 @@
 Phar: ignore filenames starting with / on offsetSet
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=1
index f40e678d95559e8de84e0d85cf5c7d5b0fa83c1b..7ee7ca6fa5f2ea545d802842c4f60175c6ce3bbc 100644 (file)
@@ -3,7 +3,6 @@ Phar object: basics
 --SKIPIF--
 <?php
 if (!extension_loaded("phar")) die("skip");
-if (!extension_loaded("spl")) die("skip SPL not available");
 ?>
 --INI--
 phar.require_hash=0
@@ -44,7 +43,7 @@ try {
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_001.phar.php');
 __halt_compiler();
 ?>
index 269d9e5b0c2737e453740a662409d09b4088f1ee..f62c9a509ab8254cdcd38bb7056f1716d0165739 100644 (file)
@@ -3,7 +3,6 @@ Phar object: iterator & entries
 --SKIPIF--
 <?php
 if (!extension_loaded("phar")) die("skip");
-if (!extension_loaded("spl")) die("skip SPL not available");
 ?>
 --INI--
 phar.readonly=1
@@ -48,7 +47,7 @@ foreach(new RecursiveIteratorIterator($phar) as $name => $ent)
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_002.phar.php');
 __halt_compiler();
 ?>
index 4395792632433e05a0a37936dbdfb70a370f0215..01ca493a2fd750b1f7568d86ffae66e09294f434 100644 (file)
@@ -2,7 +2,6 @@
 Phar object: entry & openFile()
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.require_hash=0
 --FILE--
@@ -26,7 +25,7 @@ foreach($phar as $name => $ent)
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_003.phar.php');
 __halt_compiler();
 ?>
index 3fc18dc65c86741a07ed09576ac97b6a5057ffcf..12492e2eefb0f4a9bfe140080d6ce7abedfaf23a 100644 (file)
@@ -3,7 +3,6 @@ Phar and DirectoryIterator
 --SKIPIF--
 <?php
 if (!extension_loaded("phar")) die("skip");
-if (!extension_loaded("spl")) die("skip SPL not available");
 ?>
 --INI--
 phar.require_hash=0
@@ -76,7 +75,7 @@ foreach($it as $name => $ent)
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_004.phar.php');
 __halt_compiler();
 ?>
index 7bc1db61d131fb249a089c8ae26dfd16cf6c8473..62887655b1a0d7c219aed09a6459f972cc5360b9 100644 (file)
@@ -3,7 +3,6 @@ Phar and RecursiveDirectoryIterator
 --SKIPIF--
 <?php
 if (!extension_loaded("phar")) die("skip");
-if (!extension_loaded("spl")) die("skip SPL not available");
 ?>
 --INI--
 phar.require_hash=0
@@ -29,7 +28,7 @@ foreach($it as $name => $ent)
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_005.phar.php');
 __halt_compiler();
 ?>
index 5d1d7052066c448ce63ee753ec0eb4a86c383f88..de9b499a8373eefd6eedcee231e95cb7a1247b54 100644 (file)
@@ -2,7 +2,6 @@
 Phar object: array access
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.require_hash=0
 --FILE--
@@ -37,7 +36,7 @@ echo $phar['b.php']->getFilename() . "\n";
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_006.phar.php');
 __halt_compiler();
 ?>
index d0b5aa5ecaec0daa567daac67d4f4b10f6cb0fbe..ff9c721150e0e41fd5378726ab1e72284d6ef0e2 100644 (file)
@@ -2,7 +2,6 @@
 Phar object: access through SplFileObject
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.require_hash=0
 --FILE--
@@ -58,7 +57,7 @@ var_dump($f->eof());
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_007.phar.php');
 __halt_compiler();
 ?>
index d95af571b3c042e02882de4c4447fcafbce8f344..dc9ab7f9ca7758bdf23750d36ee410a6b4a7e772 100644 (file)
@@ -2,7 +2,6 @@
 Phar object: iterating via SplFileObject
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.require_hash=0
 --FILE--
@@ -82,7 +81,7 @@ foreach($v as $k => $d)
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_008.phar.php');
 __halt_compiler();
 ?>
index 331d300a8c650807f3f5fafea5d3d02458200fe3..ca3abddfce6dc024f16f1c9e46bf0b0395937e23 100644 (file)
@@ -2,7 +2,6 @@
 Phar object: ArrayAccess and isset
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.require_hash=0
 --FILE--
@@ -35,7 +34,7 @@ var_dump(isset($phar['b']));
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_010.phar.php');
 __halt_compiler();
 ?>
index 01fa9f01e6ec4fcf7c3ed4ab13b3410b7ca80537..5b929363dbbcb1b60bf4281bee4345aabda1b58f 100644 (file)
@@ -2,7 +2,6 @@
 Phar object: add file
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
@@ -25,7 +24,7 @@ echo "\n";
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_011.phar.php');
 __halt_compiler();
 ?>
index 34cae0e760b737467d67758923af07d3587d86f2..d36c083dff30accfa287053aa057c9fa4ab1c0b2 100644 (file)
@@ -2,7 +2,6 @@
 Phar object: add file
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=1
 phar.require_hash=0
@@ -12,11 +11,11 @@ phar.require_hash=0
 try
 {
        $pharconfig = 0;
-       
+
        require_once 'files/phar_oo_test.inc';
-       
+
        $phar = new Phar($fname);
-       
+
        $phar['f.php'] = 'hi';
        var_dump(isset($phar['f.php']));
        echo $phar['f.php'];
@@ -30,7 +29,7 @@ catch (BadMethodCallException $e)
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_011b.phar.php');
 __halt_compiler();
 ?>
index b6f9f44b1e153e429c988830add19563c63d2c4c..f5566807fbeb8e5a7904ac012ed0187c457ac98b 100644 (file)
@@ -2,7 +2,6 @@
 Phar object: unset file
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
@@ -26,7 +25,7 @@ var_dump(isset($phar['f.php']));
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_012.phar.php');
 __halt_compiler();
 ?>
index ce5a58f212d7e0d56b962ef1696c06d5c8b1640f..d2798c3dd4dac7cdaf22d84e6cf1772430521125 100644 (file)
@@ -2,7 +2,6 @@
 Phar object: unset file (confirm disk file is changed)
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
@@ -29,7 +28,7 @@ var_dump(isset($phar['f.php']));
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_012_confirm.phar.php');
 __halt_compiler();
 ?>
index 066d3bc0687b1882a7b073c147def865974b1e57..c650a3ceff7376d2d20a494bb49764dcd8da2f3e 100644 (file)
@@ -2,7 +2,6 @@
 Phar object: unset file
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=1
 phar.require_hash=0
@@ -14,10 +13,10 @@ try
        $pharconfig = 0;
 
        require_once 'files/phar_oo_test.inc';
-       
+
        $phar = new Phar($fname);
        $phar->setInfoClass('SplFileObject');
-       
+
        $phar['f.php'] = 'hi';
        var_dump(isset($phar['f.php']));
        echo $phar['f.php'];
@@ -33,7 +32,7 @@ catch (BadMethodCallException $e)
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_012b.phar.php');
 __halt_compiler();
 ?>
index e42bca46fcf783326b7619d26637d3d6657c3596..e3a0c2dea74533126b3842c02e94379991f1ca3b 100644 (file)
@@ -2,7 +2,6 @@
 Phar object: getContent()
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 --FILE--
@@ -27,7 +26,7 @@ echo $e->getMessage(), "\n";
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
 __halt_compiler();
 ?>
@@ -36,4 +35,4 @@ file contents
 this works
 Phar error: Cannot retrieve contents, "a" in phar "%sphar_oo_getcontents.phar.php" is a directory
 Phar error: Cannot retrieve contents, "hi" in phar "%sphar_oo_getcontents.phar.php" is a directory
-===DONE===
\ No newline at end of file
+===DONE===
index a480a6963779d3b80d4f57fd1998d13d728f80b8..e77b5cad1a273cf480bae51991f3332b89154010 100644 (file)
@@ -2,7 +2,6 @@
 Phar object: getContent() (verify it works with compression)
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
 --INI--
 phar.readonly=0
@@ -22,7 +21,7 @@ echo $phar2['a']->getContent() . "\n";
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.phar.php');
 __halt_compiler();
@@ -31,4 +30,4 @@ __halt_compiler();
 bool(true)
 file contents
 this works
-===DONE===
\ No newline at end of file
+===DONE===
index d99222e12ce1a2e3b72cd4a90c732a659304e15d..5710f4fca53c988089a6eced358d23bb00d9bb65 100644 (file)
@@ -2,7 +2,6 @@
 Phar::getSignature() no signature
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.require_hash=0
 --FILE--
@@ -15,7 +14,7 @@ var_dump($phar->getSignature());
 ?>
 ===DONE===
 --CLEAN--
-<?php 
+<?php
 unlink(dirname(__FILE__) . '/files/phar_oo_test.phar.php');
 __halt_compiler();
 ?>
index 3c717eb37d0dbacf7ff8a86ff1c2dbd0ec58b448..e2cb3b8cffd610d8133eee7f0dde736b8679b5a0 100644 (file)
@@ -2,7 +2,6 @@
 Phar: test that refcounting avoids problems with deleting a file
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
index 9f693ff6aa5782d8ae8e7985c26fb3305cd0b925..848f50502d51c135692757724244eaaa71412dc4 100644 (file)
@@ -3,7 +3,6 @@ Phar: test that creation of tar-based phar generates valid tar with all bells/wh
 --SKIPIF--
 <?php
 if (!extension_loaded("phar")) die("skip");
-if (!extension_loaded("spl")) die("skip SPL not available");
 if (!extension_loaded("zlib")) die("skip zlib not available");
 if (!extension_loaded("bz2")) die("skip bz2 not available");
 ?>
index bcbccab1c80c803d1b1b893337120aa7a6154630..b8004138bc6ce0db137ea0916424940264715c28 100644 (file)
@@ -2,7 +2,6 @@
 Bug #71317: regression in opening tar based phar files
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
 --FILE--
 <?php
index e85078810ebac60de120a21540a0fcfb5094bc39..178d4ed750de5183acca1aaf4c070b9e46392f0e 100644 (file)
@@ -2,7 +2,6 @@
 Bug #71504: Parsing of tar file with duplicate filenames causes memory leak
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
 --FILE--
 <?php
index 7d8bcb17da095b33af6d2634f36132a0268e58c9..e8f0ecf0613fdaacc43d8e7f657221ebbd3d97eb 100644 (file)
@@ -2,7 +2,6 @@
 Phar: create and modify tar-based phar
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 --FILE--
index ed5cdac8bca59993aa2e780cc2cea1b06d8ba732..782bb4fb5da6c653114554f0d797a110118feefb 100644 (file)
@@ -2,7 +2,6 @@
 Phar: copy() tar-based
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
 --INI--
 phar.readonly=0
@@ -53,4 +52,4 @@ hihibool(true)
 file "/error/.." contains invalid characters upper directory reference, cannot be copied from "a" in phar %s
 bool(true)
 
-a: hib: hic: hi===DONE===
\ No newline at end of file
+a: hib: hic: hi===DONE===
index 9d1cb5e415e5df76b1f4af162ad3a9dd243e6bd5..7b4f05417a0bf45f6fa85eaefc51e0fb2ad18226 100644 (file)
@@ -2,7 +2,6 @@
 Phar: test that refcounting avoids problems with deleting a file tar-based
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
index 638534be1c8ebd48e057505daab5c5200e79901c..3841d1dce39d5d5cfcb65a772b0b49cf64b9d169 100644 (file)
@@ -2,7 +2,6 @@
 Phar: tar-based phar, require_hash=1, no signature
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=1
 phar.require_hash=0
index 500058b70d9793740610c5aa3d8674bb75ea8c97..a2c4f36fa3855446973c5ca99f67c2fcd637b7d0 100644 (file)
@@ -2,7 +2,6 @@
 Phar: tar-based phar corrupted
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --FILE--
 <?php
 include dirname(__FILE__) . '/files/make_invalid_tar.php.inc';
index 75fc220b40b5cc0a6b008077eeedd8dd3d3faaf3..7fc09c806f78ce8e221a5b14d9f4e9e1c54aadcc 100644 (file)
@@ -2,7 +2,6 @@
 Phar: tar-based phar corrupted 2
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 --FILE--
index 3dec34178413cd892df2b25fc620bbea85fae0c3..fe7e1d854e0860b84767d5fff6c4dfe2fea6cc08 100644 (file)
@@ -2,7 +2,6 @@
 Phar: tar-based phar, valid 1
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
index 3b28f47cecad5e9f11dd28cfc5e92bafa0ecf32c..d142857388ba6c08f55136b44843ce398af60bdd 100644 (file)
@@ -3,7 +3,6 @@ Phar: tar-based phar, tar phar with stub, mapPhar()
 --SKIPIF--
 <?php
 if (!extension_loaded("phar")) die("skip");
-if (!extension_loaded("spl")) die("skip SPL not available");
 ?>
 --INI--
 phar.readonly=0
index 61914f52c65335b4467446045450183d8e29306f..d7e6dc0e26e14913ab9a1c5331b8d52c0f1a6ab7 100644 (file)
@@ -3,7 +3,6 @@ Phar: tar-based phar, bzipped tar
 --SKIPIF--
 <?php
 if (!extension_loaded("phar")) die("skip");
-if (!extension_loaded("spl")) die("skip SPL not available");
 if (!extension_loaded("bz2")) die("skip bz2 not available");
 ?>
 --INI--
index 840e30ce6a91fbb0d47283e117bb1836d358ebbd..f64962c8c884adc01b2f5db846c3bea7fbfc67bc 100644 (file)
@@ -3,7 +3,6 @@ Phar: tar-based phar, gzipped tar
 --SKIPIF--
 <?php
 if (!extension_loaded("phar")) die("skip");
-if (!extension_loaded("spl")) die("skip SPL not available");
 if (!extension_loaded("zlib")) die("skip zlib not available");
 ?>
 --INI--
index f703b46924b0b6e1280ecb9ca69aef2833e32a74..ed614d894b80f005ef1b6c848e9411c5ddb05258 100644 (file)
@@ -2,7 +2,6 @@
 Phar: tar-based phar, make new bzipped tar
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("bz2")) die("skip bz2 not available"); ?>
 --INI--
 phar.readonly=0
index 46fe177611f394e45147eb2171ff1fa6d37d6004..7d6ea89fd05ac1121381f36c988e340a2e96e403 100644 (file)
@@ -2,7 +2,6 @@
 Phar: tar-based phar, make new gzipped tar
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
 --INI--
 phar.readonly=0
@@ -38,4 +37,4 @@ var_dump($phar2->isCompressed() == Phar::GZ);
 bool(true)
 bool(true)
 bool(true)
-===DONE===
\ No newline at end of file
+===DONE===
index dae2bb92a8c0e970266ae307563b9208dce0747a..3d1d0010a07276583e9f44f8dad7e2852fdab3d7 100644 (file)
@@ -2,7 +2,6 @@
 Phar: tar archive, require_hash=1, should not error out
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
 --INI--
 phar.readonly=1
index 0036662c385aa92485b234be691e120e8921744a..210f8815ec1a52e745f7071d1ff1ce37aa34bf28 100644 (file)
@@ -2,7 +2,6 @@
 Phar: tar-based phar, third-party tar with no stub, Phar->getStub()
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=1
 phar.require_hash=0
index 49ef77a44b7ac4c5b195a578dd16914214ad4a75..075136f68753896c1fd30b26872eed1e1e39d637 100644 (file)
@@ -2,7 +2,6 @@
 Phar: tar archive, require_hash=1, OpenSSL hash
 --SKIPIF--
 <?php if (!extension_loaded('phar')) die('skip'); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
 <?php if (!extension_loaded("openssl")) die("skip openssl not available"); ?>
 --INI--
index 82769345cef7fa9d4e5f4bba6c415cf53cdeeaa3..1b9f832fb518215643f1a0504ec0dd311fb930f8 100644 (file)
@@ -3,7 +3,6 @@ Phar: test that creation of zip-based phar generates valid zip with all bells/wh
 --SKIPIF--
 <?php
 if (!extension_loaded("phar")) die("skip");
-if (!extension_loaded("spl")) die("skip SPL not available");
 if (!extension_loaded("zlib")) die("skip zlib not available");
 if (!extension_loaded("bz2")) die("skip bz2 not available");
 ?>
index 45c527188b1e66af583fe5fb8c8bfd0fc77d1a8e..5ad1344bd7f34cbc23b95ba3e5c2d4934fc4b91d 100644 (file)
@@ -2,7 +2,6 @@
 Phar: Bug #48791: open office documents always reported as corrupted by phar extension
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
 --FILE--
 <?php
index a703ce60338932eb77683ca24f830906f947eee7..551e419b8757ddb45fbde7c99a9aff9c72e08686 100644 (file)
@@ -2,7 +2,6 @@
 Phar: process bzip2-compressed zip entry
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("bz2")) die("skip bz2 not available"); ?>
 --FILE--
 <?php
index 0b019c6d83c68d65715f0db86c9cea594c63bfcf..000018aab69794101517d214d990141502337a8a 100644 (file)
@@ -2,7 +2,6 @@
 Phar: corrupted zip (count mismatch)
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --FILE--
 <?php
 try {
index 86a271231df352cf8adf09cc1051bfb11f7cf520..345d1d81db957e5355d1b018c8d78754f13341b9 100644 (file)
@@ -2,7 +2,6 @@
 Phar: corrupted zip (no end of zip record)
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --FILE--
 <?php
 try {
index c41e0153d8cf8408fcf38c7534b0491c699919ac..40c5ff187775443217710cdb04f84e978151c51a 100644 (file)
@@ -2,7 +2,6 @@
 Phar: corrupted zip (truncated file comment)
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --FILE--
 <?php
 try {
index 3760e8f9ae6b9b806ace7490c67324f19f75f752..a36281151d2437c1b451cbc8e4f548e3ce2ea458 100644 (file)
@@ -2,7 +2,6 @@
 Phar: corrupted zip (central directory offset incorrect)
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --FILE--
 <?php
 try {
index 6b5d31d9671ebd6039593c02d62544d69070fb28..e3e0d88849d571c1bf8cc419e0a234612e8fbfca 100644 (file)
@@ -2,7 +2,6 @@
 Phar: encrypted zip
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --FILE--
 <?php
 try {
index 9c83617a9afe391f717acad7a1282addba555084..dd7937850f9447de3fe4f84c6cfc2ce3a8e52ea7 100644 (file)
@@ -2,7 +2,6 @@
 Phar: zip with file created from stdin
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --FILE--
 <?php
 try {
index 80c9139025efef9af629989f976bb94d4d8a19ee..52a6c1e79295aa0a395f6085ca6a8521cc796da8 100644 (file)
@@ -2,7 +2,6 @@
 Phar: corrupted zip (truncated filename record)
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --FILE--
 <?php
 try {
index 5a20f4d2ec62e7d3192445c1db203ccde15f91df..eb706b7e554c9a5e8d6dfcb341e21da27439908f 100644 (file)
@@ -2,7 +2,6 @@
 Phar: unsupported compression methods
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --FILE--
 <?php
 try {
index 91f142da7b218c9316b33fa97ed65d89fe56d0c9..0ca80c00c1e9a2c64c21a2a605ee0a9f554a8526 100644 (file)
@@ -2,7 +2,6 @@
 Phar: corrupted zip (extra field way too long)
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --FILE--
 <?php
 try {
index ead723c8250c9f0d02486d48b9309dc2351710c9..b95a03272afb577c04afe907ad7e2964f75cd566 100644 (file)
@@ -2,7 +2,6 @@
 Phar: unable to process zip (zip spanning multiple archives)
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --FILE--
 <?php
 try {
index c49ec513ff58847973e5fd8d32005ca19d446911..0941bb6e61446bd24b327785fb9c448b2b7b1e81 100644 (file)
@@ -2,7 +2,6 @@
 Phar: create and modify zip-based phar
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 --FILE--
index b007d447a82d379eef7fc5191d517dea09a750dd..20f9f112df33e3a18501fe19cc845daef859c2df 100644 (file)
@@ -2,7 +2,6 @@
 Phar: test a zip archive created by openoffice
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
 --FILE--
 <?php
index 14034c92c0d5f1e73ec4b33cbe188c2d002d8408..d4d00a125931b93f485b1a905424755d06b6d24c 100644 (file)
@@ -2,7 +2,6 @@
 Phar: copy() zip-based
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=1
@@ -52,4 +51,4 @@ hihibool(true)
 file "/error/.." contains invalid characters upper directory reference, cannot be copied from "a" in phar %s
 bool(true)
 
-a: hib: hic: hi===DONE===
\ No newline at end of file
+a: hib: hic: hi===DONE===
index 5b8085bdbc7f513589602f37c24f22a841261ce4..82a6f5218fbb14938d9a7b08c54c1036f8a02522 100644 (file)
@@ -2,7 +2,6 @@
 Phar: test that refcounting avoids problems with deleting a file zip-based
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --INI--
 phar.readonly=0
 phar.require_hash=0
index e2b95be93cbc53ed27aecb73f897a3f7eea01dbc..d6cbe47898e52581a323369117c841c09385d372 100644 (file)
@@ -2,7 +2,6 @@
 Phar: test a zip archive created by unix "zip" command
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 --FILE--
 <?php
 $a = new PharData(dirname(__FILE__) . '/files/zip.zip');
index c7494e2c61edfe93bbf19b5d6817ae8836102199..bb3e012be2643277fced43cd1131b68bea0ffa1f 100644 (file)
@@ -2,7 +2,6 @@
 Phar: process zlib-compressed zip alias
 --SKIPIF--
 <?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
 --FILE--
 <?php
index 8c70ebe1266c41aa33127aa7b42baa32297097b6..dec2f25b5d47744a489f354b4e9a0dbcda8138c8 100644 (file)
@@ -3,7 +3,6 @@ Bug #74541 Wrong reflection on session_start()
 --SKIPIF--
 <?php
 include('skipif.inc');
-if (!extension_loaded('reflection')) die("skip");
 ?>
 --FILE--
 <?php
index 7d9675e3fd41cc2ee1551dad362a374372d44ac4..24500d09b1fa28bd68d47ac041049c48079f41b2 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 Bug #37565 (Using reflection::export with simplexml causing a crash)
 --SKIPIF--
-<?php if (!extension_loaded("simplexml") || !extension_loaded('reflection')) print "skip"; ?>
+<?php if (!extension_loaded("simplexml")) print "skip"; ?>
 --FILE--
 <?php
 
index 53c11537af1a3327e5692a8ab7c6a90da8b73145..eb92347d51ab4f707eb80a7d17bd2ac497ea8f2f 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 SPL: DualIterator
---SKIPIF--
-<?php if (!extension_loaded("spl") || !extension_loaded("reflection")) print "skip"; ?>
 --FILE--
 <?php
 
@@ -15,8 +13,8 @@ spl_autoload_register('spl_examples_autoload');
 function test($a, $b, $identical = false)
 {
        var_dump(DualIterator::compareIterators(
-                                       new RecursiveArrayIterator($a), 
-                                       new RecursiveArrayIterator($b), 
+                                       new RecursiveArrayIterator($a),
+                                       new RecursiveArrayIterator($b),
                                        $identical));
 }
 
index 244ce787afbfd4ad867298528dae754920b500ab..f5e439821db06d1bdbbd6b5431f6eda1a01feafd 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Bug #40191 (use of array_unique() with objects triggers segfault)
---SKIPIF--
-<?php if (!extension_loaded('spl')) die("skip SPL is not available"); ?>
 --FILE--
 <?php
 
@@ -15,7 +13,7 @@ var_dump($arr);
 
 echo "Done\n";
 ?>
---EXPECTF--    
+--EXPECTF--
 Warning: array_unique() expects parameter 1 to be array, object given in %s on line %d
 NULL
 Done
index 219bbfe292e98fce96eb4c062ec64a4cc48b2ac8..802534dfecbbbcae1e950420df5aafe04f8c954e 100644 (file)
@@ -2,8 +2,6 @@
 Bug #43505 (Assign by reference bug)
 --INI--
 error_reporting=0
---SKIPIF--
-<?php if (!extension_loaded('spl')) die("skip SPL is not available"); ?>
 --FILE--
 <?php
 class Test implements Countable {
@@ -33,4 +31,3 @@ array(1) {
   ["test"]=>
   &NULL
 }
-
index b903d8b1892360305fd11fbd7eaf1e1bc2360509..dcef3bd47b2b268d0135356b36a1e2f6f9f16ec2 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Test count() function 
---SKIPIF--
-<?php if (!extension_loaded("spl")) die("skip no SPL extension"); ?>
 --FILE--
 <?php
 /* Prototype: int count ( mixed $var [, int $mode] );
@@ -48,9 +46,9 @@ $count_array = array(
   array( "a" => 1, "b" => -2.344, "b" => "string", "c" => NULL, "d" => -2.344),
   array( 4 => 1, 3 => -2.344, "3" => "string", "2" => NULL,
          1 => -2.344, array()),
-  array( TRUE => TRUE, FALSE => FALSE, "" => "", " " => " ", 
+  array( TRUE => TRUE, FALSE => FALSE, "" => "", " " => " ",
         NULL => NULL, "\x000" => "\x000", "\000" => "\000"),
-  array( NULL, 1.23 => "Hi", "string" => "hello", 
+  array( NULL, 1.23 => "Hi", "string" => "hello",
          array("" => "World", "-2.34" => "a", "0" => "b"))
 );
 
@@ -58,14 +56,14 @@ $i = 0;
 foreach ($count_array as $count_value) {
   echo "\n-- Iteration $i --\n";
   print "COUNT_NORMAL is ".count($count_value, COUNT_NORMAL)."\n";
-  print "COUNT_RECURSIVE is ".count($count_value, COUNT_RECURSIVE)."\n";  
+  print "COUNT_RECURSIVE is ".count($count_value, COUNT_RECURSIVE)."\n";
   $i++;
 }
 
 
 /* Testing count() by passing constant with no second argument */
 print "\n-- Testing count() on constants with no second argument --\n";
-print "COUNT_NORMAL: should be 1, is ".count(100)."\n"; 
+print "COUNT_NORMAL: should be 1, is ".count(100)."\n";
 print "COUNT_NORMAL: should be 1, is ".count(-23.45)."\n";
 
 print "\n-- Testing count() on NULL and Unset variables --\n";
@@ -106,13 +104,13 @@ echo "\n-- Testing count() on arrays containing references --\n";
 $arr = array(1, array("a", "b", "c"));
 $arr[2] = &$arr[1];
 
-$mode_arr = array( COUNT_NORMAL, COUNT_RECURSIVE, 0, 1, -1, -1.45, 2, TRUE, 
+$mode_arr = array( COUNT_NORMAL, COUNT_RECURSIVE, 0, 1, -1, -1.45, 2, TRUE,
                    FALSE, NULL);
 for( $i =0; $i < count( $mode_arr ); $i++) {
   echo "For mode '$mode_arr[$i]' count is => ";
   var_dump(count($arr, $mode_arr[$i]));
 }
-  
+
 
 echo "\n-- Testing error conditions --";
 var_dump( count() );  // No. of args = 0
index 4705996054d4f3b511df90909d6e4dd0e1fba082..e040585585be67e93e1ad7182436a6cea3c93614 100644 (file)
@@ -1,17 +1,9 @@
 --TEST--
 Test sizeof() function : object functionality - object with Countable interface
---SKIPIF--
-<?php 
-// Skip the test case if Standard PHP Library(spl) is not installed
-  if( !extension_loaded('spl'))
-  {
-     die('skip spl is not installed');
-  }
-?>
 --FILE--
 <?php
 /* Prototype  : int sizeof($mixed var[, int $mode])
- * Description: Counts an elements in an array. If Standard PHP library is installed, 
+ * Description: Counts an elements in an array. If Standard PHP library is installed,
  * it will return the properties of an object.
  * Source code: ext/standard/basic_functions.c
  * Alias to functions: count()
@@ -20,12 +12,12 @@ Test sizeof() function : object functionality - object with Countable interface
 echo "*** Testing sizeof() : object functionality ***\n";
 
 echo "-- Testing sizeof() with an object which implements Countable interface --\n";
-class sizeof_class implements Countable 
+class sizeof_class implements Countable
 {
   public $member1;
   private $member2;
   protected $member3;
+
   public function count()
   {
     return 3; // return the count of member variables in the object
index 005bbb5b4e0f5f3dfe7566f44eaef24a2a5e85bb..a90a6e83d283495f25748834c2e27885e6c256be 100644 (file)
@@ -4,7 +4,6 @@ ini_get_all() tests
 pcre.backtrack_limit=1000000
 pcre.recursion_limit=100000
 --SKIPIF--
-<?php if (!extension_loaded("reflection")) die("skip"); ?>
 <?php if (!PCRE_JIT_SUPPORT) die("skip no pcre jit support"); ?>
 --FILE--
 <?php
@@ -21,7 +20,7 @@ var_dump(ini_get_all("", ""));
 
 echo "Done\n";
 ?>
---EXPECTF--    
+--EXPECTF--
 string(5) "array"
 
 Warning: ini_get_all(): Unable to find extension '' in %s on line %d
index 1886b3ecafcdecfcec17f2efb196a2525b9b1d63..b9a9439f2e18bfffcfdc02757855ca0faa50dd58 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 Bug #75299 Wrong reflection on inflate_init and inflate_add
 --SKIPIF--
-<?php if (!extension_loaded("zlib") || !extension_loaded('reflection')) die("skip"); ?>
+<?php if (!extension_loaded("zlib")) die("skip"); ?>
 --FILE--
 <?php
 $r = new ReflectionFunction('inflate_init');
index 378515d46447d928b32abe4ffb59273c95ae27d0..0248525dab2a68c0c4a50d9281793c2af23598db 100644 (file)
@@ -1,11 +1,8 @@
 --TEST--
 show information about function
 --SKIPIF--
-<?php 
+<?php
 include "skipif.inc"; 
-if (!extension_loaded("reflection")) {
-       die("skip reflection extension required");
-}
 ?>
 --FILE--
 <?php
@@ -18,7 +15,7 @@ var_dump(`$php -n --rf phpinfo`);
 
 echo "Done\n";
 ?>
---EXPECTF--    
+--EXPECTF--
 string(45) "Exception: Function unknown() does not exist
 "
 string(42) "Exception: Function echo() does not exist
index 5a1e8b8fb18f312f669fd3d7104f3c95eb69f1d6..0790904f8cd3df5ca2fb7c52b20adae568fd5486 100644 (file)
@@ -1,11 +1,8 @@
 --TEST--
 show information about class
 --SKIPIF--
-<?php 
+<?php
 include "skipif.inc"; 
-if (!extension_loaded("reflection")) {
-    die("skip reflection extension required");
-}
 ?>
 --FILE--
 <?php
@@ -18,7 +15,7 @@ var_dump(`"$php" -n --rc exception`);
 
 echo "Done\n";
 ?>
---EXPECTF-- 
+--EXPECTF--
 string(40) "Exception: Class unknown does not exist
 "
 string(183) "Class [ <internal:Core> class stdClass ] {
index 72f0c5dfa5a4aa1ab39d6a777f96da36c7987f70..fc3032602fb9f6867ec3ce06f7c9229aede4397b 100644 (file)
@@ -1,10 +1,10 @@
 --TEST--
 show information about extension
 --SKIPIF--
-<?php 
-include "skipif.inc"; 
-if (!extension_loaded("reflection") || !extension_loaded("session")) {
-       die("skip reflection and session extensions required");
+<?php
+include "skipif.inc";
+if (!extension_loaded("session")) {
+       die("skip session extension required");
 }
 if (PCRE_JIT_SUPPORT == false) {
        die ("skip not pcre jit support builtin");
@@ -23,7 +23,7 @@ var_dump(`$php -n --re pcre`);
 
 echo "Done\n";
 ?>
---EXPECTF--    
+--EXPECTF--
 string(44) "Exception: Extension unknown does not exist
 "
 string(37) "Exception: Extension  does not exist