mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
more verbose skip reason in test files with not so obvious extension requirements
This commit is contained in:
parent
6546beecec
commit
e613889d50
@ -1,7 +1,7 @@
|
||||
--TEST--
|
||||
Bug #34199 (if($obj)/if(!$obj) inconsistency because of cast handler)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
|
||||
<?php if (!extension_loaded("simplexml")) print "skip SimpleXML extension required"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$xml = "<root></root>";
|
||||
|
@ -1,7 +1,7 @@
|
||||
--TEST--
|
||||
Bug #39602 (Invalid session.save_handler crashes PHP)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("session")) die("skip"); ?>
|
||||
<?php if (!extension_loaded("session")) die("skip session extension required"); ?>
|
||||
--INI--
|
||||
session.save_handler=qwerty
|
||||
error_reporting=0
|
||||
|
@ -1,7 +1,7 @@
|
||||
--TEST--
|
||||
Bug #42819 (namespaces in indexes of constant arrays)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("spl")) print "skip"; ?>
|
||||
<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
namespace foo\foo;
|
||||
|
@ -1,7 +1,7 @@
|
||||
--TEST--
|
||||
Bug #43918 (Segmentation fault in garbage collector)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
|
||||
<?php if (!extension_loaded("simplexml")) print "skip SimpleXML extension required"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$xmlstr = <<<XML
|
||||
|
@ -1,7 +1,7 @@
|
||||
--TEST--
|
||||
Bug #50174 (Incorrectly matched docComment)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip"; ?>
|
||||
<?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip SPL and reflection extensions required"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
@ -3,7 +3,7 @@ GC 024: GC and objects with non-standard handlers
|
||||
--INI--
|
||||
zend.enable_gc=1
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("spl")) print "skip"; ?>
|
||||
<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$a = new ArrayObject();
|
||||
|
@ -1,7 +1,7 @@
|
||||
--TEST--
|
||||
unset() CV 10 (unset() of global variable in ArrayObject::offsetUnset($GLOBALS))
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("spl")) print "skip"; ?>
|
||||
<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$a = new ArrayObject($GLOBALS);
|
||||
|
@ -8,7 +8,7 @@ if (extension_loaded("openssl")) {
|
||||
when openssl loaded, tcp stream is less verbose, so some error messages are missing
|
||||
so let's skip the test in this case
|
||||
*/
|
||||
die("skip");
|
||||
die("skip OpenSSL extension required");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
|
@ -1,7 +1,7 @@
|
||||
--TEST--
|
||||
SPL: IteratorIterator and SimpleXMlElement
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded('simplexml')) print "skip"; ?>
|
||||
<?php if (!extension_loaded('simplexml')) print "skip SimpleXML required"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
@ -3,7 +3,7 @@ stream_get_line() on non-blocking stream
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$sockets = @stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, 0);
|
||||
if (!$sockets) die("skip");
|
||||
if (!$sockets) die("skip stream_socket_pair() should work");
|
||||
fclose($sockets[0]);
|
||||
fclose($sockets[1]);
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
XMLReader: Expand into existing DOM documet
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("xmlreader")) print "skip";
|
||||
if (!extension_loaded("dom")) print "skip";
|
||||
if (!extension_loaded("dom")) print "skip DOM extension required";
|
||||
$reader = new XMLReader();
|
||||
if (!method_exists($reader, 'expand')) print "skip";
|
||||
?>
|
||||
|
@ -4,7 +4,7 @@ show information about function
|
||||
<?php
|
||||
include "skipif.inc";
|
||||
if (!extension_loaded("reflection")) {
|
||||
die("skip");
|
||||
die("skip reflection extension required");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
|
@ -4,7 +4,7 @@ show information about class
|
||||
<?php
|
||||
include "skipif.inc";
|
||||
if (!extension_loaded("reflection")) {
|
||||
die("skip");
|
||||
die("skip reflection extension required");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
|
@ -4,7 +4,7 @@ show information about extension
|
||||
<?php
|
||||
include "skipif.inc";
|
||||
if (!extension_loaded("reflection") || !extension_loaded("session")) {
|
||||
die("skip");
|
||||
die("skip reflection and session extensions required");
|
||||
}
|
||||
?>
|
||||
--INI--
|
||||
|
@ -1,7 +1,7 @@
|
||||
--TEST--
|
||||
Bug #60282 (Segfault when using ob_gzhandler() with open buffers)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("zlib")) print "skip"; ?>
|
||||
<?php if (!extension_loaded("zlib")) print "skip Zlib extension required"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
ob_start();
|
||||
|
Loading…
Reference in New Issue
Block a user