Skip to content

SKIPIF -> EXTENSIONS #7138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 2 additions & 5 deletions Zend/tests/attributes/016_custom_attribute_validation.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
--TEST--
Attribute validation callback of internal attributes.
--SKIPIF--
<?php
if (!extension_loaded('zend_test')) {
echo "skip requires zend_test extension\n";
}
--EXTENSIONS--
zend_test
--FILE--
<?php

Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/bug34199.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
Bug #34199 (if($obj)/if(!$obj) inconsistency because of cast handler)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip SimpleXML extension required"; ?>
--EXTENSIONS--
simplexml
--FILE--
<?php
$xml = "<root></root>";
Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/bug34617.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
Bug #34617 (zend_deactivate: objects_store used after zend_objects_store_destroy is called)
--SKIPIF--
<?php if (!extension_loaded("xml")) print "skip the xml extension not available"; ?>
--EXTENSIONS--
xml
--FILE--
<?php
class Thing {}
Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/bug39602.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
Bug #39602 (Invalid session.save_handler crashes PHP)
--SKIPIF--
<?php if (!extension_loaded("session")) die("skip session extension required"); ?>
--EXTENSIONS--
session
--INI--
session.save_handler=qwerty
error_reporting=0
Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/bug43918.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
Bug #43918 (Segmentation fault in garbage collector)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip SimpleXML extension required"; ?>
--EXTENSIONS--
simplexml
--FILE--
<?php
$xmlstr = <<<XML
Expand Down
8 changes: 2 additions & 6 deletions Zend/tests/bug69092.phpt
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
--TEST--
Bug #69092 (Declare Encoding Compile Check Wrong)
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
die("skip Requires mbstring extension");
}
?>
--EXTENSIONS--
mbstring
--INI--
zend.multibyte=On
--FILE--
Expand Down
8 changes: 2 additions & 6 deletions Zend/tests/bug70914.phpt
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
--TEST--
Bug #70914 zend_throw_or_error() format string vulnerability
--SKIPIF--
<?php
if (!extension_loaded("pdo_sqlite")) {
die("skip pdo_sqlite required");
}
?>
--EXTENSIONS--
pdo_sqlite
--FILE--
<?php

Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/bug71428.2.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bug #71428.2: inheritance of ye olde dynamic interfaces
--SKIPIF--
<?php if (!extension_loaded('pdo')) die("skip PDO is not available"); ?>
--EXTENSIONS--
pdo
--FILE--
<?php
interface StatementInterface {
Expand Down
8 changes: 2 additions & 6 deletions Zend/tests/bug71930.phpt
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
--TEST--
Bug #71930 (_zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed)
--SKIPIF--
<?php
if (!extension_loaded("curl")) {
die("skip Require a resource which is able to hold a callback");
}
?>
--EXTENSIONS--
curl
--FILE--
<?php

Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/bug78239.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
Bug #78239: Deprecation notice during string conversion converted to exception hangs
--SKIPIF--
<?php if (!extension_loaded("zend_test")) die("skip requires zend_test extension"); ?>
--EXTENSIONS--
zend_test
--FILE--
<?php
function handleError($level, $message, $file = '', $line = 0, $context = [])
Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/bug78335_2.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
Bug #78335: Static properties containing cycles report as leak (internal class variant)
--SKIPIF--
<?php if (!extension_loaded("zend_test")) die("skip requires zend_test"); ?>
--EXTENSIONS--
zend_test
--FILE--
<?php

Expand Down
6 changes: 2 additions & 4 deletions Zend/tests/bug78770.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
Bug #78770: Incorrect callability check inside internal methods
--SKIPIF--
<?php
if (!extension_loaded("intl")) die("skip requires intl");
?>
--EXTENSIONS--
intl
--FILE--
<?php

Expand Down
6 changes: 2 additions & 4 deletions Zend/tests/bug79919.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
Bug #79919 (Stack use-after-scope in define())
--SKIPIF--
<?php
if (!extension_loaded('simplexml')) die('skip simplexml extension not available');
?>
--EXTENSIONS--
simplexml
--FILE--
<?php
$b = error_log(0);
Expand Down
5 changes: 2 additions & 3 deletions Zend/tests/call_to_deprecated_function_args.phpt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
--TEST--
Check that arguments are freed when calling a deprecated function
--SKIPIF--
<?php
if (!extension_loaded('zend_test')) die('skip zend_test extension not loaded');
--EXTENSIONS--
zend_test
--FILE--
<?php

Expand Down
6 changes: 2 additions & 4 deletions Zend/tests/const_deprecation.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
Internal constant deprecation
--SKIPIF--
<?php
if (!extension_loaded('zend_test')) die('skip requires zend_test');
?>
--EXTENSIONS--
zend_test
--FILE--
<?php

Expand Down
8 changes: 2 additions & 6 deletions Zend/tests/declare_001.phpt
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
--TEST--
Testing declare statement with several type values
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
die("skip Requires ext/mbstring");
}
?>
--EXTENSIONS--
mbstring
--INI--
zend.multibyte=1
--FILE--
Expand Down
8 changes: 2 additions & 6 deletions Zend/tests/declare_002.phpt
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
--TEST--
Testing declare statement with several type values
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
die("skip Requires ext/mbstring");
}
?>
--EXTENSIONS--
mbstring
--INI--
zend.multibyte=1
--FILE--
Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/inherit_internal_static.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
Inherit internal static property into userland class
--SKIPIF--
<?php if (!extension_loaded('zend_test')) die('skip requires zend_test'); ?>
--EXTENSIONS--
zend_test
--FILE--
<?php

