]> granicus.if.org Git - php/commitdiff
Add missing SKIPIF sections
authorGabriel Caruso <carusogabriel34@gmail.com>
Sat, 3 Feb 2018 04:33:09 +0000 (02:33 -0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sat, 3 Feb 2018 12:54:34 +0000 (13:54 +0100)
56 files changed:
ext/fileinfo/tests/precedural_finfo_in_method.phpt
ext/filter/tests/filter_ipv4_rfc6890.phpt
ext/gmp/tests/bug50175.phpt
ext/gmp/tests/bug67917.phpt
ext/gmp/tests/bug69803.phpt
ext/gmp/tests/gmp_binomial.phpt
ext/gmp/tests/gmp_kronecker.phpt
ext/gmp/tests/gmp_lcm.phpt
ext/gmp/tests/gmp_perfect_power.phpt
ext/gmp/tests/unserialize_with_reference.phpt
ext/hash/tests/bug73127.phpt
ext/hash/tests/hash_equals.phpt
ext/iconv/tests/bug69840.phpt
ext/intl/tests/bug75318.phpt
ext/json/tests/bug73991.phpt
ext/json/tests/json_decode_exceptions.phpt
ext/json/tests/json_encode_exceptions.phpt
ext/json/tests/json_exceptions_error_clearing.phpt
ext/ldap/tests/ldap_exop_refresh.phpt
ext/ldap/tests/ldap_set_option_reqcert_basic.phpt
ext/mbstring/tests/bug62934.phpt
ext/mbstring/tests/bug65544.phpt
ext/mbstring/tests/bug69267.phpt
ext/mbstring/tests/bug71298.phpt
ext/mbstring/tests/bug72399.phpt
ext/mbstring/tests/bug73532.phpt
ext/mbstring/tests/bug73646.phpt
ext/mbstring/tests/casefolding.phpt
ext/mbstring/tests/casemapping.phpt
ext/mbstring/tests/mb_convert_case_invalid_mode.phpt
ext/mbstring/tests/zend_multibyte-01.phpt
ext/mbstring/tests/zend_multibyte-02.phpt
ext/mbstring/tests/zend_multibyte-03.phpt
ext/mbstring/tests/zend_multibyte-04.phpt
ext/mbstring/tests/zend_multibyte-05.phpt
ext/mbstring/tests/zend_multibyte-06.phpt
ext/mbstring/tests/zend_multibyte-07.phpt
ext/mbstring/tests/zend_multibyte-08.phpt
ext/mbstring/tests/zend_multibyte-09.phpt
ext/mbstring/tests/zend_multibyte-10.phpt
ext/mbstring/tests/zend_multibyte-11.phpt
ext/mbstring/tests/zend_multibyte-12.phpt
ext/mbstring/tests/zend_multibyte-13.phpt
ext/mbstring/tests/zend_multibyte-14.phpt
ext/mbstring/tests/zend_multibyte-15.phpt
ext/mbstring/tests/zend_multibyte-16.phpt
ext/simplexml/tests/SimpleXMLElement_getDocNamespaces.phpt
ext/simplexml/tests/SimpleXMLElement_xpath.phpt
ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt
ext/simplexml/tests/bug53033.phpt
ext/simplexml/tests/bug54973.phpt
ext/soap/tests/bug70211.phpt
ext/xml/tests/bug73135.phpt
ext/zlib/tests/bug73944.phpt
ext/zlib/tests/dictionary_usage.phpt
ext/zlib/tests/gzgetss.phpt

index 8495d4cc1eca324bb45488a6cd9bc544d136b257..539473fd95fcfe7dbb1f5423c4df57aa3ecee48e 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Using procedural finfo API in a method
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 
index 157de778297f2e5c63fa26d22143395a9ab1b3eb..f232f9f04dc2aada3236d252eb97986b0b8ac94f 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #71745 FILTER_FLAG_NO_RES_RANGE does not cover whole 127.0.0.0/8 range
+SKIPIF--
+<?php if (!extension_loaded('filter')) die('skip filter extension not loaded'); ?>
 --FILE--
 <?php
 //https://tools.ietf.org/html/rfc6890#section-2.1
@@ -78,8 +80,7 @@ foreach ($reservedRanges as $key => $range) {
        var_dump(filter_var($max, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_RES_RANGE));
 }
 
-
-
+?>
 --EXPECT--
 string(10) "10.0.0.0/8"
 bool(false)
index 0998e029c3a1d70017b5ee148df2afbf08a775e5..4c12aad667f52a0821de09f25bce423fea3b52ca 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #50175: gmp_init() results 0 on given base and number starting with 0x or 0b
+--SKIPIF--
+<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
 --FILE--
 <?php
 
index 93d46cbb662d867d94712222b82278f6848e2202..ce376349012b9ce2d9f25afb323803efeefadcbc 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #67917: Using GMP objects with overloaded operators can cause memory exhaustion
+--SKIPIF--
+<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
 --FILE--
 <?php
 
index e158cc5c0c2627cd9fd1f19e371a38a0e0c884f4..32e52dbad0ca216b1a2a0ca26713eb287e4b59f4 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #69803: gmp_random_range() modifies second parameter if GMP number
+--SKIPIF--
+<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
 --FILE--
 <?php
 
index 9c280c78df055408987a3b51b32154d181517d91..85b956f3902212ecc420cdad0e0ff97ca5720ae5 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 gmp_binomial(): Binomial coefficients
+--SKIPIF--
+<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
 --FILE--
 <?php
 
index 8bfa876ee1b8969cd1ce4123b0aa591483f8de42..355d7d225697d7bee59ec70dab8cad3517fd102a 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 gmp_kronecker(): Kronecker symbol
+--SKIPIF--
+<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
 --FILE--
 <?php
 
index 1534b3ff3ad016bb0c5ae81e4e732dcb4e6170af..6e2d1e88076e72cd76bab59ddf97ebeb6a44baaa 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 gmp_lcm(): Least common multiple
+--SKIPIF--
+<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
 --FILE--
 <?php
 
index df37f4eeebee204d7bc2c3767ae3564afb05f86e..8c316bd2c9f07bbe2a5a578f7bb45daa0bbeb09e 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 gmp_perfect_power(): Check if number is a perfect power
+--SKIPIF--
+<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
 --FILE--
 <?php
 
index b733430a3870b07a59be2cbaf13064cea7965de1..a8f95e5339fddb81e5237b12c718b15384807c25 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Unserialize GMP instance with internal reference to itself
+--SKIPIF--
+<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
 --FILE--
 <?php
 $s = 'C:3:"GMP":23:{s:1:"2";a:1:{i:46;R:1;}}';
index d9f1f7dca1b81b60a51f0aca2267590fa85053b7..a0d5dec49f65a7612a489ada84e57574f31c3b4c 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #73127 (gost-crypto hash incorrect if input data contains long 0xFF sequence)
+--SKIPIF--
+<?php if(!extension_loaded('hash')) die('skip hash extension not loaded'); ?>
 --FILE--
 <?php // $Id$
 
index 8f87985f47a360d57d3469195c93d7de09fda569..25304f6b0ab7951db4d32a8098c2e2d1c60635b1 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 hash_equals() function
+--SKIPIF--
+<?php if(!extension_loaded('hash')) die('skip hash extension not loaded'); ?>
 --FILE--
 <?php
 var_dump(hash_equals("same", "same"));
@@ -15,6 +17,7 @@ var_dump(hash_equals(123, 123));
 var_dump(hash_equals(null, ""));
 var_dump(hash_equals(null, 123));
 var_dump(hash_equals(null, null));
+?>
 --EXPECTF--
 bool(true)
 bool(false)
index af79bbcdd6a10adf1500f2f488a9929b66c52244..93bda9a731d22345c4846cf06b54cdd9dd67fa84 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #69840 (iconv_substr() doesn't work with UTF-16BE)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 $str = iconv_substr("a\x00b\x00", 0, 1, 'UTF-16LE');
index 7235846ea3aeca8bd2bea8bcb5eee9bbe6c380b7..1328851f9eb4f4ccce924896ad971d9d12913c41 100644 (file)
@@ -1,6 +1,6 @@
 --TEST--
 Bug #75318 (The parameter of UConverter::getAliases() is not optional)
---SKIP--
+--SKIPIF--
 <?php
 if (!extension_loaded('intl')) die('skip intl extension is not available');
 ?>
index 06aba555f0c5a63a71a174c2494f65f6d7712170..fc0be19a92969c108edeeb21658589dc573a3f21 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Allow JSON_OBJECT_AS_ARRAY to have an effect
+--SKIPIF--
+<?php if(!extension_loaded('json')) die('skip json extension not loaded') ?>
 --FILE--
 <?php
 
@@ -9,6 +11,7 @@ var_dump(json_decode($json, false));
 var_dump(json_decode($json, true));
 var_dump(json_decode($json, null, 512, 0));
 var_dump(json_decode($json, null, 512, JSON_OBJECT_AS_ARRAY));
+?>
 --EXPECTF--
 object(stdClass)#%d (1) {
   ["foo"]=>
index e71a3a54c00d66f119cc0b96766aca319f05e32d..14cf59fd02e044b466492f53bc26a886623bcdab 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test json_decode() function : JSON_THROW_ON_ERROR flag
+--SKIPIF--
+<?php if(!extension_loaded('json')) die('skip json extension not loaded') ?>
 --FILE--
 <?php
 
index 7da2f9cdd0979d0cc21653dd2908fe8e1df03d05..507f16ede9320a1587894ae6dabace77396dc34c 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test json_encode() function : JSON_THROW_ON_ERROR flag
+--SKIPIF--
+<?php if(!extension_loaded('json')) die('skip json extension not loaded') ?>
 --FILE--
 <?php
 
index e55be5e02b8ae73fd1f80f252dc0be619b1569ab..6d01dd7c33d48a44ba75260563b739aeaf5959f9 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 JSON_THROW_ON_ERROR: global error flag untouched
+--SKIPIF--
+<?php if(!extension_loaded('json')) die('skip json extension not loaded') ?>
 --FILE--
 <?php
 
index 170f013943acdf034ad9d7b5505cc668d1b27bce..613a4fbb2635221ba17d52f9cba117514a202bd9 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 ldap_exop_refresh() - Test LDAP refresh extended operation
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --CREDITS--
 Emmanuel Dreyfus <manu@netbsd.org>
 --SKIPIF--
@@ -7,7 +9,7 @@ Emmanuel Dreyfus <manu@netbsd.org>
 <?php require_once('skipifbindfailure.inc'); ?>
 <?php
        $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
-       $r = ldap_read($link, '', 'objectClass=*', array('dynamicsubtrees')),
+       $r = ldap_read($link, '', 'objectClass=*', array('dynamicsubtrees'));
        $info = ldap_get_entries($link, $r)[0];
        if (!isset($info['dynamicsubtrees'])) {
                die("Overlay DDS not available");
index e31bf350adc2964f8d0a243b38df0d692c28c346..a8d23b95921a1ae0c31a9574e8928e6b89225dd7 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 ldap_option_reqcert_basic() - Error test for TLS require cert ldap option
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --CREDITS--
 Edwin Hoksberg <edwin@edwinhoksberg.nl>
 --FILE--
index f3521a97c6dd098fbf58a29cfd3d3d7ef1cf2809..8e85ae7e22b842bf90b8ce01306f1688653d2b13 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #62934: mb_convert_kana() does not convert iteration marks
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 echo mb_convert_kana('あゝすゞめアヽスヾメ', 'C', 'UTF-8') . "\n";
index 904b6d6611a2c8ec3b8c16dca52741f2bfd1c1bc..0a8b5a7cda01c3f3fc100126cc396fef23383fde 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #65544: mb title case conversion-first word in quotation isn't capitalized
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 var_dump(mb_convert_case("\"or else it doesn't, you know. the name of the song is called 'haddocks' eyes.'\"", MB_CASE_TITLE));
index d8ca541e11768aefeb46f575eadadd20da36e73a..1f29d319aaf068cbe78ee7838807d43909102dfa 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #69267: mb_strtolower fails on titlecase characters
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 
index f69ba29cbb0d0fddaa904ef0632c4559d47f63fb..7defc469db374ed99a29f9a6fa8d9cc50e5cd3be 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
-Bug #71298: MB_CASE_TITLE misbehaves with curled apostrophe/quote (HTML &rsquo;) 
+Bug #71298: MB_CASE_TITLE misbehaves with curled apostrophe/quote (HTML &rsquo;)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 echo mb_convert_case("People's issues versus people’s issues", MB_CASE_TITLE);
index ba6ffb2cb133306f31aa6dc2b54b47624179a66b..7ed9a023f9379fd9d89017806db42c3dd98c0d5e 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #72399 (Use-After-Free in MBString (search_re))
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 $var5 = mbereg_search_init("","2");
index 0bc838b0755297bb8e6fb488fcb0f10de8e55efe..8173a20f68d3007b03bfebd668519cd8cf2e5bc3 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #73532 (Null pointer dereference in mb_eregi)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 var_dump(mb_eregi("a", "\xf5"));
index a6aefb22d44b8f61f602bafa45aa1044cea07233..43c1dc7a08597a184c4c805792458b8541a67f2c 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #73646 (mb_ereg_search_init null pointer dereference)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 
index 34f7984b076946ad1736aa87a2f052febc69aa36..1a68e8404023c9902cdc773d3a25b96068bf5f35 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Case-insensitive string comparisons use case folding
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 
index 1f0e9fb1d5ba196e12329e273c5d99a65c55730e..3e2838392bf545309cc804bdb17ae35d980d2b51 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Unicode case mapping
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 
index af59cd21065f7c7e6c5ac18e679c687e80a7c7f8..540463143a46c477dd4e5a2e720aa1e86f806471 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Calling mb_convert_case() with an invalid casing mode
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 
index f2403abcac912ac672e9507b6f96d77f253f55b4..5802cf2f21db139a28e50bee303a58765b028631 100644 (file)
@@ -1,6 +1,7 @@
 --TEST--
 zend multibyte (1)
 --SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 zend.multibyte=On
 zend.script_encoding=Shift_JIS
index 7db444841ec37cbcd70a9e70b826d1f83d25f6dd..43eb0aebd89a24916aa25741b58e5c4fc26f43aa 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 zend multibyte (2)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 error_reporting=E_ALL & ~E_DEPRECATED
 zend.multibyte=On
index 99c58bce709445ef877cd64efac2048323940971..b7e13d46edcb6c529b2f1cd7faaa24c655b954ad 100644 (file)
@@ -1,6 +1,7 @@
 --TEST--
 zend multibyte (3)
 --SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 zend.multibyte=On
 zend.script_encoding=UTF-8
index e7fdf81cdd25342836a71ddcfe2fab98242d888e..5cb3af347269af7d14492a2f1028366eb0785f28 100644 (file)
@@ -1,6 +1,7 @@
 --TEST--
 zend multibyte (4)
 --SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 zend.multibyte=On
 zend.script_encoding=CP932
index 3dd56d043d2187f479a5a1deb756e8e8e3c2f033..4d0c236b7a664bd0aeff6fb3847c0c83e10a64a6 100644 (file)
@@ -1,6 +1,7 @@
 --TEST--
 zend multibyte (5)
 --SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 zend.multibyte=On
 zend.script_encoding=EUC-JP
index 7eeac1d3531dab35f6b9c046bb2226f0d29f506b..71e5c903b97d60a7c13286528529897308fec537 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 zend multibyte (6)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 zend.multibyte=On
 zend.script_encoding=EUC-JP
index 685c6f1f04a82f524d3bc6e25235587ea3412797..b81104ca3efbe20d844b09dbb4b39c089ab04acf 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 zend multibyte (7)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 error_reporting=E_ALL & ~E_DEPRECATED
 zend.multibyte=On
index 9e5b75eaddba00f77f2cdf474462213eaeadafa7..1030dfdc91f71564237bc44ea933ba7c69d0dbd1 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 zend multibyte (8)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 zend.multibyte=On
 zend.script_encoding=ISO-8859-1
index f9b8bf734f7d95c87ba39aa5f689e175f8715f85..17d5840e478b292917ebdb3c34b6a2aa26856b3d 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 zend multibyte (9)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 error_reporting=E_ALL & ~E_DEPRECATED
 zend.multibyte=On
index ef8ce9d0bcb797360dcd64de7c2a1d8b2c550f6e..ad70b853aff6f1e27cdf351c6539cc511fd5cf9e 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 zend multibyte (10)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 zend.multibyte=1
 --FILE--
@@ -9,4 +11,4 @@ declare(encoding="ISO-8859-1");
 echo "ok\n";
 ?>
 --EXPECTF--
-ok
\ No newline at end of file
+ok
index 0f9874b538d08f5ad6bd441538edc504f8041ad0..c5e02eeae3daa5b0af34e192fb4e1278931a0725 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 zend multibyte (11)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 zend.multibyte=1
 --FILE--
@@ -10,4 +12,4 @@ declare(encoding="ISO-8859-15") {
 }
 ?>
 --EXPECTF--
-Fatal error: Encoding declaration pragma must be the very first statement in the script in %s on line %d
\ No newline at end of file
+Fatal error: Encoding declaration pragma must be the very first statement in the script in %s on line %d
index bbfa25d97f55a85963e90678ec05fafa0fc6b547..844e3bc49914990886bb1c5e1ab77eeaa715c848 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 zend multibyte (12)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 zend.multibyte=1
 --FILE--
index 6eaef985f5ec6f5b7513ae17156fdb34591ad159..f3a18fe48186437536fd56ea40accfaef2443735 100644 (file)
@@ -1,6 +1,7 @@
 --TEST--
 zend multibyte (13)
 --SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 zend.multibyte=On
 zend.script_encoding=UTF-8
index 98c2f87e25b7ffe7d42077357f638f28ad9ee9a6..36c7c5355c6fc0f327bcae4fe9b3955704a242ea 100644 (file)
@@ -1,6 +1,7 @@
 --TEST--
 zend multibyte (14)
 --SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 zend.multibyte=On
 zend.script_encoding=UTF-8
index 6995444bbb2b906051568c75b536f7107703433c..35246bcdca3ad3b5e21ddd38584019c36353f318 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 zend multibyte (15)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 zend.multibyte=1
 --FILE--
@@ -13,4 +15,4 @@ declare(encoding="UTF-8") {
 ?>
 --EXPECTF--
 ok
-ok
\ No newline at end of file
+ok
index 4470e3a87f9b0f86000ace5ab7c815866a331659..7f1d91e294f70da8e34bdc4377e5fe4ad160d22c 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 zend multibyte (16)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --INI--
 zend.multibyte=1
 --FILE--
@@ -11,4 +13,4 @@ echo "ok\n";
 ?>
 --EXPECTF--
 ok
-ok
\ No newline at end of file
+ok
index 9df7591003967f7cd6a0cb8893fe32779f1a9954..52d1341ae5ad14299137d6f355fbf332c69bcc63 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Testing getDocNamespaces() with invalid XML
+--SKIPIF--
+<?php if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); ?>
 --FILE--
 <?php
 $xml = @new SimpleXMLElement("X",1);
index fb7e6e90f0026a0ee218e36cdffc175efc532596..3eb417cef28003d0492850867fc3921aa3223d57 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Testing xpath() with invalid XML
+--SKIPIF--
+<?php if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); ?>
 --FILE--
 <?php
 // gracefully recover from parsing of invalid XML; not available in PHP
@@ -7,7 +9,7 @@ const XML_PARSE_RECOVER = 1;
 
 // we're not interested in checking concrete warnings regarding invalid XML
 $xml = @simplexml_load_string("XXXXXXX^", 'SimpleXMLElement', XML_PARSE_RECOVER);
-  
+
 // $xml is supposed to hold a SimpleXMLElement, but not FALSE/NULL
 var_dump($xml->xpath("BBBB"));
 ?>
index 75cf5720d5cb7616b730f7dffffe789852a21584..cb6b3ad08f9882f6e67a80c8b809a7d2fbd2fd21 100644 (file)
@@ -2,6 +2,7 @@
 Testing xpath() with invalid XML
 --SKIPIF--
 <?php
+if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded');
 if (PHP_MAJOR_VERSION < 7) die("skip this test is for PHP 7+ only");
 if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
 ?>
index 626022cd54920a0c39b7057eada44452fc1a60cd..3da0dbc11cafa492539c81febbe99c5e94017a0e 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #53033: Mathematical operations convert objects to integers
+--SKIPIF--
+<?php if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); ?>
 --FILE--
 <?php
 
