mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
Fix/add SKIPIF
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
--TEST--
|
||||
Bug # 34276: setAttributeNS and default namespace
|
||||
--SKIPIF--
|
||||
<?php require_once('skipif.php'); ?>
|
||||
<?php require_once('skipif.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$xml = <<<HERE
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
--TEST--
|
||||
Bug # 35342: isset(DOMNodeList->length) returns false
|
||||
--SKIPIF--
|
||||
<?php require_once('skipif.php'); ?>
|
||||
<?php require_once('skipif.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$dom = new DOMDocument();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
--TEST--
|
||||
Test 2: getElementsByTagName() / getElementsByTagNameNS()
|
||||
--SKIPIF--
|
||||
<?php require_once('skipif.php'); ?>
|
||||
<?php require_once('skipif.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$xml = <<<HERE
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Bug #37176 (iconv_strpos() fails to find a string)
|
||||
--SKIPIF--
|
||||
<?php include('skipif.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(iconv_strpos('11--','1-',0,'UTF-8'));
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
mb_send_mail() test 1 (lang=neutral)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (@mb_send_mail() === false || !mb_language("neutral")) {
|
||||
if (!function_exists("mb_send_mail") || !mb_language("neutral")) {
|
||||
die("skip mb_send_mail() not available");
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
mb_send_mail() test 2 (lang=Japanese)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (@mb_send_mail() === false || !mb_language("japanese")) {
|
||||
if (!function_exists("mb_send_mail") || !mb_language("japanese")) {
|
||||
die("skip mb_send_mail() not available");
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
mb_send_mail() test 3 (lang=English)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (@mb_send_mail() === false || !mb_language("english")) {
|
||||
if (!function_exists("mb_send_mail") || !mb_language("english")) {
|
||||
die("skip mb_send_mail() not available");
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
mb_send_mail() test 4 (lang=German)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (@mb_send_mail() === false || !mb_language("german")) {
|
||||
if (!function_exists("mb_send_mail") || !mb_language("german")) {
|
||||
die("skip mb_send_mail() not available");
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
mb_send_mail() test 5 (lang=Simplified Chinese)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (@mb_send_mail() === false || !mb_language("Simplified Chinese")) {
|
||||
if (!function_exists("mb_send_mail") || !mb_language("Simplified Chinese")) {
|
||||
die("skip mb_send_mail() not available");
|
||||
}
|
||||
if (!@mb_internal_encoding('GB2312')) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
mb_send_mail() test 6 (lang=Traditional Chinese)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (@mb_send_mail() === false || !mb_language("Traditional Chinese")) {
|
||||
if (!function_exists("mb_send_mail") || !mb_language("Traditional Chinese")) {
|
||||
die("skip mb_send_mail() not available");
|
||||
}
|
||||
if (!@mb_internal_encoding('BIG5')) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
mb_send_mail() test 7 (lang=Korean)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (@mb_send_mail() === false || !mb_language("Korean")) {
|
||||
if (!function_exists("mb_send_mail") || !mb_language("Korean")) {
|
||||
die("skip mb_send_mail() not available");
|
||||
}
|
||||
if (!@mb_internal_encoding('ISO-2022-KR')) {
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
<?php
|
||||
|
||||
include 'connect.inc';
|
||||
if (!extension_loaded("mysql")) {
|
||||
die('skip mysql extension not available');
|
||||
}
|
||||
$link = @mysql_connect($host, $user, $passwd);
|
||||
if (!$link) die('skip cannot connect');
|
||||
mysql_close($link);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Bug #35785 (SimpleXML memory read error)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Bug #36611 (assignment to SimpleXML object attribute changes argument type to string)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Bug #37565 Using reflection::export with simplexml causing a crash
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
function my_error_handler($errno, $errstr, $errfile, $errline) {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
SimpleXML [profile]: Accessing namespaced root and non namespaced children
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
SimpleXML [profile]: Accessing by namespace prefix
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
SPL: ArrayObject::seek() and exceptions
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("spl")) print "skip"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
SPL: ArrayObject/Iterator and reference to self
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("spl")) print "skip"; ?>
|
||||
--FILE--
|
||||
==ArrayObject===
|
||||
<?php
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Bug #36941 (ArrayIterator does not clone itself)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("spl")) print "skip"; ?>
|
||||
--FILE--
|
||||
===ArrayObject===
|
||||
<?php
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Bug #37457 (Crash when an exception is thrown in accept() method of FilterIterator)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("spl")) print "skip"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Bug #37569 (WDDX incorrectly encodes high-ascii characters)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("wddx")) print "skip"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
echo wddx_serialize_value(chr(1))."\n";
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Bug #37587 (var without attribute causes segfault)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("wddx")) print "skip"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Bug #36743 (In a class extending XMLReader array properties are not writable)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("xmlreader")) print "skip"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Bug #37057 (xmlrpc_decode() may produce arrays with numeric string keys which are unaccessible)
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("xmlrpc")) print "skip"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$response='<?xml version="1.0"?>
|
||||
|
||||
Reference in New Issue
Block a user