Expand Down
6 changes: 2 additions & 4 deletions Zend/tests/iterable_or_null.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
Test Z_PARAM_ITERABLE() and Z_PARAM_ITERABLE_OR_NULL
--SKIPIF--
<?php
if (!extension_loaded('zend_test')) die('skip zend_test extension not loaded');
?>
--EXTENSIONS--
zend_test
--FILE--
<?php

Expand Down
8 changes: 2 additions & 6 deletions Zend/tests/multibyte/bug68665.phpt
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
--TEST--
Crash with Big5
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
die("skip Requires mbstring extension");
}
?>
--EXTENSIONS--
mbstring
--INI--
zend.multibyte=1
internal_encoding=big5
Expand Down
8 changes: 2 additions & 6 deletions Zend/tests/multibyte/multibyte_encoding_001.phpt
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
--TEST--
Zend Multibyte and ShiftJIS
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
die("skip Requires mbstring extension");
}
?>
--EXTENSIONS--
mbstring
--INI--
zend.multibyte=1
internal_encoding=SJIS
Expand Down
8 changes: 2 additions & 6 deletions Zend/tests/multibyte/multibyte_encoding_002.phpt
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
--TEST--
Zend Multibyte and UTF-8 BOM
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
die("skip Requires mbstring extension");
}
?>
--EXTENSIONS--
mbstring
--INI--
zend.multibyte=1
internal_encoding=iso-8859-1
Expand Down
Binary file modified Zend/tests/multibyte/multibyte_encoding_003.phpt
Binary file not shown.
8 changes: 2 additions & 6 deletions Zend/tests/multibyte/multibyte_encoding_004.phpt
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
--TEST--
test for mbstring script_encoding for flex unsafe encoding (Shift_JIS)
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
die("skip Requires mbstring extension");
}
?>
--EXTENSIONS--
mbstring
--INI--
zend.multibyte=1
zend.script_encoding=Shift_JIS
Expand Down
8 changes: 2 additions & 6 deletions Zend/tests/multibyte/multibyte_encoding_005.phpt
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
--TEST--
encoding conversion from script encoding into internal encoding
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
die("skip Requires mbstring extension");
}
?>
--EXTENSIONS--
mbstring
--INI--
zend.multibyte=1
mbstring.encoding_translation = On
Expand Down
8 changes: 2 additions & 6 deletions Zend/tests/ns_086.phpt
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
--TEST--
086: bracketed namespace with encoding
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
die("skip Requires mbstring extension");
}
?>
--EXTENSIONS--
mbstring
--INI--
zend.multibyte=1
--FILE--
Expand Down
6 changes: 2 additions & 4 deletions Zend/tests/overloaded_func_001.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
Overloaded function 001
--SKIPIF--
<?php
if (!extension_loaded('zend_test')) die('skip zend_test extension not loaded');
?>
--EXTENSIONS--
zend_test
--FILE--
<?php
$o = new _ZendTestChildClass();
Expand Down
6 changes: 2 additions & 4 deletions Zend/tests/overloaded_func_002.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
Overloaded function 002
--SKIPIF--
<?php
if (!extension_loaded('zend_test')) die('skip zend_test extension not loaded');
?>
--EXTENSIONS--
zend_test
--FILE--
<?php
$a = new _ZendTestClass();
Expand Down
3 changes: 2 additions & 1 deletion Zend/tests/return_types/internal_functions001.phpt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
--TEST--
Return type for internal functions
--EXTENSIONS--
zend_test
--SKIPIF--
<?php
if (!extension_loaded('zend_test')) die('skip zend_test extension not loaded');
// Internal function return types are only checked in debug builds
if (!PHP_DEBUG) die('skip requires debug build');
?>
Expand Down
5 changes: 2 additions & 3 deletions Zend/tests/return_types/internal_functions002.phpt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
--TEST--
Return type for internal functions 2
--SKIPIF--
<?php
if (!extension_loaded('zend_test')) die('skip zend_test extension not loaded');
--EXTENSIONS--
zend_test
--FILE--
<?php
zend_test_nullable_array_return();
Expand Down
5 changes: 2 additions & 3 deletions Zend/tests/return_types/internal_functions003.phpt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
--TEST--
Return type for internal functions 3: Void return type
--SKIPIF--
<?php
if (!extension_loaded('zend_test')) die('skip zend_test extension not loaded');
--EXTENSIONS--
zend_test
--FILE--
<?php
var_dump(zend_test_void_return());
Expand Down
6 changes: 2 additions & 4 deletions Zend/tests/str_or_obj_of_class_zpp.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
Test Z_PARAM_OBJ_OF_CLASS_OR_STR() and Z_PARAM_OBJ_OF_CLASS_OR_STR_OR_NULL
--SKIPIF--
<?php
if (!extension_loaded('zend_test')) die('skip zend_test extension not loaded');
?>
--EXTENSIONS--
zend_test
--FILE--
<?php

Expand Down
6 changes: 2 additions & 4 deletions Zend/tests/str_or_obj_zpp.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
Test Z_PARAM_OBJ_OR_STR() and Z_PARAM_OBJ_OR_STR_OR_NULL
--SKIPIF--
<?php
if (!extension_loaded('zend_test')) die('skip zend_test extension not loaded');
?>
--EXTENSIONS--
zend_test
--FILE--
<?php

Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/temporary_cleaning_014.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
Leak in JMP_SET
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php
set_error_handler(function() { throw new Exception; });
Expand Down
Loading