index 29daaed7886a534502f460d29de9b77cd7003f1b..58891eb3fed943c18b1645b82c46c705f2a23de7 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #54973: SimpleXML casts integers wrong
+--SKIPIF--
+<?php if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); ?>
 --FILE--
 <?php
 $xml = simplexml_load_string("<xml><number>9223372036854775808</number></xml>");
index 2d7124376b8a6620e3c5613e1635f882c0ef250f..bd1f94ecef4c31a25c5e7b2c5ec52816aa5cf3bd 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #70211 (php 7 ZEND_HASH_IF_FULL_DO_RESIZE use after free)
+--SKIPIF--
+<?php require 'skipif.inc'; ?>
 --FILE--
 <?php
 
index 5fb43e91dbfea4a0caec914730977be8248c74cd..ede7b7acf0ca7cd51faea02a6f52af6daed59433 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #73135 (xml_parse() segmentation fault)
+--SKIPIF--
+<?php if (!extension_loaded('xml')) die('skip xml extension not loaded'); ?>
 --CREDITS--
 edgarsandi - <edgar.r.sandi@gmail.com>
 --FILE--
@@ -21,4 +23,4 @@ HERE;
 --EXPECTF--
 Warning: xml_parse(): Unable to call handler ahihi() in %s%ebug73135.php on line %d
 
-Warning: xml_parse(): Unable to call handler ahihi() in %s%ebug73135.php on line %d
\ No newline at end of file
+Warning: xml_parse(): Unable to call handler ahihi() in %s%ebug73135.php on line %d
index c4291afa4ec0e3bac26bafd9309a9fae15116967..6d1e5e5b914f41104880c2f3877f4056c45dc73d 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Bug #73944: Dictionary option of intflate_init() does not work
+--SKIPIF--
+<?php if(!extension_loaded('zlib')) die('skip zlib extension not loaded'); ?>
 --FILE--
 <?php
 
index f7ef3b3a9cc0c6bbf4a1995658b02e336a2934c9..0823b3ca9496db8921970e054e3372855bc6dcbc 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test dictionary usage on zlib methods
+--SKIPIF--
+<?php if(!extension_loaded('zlib')) die('skip zlib extension not loaded'); ?>
 --FILE--
 <?php
 
index b0bdcb9c8658be9b3fc02685093ccd18fa5de092..58c428cbc7a5ef930557804c07cb65e4471ffe52 100644 (file)
@@ -3,8 +3,6 @@ gzgetss — Get line from gz-file pointer and strip HTML tags - function
 --CREDITS--
 marcosptf - <marcosptf@yahoo.com.br>
 --SKIPIF--
-<?php
-
 <?php
 if(!extension_loaded("zlib")){die("skip - ZLIB extension not loaded");}
 ?>
@@ -19,4 +17,4 @@ while (!gzeof($handle)){
 gzclose($handle);
 ?>
 --EXPECT--
-<code>stringgzgetss(resource $zp, int $length [, string $allowable_tags ]);<code/>
\ No newline at end of file
+<code>stringgzgetss(resource $zp, int $length [, string $allowable_tags ]);<code/>