Port curl, xml, xsql to use EXTENSIONS (#7140)

This commit is contained in:
Nikita Popov 2021-06-11 13:57:47 +02:00 committed by GitHub
parent 39131219e8
commit 8567bc10c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
103 changed files with 195 additions and 232 deletions

View file

@ -2,8 +2,8 @@
Bug #27023 (CURLOPT_POSTFIELDS does not parse content types for files)
--INI--
error_reporting = E_ALL & ~E_DEPRECATED
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -1,9 +1,7 @@
--TEST--
Bug #45161 (Reusing a curl handle leaks memory)
--SKIPIF--
<?php
include 'skipif.inc';
?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -1,9 +1,7 @@
--TEST--
Bug #46739 (array returned by curl_getinfo should contain content_type key)
--SKIPIF--
<?php
include 'skipif.inc';
?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -1,7 +1,7 @@
--TEST--
Bug #48203 (Crash when CURLOPT_STDERR is set to regular file)
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -1,9 +1,7 @@
--TEST--
Variation of bug #48203 with curl_multi_exec (Crash when file pointers passed to curl are closed before calling curl_multi_exec)
--SKIPIF--
<?php
include 'skipif.inc';
?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -3,8 +3,8 @@ Test curl_setopt() CURLOPT_FILE readonly file handle
--CREDITS--
Mark van der Velden
#testfest Utrecht 2009
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
/*

View file

@ -1,8 +1,9 @@
--TEST--
Bug #54798 (Segfault when CURLOPT_STDERR file pointer is closed before calling curl_exec)
--EXTENSIONS--
curl
--SKIPIF--
<?php
include 'skipif.inc';
if(substr(PHP_OS, 0, 3) == 'WIN' ) {
die('skip not for Windows');
}

View file

@ -1,9 +1,7 @@
--TEST--
Bug #54798 (Segfault when CURLOPT_STDERR file pointer is closed before calling curl_exec)
--SKIPIF--
<?php
include 'skipif.inc';
?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -1,9 +1,7 @@
--TEST--
Test curl_opt() function with POST params from array with a numeric key
--SKIPIF--
<?php
include 'skipif.inc';
?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -1,7 +1,7 @@
--TEST--
Bug #66109 (Option CURLOPT_CUSTOMREQUEST can't be reset to default.)
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -1,10 +1,7 @@
--TEST--
Bug #68089 (NULL byte injection - cURL lib)
--SKIPIF--
<?php
include 'skipif.inc';
?>
--EXTENSIONS--
curl
--FILE--
<?php
$url = "file:///etc/passwd\0http://google.com";

View file

@ -1,9 +1,7 @@
--TEST--
Bug # #68937 (Segfault in curl_multi_exec)
--SKIPIF--
<?php
include 'skipif.inc';
?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -1,9 +1,7 @@
--TEST--
Bug # #68937 (Segfault in curl_multi_exec)
--SKIPIF--
<?php
include 'skipif.inc';
?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -1,7 +1,7 @@
--TEST--
Bug #69316: Use-after-free in php_curl related to CURLOPT_FILE/_INFILE/_WRITEHEADER
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
function hdr_callback($ch, $data) {

View file

@ -1,7 +1,7 @@
--TEST--
Bug #69485 (Double free on zend_list_dtor)
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -1,7 +1,7 @@
--TEST--
Bug #70330 (Segmentation Fault with multiple "curl_copy_handle")
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
$t2 = curl_init();

View file

@ -1,7 +1,8 @@
--TEST--
Bug #71144 (Sementation fault when using cURL with ZTS)
--EXTENSIONS--
curl
--SKIPIF--
<?php include 'skipif.inc'; ?>
<?php if (!PHP_ZTS) { print "skip only for zts build"; } ?>
--FILE--
<?php

View file

@ -1,9 +1,7 @@
--TEST--
Request #72189 (Add missing CURL_VERSION_* constants)
--SKIPIF--
<?php
include 'skipif.inc';
?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -1,8 +1,9 @@
--TEST--
Bug #76675 (Segfault with H2 server push write/writeheader handlers)
--EXTENSIONS--
curl
--SKIPIF--
<?php
include 'skipif.inc';
if (getenv("SKIP_ONLINE_TESTS")) {
die("skip online test");
}

View file

@ -1,8 +1,9 @@
--TEST--
Bug #77535 (Invalid callback, h2 server push)
--EXTENSIONS--
curl
--SKIPIF--
<?php
include 'skipif.inc';
if (getenv("SKIP_ONLINE_TESTS")) {
die("skip online test");
}

View file

@ -1,7 +1,7 @@
--TEST--
FR #77711 (CURLFile should support UNICODE filenames)
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -1,7 +1,7 @@
--TEST--
Bug #79033 (Curl timeout error with specific url and post)
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -1,7 +1,7 @@
--TEST--
Bug #80595 (Resetting POSTFIELDS to empty array breaks request)
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -3,8 +3,8 @@ Test CURLOPT_READDATA without a callback function
--CREDITS--
Mattijs Hoitink mattijshoitink@gmail.com
#Testfest Utrecht 2009
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -3,8 +3,8 @@ Test curl_exec() function with basic functionality
--CREDITS--
Sebastian Deutsch <sebastian.deutsch@9elements.com>
TestFest 2009 - AFUP - Jean-Marc Fontaine <jmf@durcommefaire.net>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -3,8 +3,8 @@ Test curl_opt() function with CURLOPT_RETURNTRANSFER parameter set to 1
--CREDITS--
Sebastian Deutsch <sebastian.deutsch@9elements.com>
TestFest 2009 - AFUP - Jean-Marc Fontaine <jmf@durcommefaire.net>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -3,8 +3,8 @@ Test curl_opt() function with POST parameters
--CREDITS--
Sebastian Deutsch <sebastian.deutsch@9elements.com>
TestFest 2009 - AFUP - Jean-Marc Fontaine <jmf@durcommefaire.net>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -3,8 +3,8 @@ Test curl_opt() function with setting referer
--CREDITS--
Sebastian Deutsch <sebastian.deutsch@9elements.com>
TestFest 2009 - AFUP - Jean-Marc Fontaine <jmf@durcommefaire.net>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -3,8 +3,8 @@ Test curl_opt() function with user agent
--CREDITS--
Sebastian Deutsch <sebastian.deutsch@9elements.com>
TestFest 2009 - AFUP - Jean-Marc Fontaine <jmf@durcommefaire.net>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -3,8 +3,8 @@ Test curl_opt() function with CURLOPT_WRITEFUNCTION parameter set to a closure
--CREDITS--
?
TestFest 2009 - AFUP - Jean-Marc Fontaine <jmf@durcommefaire.net>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -2,8 +2,8 @@
Test curl_opt() function with COOKIE
--CREDITS--
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -2,8 +2,8 @@
Test curl_opt() function with CURLOPT_HTTP_VERSION/CURL_HTTP_VERSION_1_0
--CREDITS--
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -2,8 +2,8 @@
Test curl_opt() function with CURLOPT_HTTP_VERSION/CURL_HTTP_VERSION_1_1
--CREDITS--
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -2,8 +2,8 @@
Test curl_setopt() with curl_multi function with basic functionality
--CREDITS--
TestFest 2009 - AFUP - Thomas Rabaix <thomas.rabaix@gmail.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -2,8 +2,8 @@
Test curl_getinfo() function with CURLINFO_EFFECTIVE_URL parameter
--CREDITS--
Jean-Marc Fontaine <jmf@durcommefaire.net>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -2,8 +2,8 @@
Test curl_getinfo() function with CURLINFO_HTTP_CODE parameter
--CREDITS--
Jean-Marc Fontaine <jmf@durcommefaire.net>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -2,8 +2,8 @@
Test curl_getinfo() function with CURLINFO_CONTENT_TYPE parameter
--CREDITS--
Jean-Marc Fontaine <jmf@durcommefaire.net>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -3,8 +3,8 @@ Test curl_copy_handle() with simple get
--CREDITS--
Rick Buitenman <rick@meritos.nl>
#testfest Utrecht 2009
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -3,8 +3,8 @@ Test curl_copy_handle() with simple POST
--CREDITS--
Rick Buitenman <rick@meritos.nl>
#testfest Utrecht 2009
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -3,8 +3,8 @@ Test curl_copy_handle() after exec()
--CREDITS--
Rick Buitenman <rick@meritos.nl>
#testfest Utrecht 2009
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -3,8 +3,8 @@ Test curl_copy_handle() after exec() with POST
--CREDITS--
Rick Buitenman <rick@meritos.nl>
#testfest Utrecht 2009
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -3,8 +3,8 @@ Test curl_copy_handle() with User Agent
--CREDITS--
Rick Buitenman <rick@meritos.nl>
#testfest Utrecht 2009
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -1,7 +1,7 @@
--TEST--
Test curl_copy_handle() with simple POST
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -1,7 +1,7 @@
--TEST--
Test curl_copy_handle() with CURLOPT_PROGRESSFUNCTION
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -1,7 +1,7 @@
--TEST--
curl_copy_handle() allows to post CURLFile multiple times
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -1,7 +1,7 @@
--TEST--
curl_copy_handle() allows to post CURLFile multiple times with curl_multi_exec()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -1,7 +1,7 @@
--TEST--
curl_copy_handle() allows to post CURLFile multiple times if postfields change
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';

View file

@ -2,8 +2,8 @@
Memory corruption error if fp of just created file is closed before curl_close.
--CREDITS--
Alexey Shein <confik@gmail.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -1,7 +1,7 @@
--TEST--
CURL file uploading
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -1,7 +1,8 @@
--TEST--
CURL file uploading from stream
--EXTENSIONS--
curl
--SKIPIF--
<?php include 'skipif.inc'; ?>
<?php
if (curl_version()['version_number'] < 0x73800) die('skip requires curl >= 7.56.0');
--FILE--

View file

@ -1,7 +1,7 @@
--TEST--
Test that cloning of Curl objects is supported
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -3,8 +3,8 @@ Curl_multi_getcontent() basic test with different sources (local file/http)
--CREDITS--
Rein Velt (rein@velt.org)
#TestFest Utrecht 20090509
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
//CURL_MULTI_GETCONTENT TEST

View file

@ -3,8 +3,8 @@ curl_setopt_array() function - tests setting multiple cURL options with curl_set
--CREDITS--
Mattijs Hoitink mattijshoitink@gmail.com
#Testfest Utrecht 2009
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php
/*

View file

@ -3,8 +3,8 @@ curl_setopt basic tests with CURLOPT_STDERR.
--CREDITS--
Paul Sohier
#phptestfest utrecht
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -3,8 +3,8 @@ curl_setopt() call with CURLOPT_HTTPHEADER
--CREDITS--
Paul Sohier
#phptestfest utrecht
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -3,8 +3,8 @@ curl_setopt() call with CURLOPT_RETURNTRANSFER
--CREDITS--
Paul Sohier
#phptestfest utrecht
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -1,7 +1,7 @@
--TEST--
CURL file uploading from string
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -5,8 +5,8 @@ Mathieu Kooiman <mathieuk@gmail.com>
Dutch UG, TestFest 2009, Utrecht
--DESCRIPTION--
Hit the host and determine that the headers are sent to the callback specified for CURLOPT_HEADERFUNCTION. Different test servers might return different sets of headers. Just test for HTTP/1.1 200 OK.
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
curl
--FILE--
<?php

View file

@ -1,2 +0,0 @@
<?php
if (!extension_loaded("curl")) exit("skip curl extension not loaded");

View file

@ -1,8 +1,9 @@
--TEST--
Bug #25666 (XML namespaces broken in libxml-based SAX interface)
--EXTENSIONS--
xml
--SKIPIF--
<?php
require_once("skipif.inc");
if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this platform");}
?>
--FILE--

View file

@ -1,9 +1,7 @@
--TEST--
Bug #26528 (HTML entities are not being decoded)
--SKIPIF--
<?php
require_once("skipif.inc");
?>
--EXTENSIONS--
xml
--FILE--
<?php
$sample = "<?xml version=\"1.0\"?><test attr=\"angle&lt;bracket\"/>";

View file

@ -1,8 +1,9 @@
--TEST--
Bug #26614 (CDATA sections skipped on line count)
--EXTENSIONS--
xml
--SKIPIF--
<?php
require_once("skipif.inc");
if (defined("LIBXML_VERSION")) die('skip expat test');
?>
--FILE--

View file

@ -1,8 +1,9 @@
--TEST--
Bug #26614 (CDATA sections skipped on line count)
--EXTENSIONS--
xml
--SKIPIF--
<?php
require_once("skipif.inc");
if (!defined("LIBXML_VERSION")) die('skip libxml2 test');
?>
--FILE--

View file

@ -1,9 +1,7 @@
--TEST--
Bug #27908 (default handler not being called)
--SKIPIF--
<?php
require_once("skipif.inc");
?>
--EXTENSIONS--
xml
--FILE--
<?php

View file

@ -1,9 +1,7 @@
--TEST--
Bug #30266 (Invalid opcode 137/1/8)
--SKIPIF--
<?php
require_once("skipif.inc");
?>
--EXTENSIONS--
xml
--FILE--
<?php
/*

View file

@ -2,9 +2,9 @@
Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect), using UTF-*
--EXTENSIONS--
iconv
xml
--SKIPIF--
<?php
require_once("skipif.inc");
if (ICONV_IMPL == 'glibc' && version_compare(ICONV_VERSION, '2.12', '<='))
die("skip iconv of glibc <= 2.12 is buggy");
?>

View file

@ -2,9 +2,9 @@
Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect), using EUC-JP, Shift_JIS, GB2312
--EXTENSIONS--
iconv
xml
--SKIPIF--
<?php
require_once("skipif.inc");
foreach(array('EUC-JP', 'Shift_JISP', 'GB2312') as $encoding) {
try {
xml_parser_create($encoding);

View file

@ -1,8 +1,9 @@
--TEST--
Bug #35447 (xml_parse_into_struct() chokes on the UTF-8 BOM)
--EXTENSIONS--
xml
--SKIPIF--
<?php
require_once("skipif.inc");
if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this platform");}
?>
--FILE--

View file

@ -1,8 +1,9 @@
--TEST--
Bug #46699: (xml_parse crash when parser is namespace aware)
--EXTENSIONS--
xml
--SKIPIF--
<?php
require_once("skipif.inc");
if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this platform");}
?>
--FILE--

View file

@ -1,9 +1,7 @@
--TEST--
Bug #50576 (XML_OPTION_SKIP_TAGSTART option has no effect)
--SKIPIF--
<?php
require_once("skipif.inc");
?>
--EXTENSIONS--
xml
--FILE--
<?php

View file

@ -1,9 +1,7 @@
--TEST--
Bug #65236 (heap corruption in xml parser)
--SKIPIF--
<?php
require_once("skipif.inc");
?>
--EXTENSIONS--
xml
--FILE--
<?php
xml_parse_into_struct(xml_parser_create_ns(), str_repeat("<blah>", 1000), $a);

View file

@ -1,9 +1,7 @@
--TEST--
Bug #72099: xml_parse_into_struct segmentation fault
--SKIPIF--
<?php
require_once("skipif.inc");
?>
--EXTENSIONS--
xml
--FILE--
<?php
$var1=xml_parser_create_ns();

View file

@ -1,7 +1,7 @@
--TEST--
Bug #72793: xml_parser_free leaks mem when execute xml_set_object
--SKIPIF--
<?php include("skipif.inc"); ?>
--EXTENSIONS--
xml
--FILE--
<?php

View file

@ -1,7 +1,7 @@
--TEST--
Bug #76874: xml_parser_free() should never leak memory
--SKIPIF--
<?php include("skipif.inc"); ?>
--EXTENSIONS--
xml
--FILE--
<?php

View file

@ -1,7 +1,7 @@
--TEST--
Bug #78563: parsers should not be clonable
--SKIPIF--
<?php include("skipif.inc"); ?>
--EXTENSIONS--
xml
--FILE--
<?php

View file

@ -1,7 +1,7 @@
--TEST--
Bug #78563: parsers should not be extendable
--SKIPIF--
<?php include("skipif.inc"); ?>
--EXTENSIONS--
xml
--FILE--
<?php

View file

@ -1,7 +1,7 @@
--TEST--
Bug #78563: parsers should not be serializable
--SKIPIF--
<?php include("skipif.inc"); ?>
--EXTENSIONS--
xml
--FILE--
<?php

View file

@ -1,10 +0,0 @@
<?php
// DO NOT dl load extension
//if (!extension_loaded("xml")) {
// $dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so";
// @dl("xml$dlext");
//}
if (!extension_loaded("xml")) {
die('skip xml extension not available');
}
?>

View file

@ -1,8 +1,9 @@
--TEST--
XML parser test, function callbacks
--EXTENSIONS--
xml
--SKIPIF--
<?php
require_once("skipif.inc");
XML_SAX_IMPL == 'libxml' && die('skip this test is not intended for libxml SAX parser');
?>
--FILE--

View file

@ -1,8 +1,9 @@
--TEST--
XML parser test, object tuple callbacks
--EXTENSIONS--
xml
--SKIPIF--
<?php
require_once("skipif.inc");
XML_SAX_IMPL == 'libxml' && die('skip this test is not intended for libxml SAX parser');
?>
--FILE--

View file

@ -1,8 +1,9 @@
--TEST--
XML parser test, xml_set_object callbacks
--EXTENSIONS--
xml
--SKIPIF--
<?php
require_once("skipif.inc");
XML_SAX_IMPL == 'libxml' && die('skip this test is not intended for libxml SAX parser');
?>
--FILE--

View file

@ -1,7 +1,7 @@
--TEST--
XML parser case folding test
--SKIPIF--
<?php include("skipif.inc"); ?>
--EXTENSIONS--
xml
--FILE--
<?php
chdir(__DIR__);

View file

@ -1,8 +1,9 @@
--TEST--
xml_parse_into_struct/umlauts in tags
--EXTENSIONS--
xml
--SKIPIF--
<?php
include("skipif.inc");
if(strtoupper("äöüß") != "ÄÖÜß")
{
die("skip strtoupper on non-ascii not supported on this platform");

View file

@ -1,8 +1,9 @@
--TEST--
XML parser test, default namespaces
--EXTENSIONS--
xml
--SKIPIF--
<?php
require_once("skipif.inc");
if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this platform");}
?>
--FILE--

View file

@ -1,8 +1,9 @@
--TEST--
XML parser test, attributes
--EXTENSIONS--
xml
--SKIPIF--
<?php
require_once("skipif.inc");
if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this platform");}
?>
--FILE--

View file

@ -1,9 +1,7 @@
--TEST--
XML Parser test: concat character data and set empty handlers
--SKIPIF--
<?php
require_once("skipif.inc");
?>
--EXTENSIONS--
xml
--FILE--
<?php
function start_elem($parser,$name,$attribs) {

View file

@ -1,7 +1,7 @@
--TEST--
XML parser test using closures as callbacks
--SKIPIF--
<?php include("skipif.inc"); ?>
--EXTENSIONS--
xml
--FILE--
<?php
chdir(__DIR__);

View file

@ -1,7 +1,7 @@
--TEST--
Bug #26384 (domxslt->process causes segfault with xsl:key)
--SKIPIF--
<?php require_once __DIR__ .'/skipif.inc'; ?>
--EXTENSIONS--
xsl
--FILE--
<?php
$dom = new domDocument;

View file

@ -1 +0,0 @@
<?php if (!extension_loaded('xsl')) die('skip xsl extension not available');?>

View file

@ -1,7 +1,7 @@
--TEST--
Test 1: Transform To XML String
--SKIPIF--
<?php require_once __DIR__ .'/skipif.inc'; ?>
--EXTENSIONS--
xsl
--FILE--
<?php
echo "Test 1: Transform To XML String";

View file

@ -1,7 +1,7 @@
--TEST--
Test 2: Transform To HTML String
--SKIPIF--
<?php require_once __DIR__ .'/skipif.inc'; ?>
--EXTENSIONS--
xsl
--FILE--
<?php
echo "Test 2: Transform To HTML String";

View file

@ -1,7 +1,7 @@
--TEST--
Test 3: Using Parameters
--SKIPIF--
<?php require_once __DIR__ .'/skipif.inc'; ?>
--EXTENSIONS--
xsl
--FILE--
<?php
echo "Test 3: Using Parameters";

View file

@ -1,7 +1,7 @@
--TEST--
Test 4: Checking UTF8 Output
--SKIPIF--
<?php require_once __DIR__ .'/skipif.inc'; ?>
--EXTENSIONS--
xsl
--FILE--
<?php
echo "Test 4: Checking UTF8 Output";

View file

@ -1,7 +1,7 @@
--TEST--
Test 5: Checking Indent
--SKIPIF--
<?php require_once __DIR__ .'/skipif.inc'; ?>
--EXTENSIONS--
xsl
--FILE--
<?php
echo "Test 5: Checking Indent";

View file

@ -1,7 +1,7 @@
--TEST--
Test 6: Transform To Doc
--SKIPIF--
<?php require_once __DIR__ .'/skipif.inc'; ?>
--EXTENSIONS--
xsl
--FILE--
<?php
echo "Test 6: Transform To Doc";

View file

@ -1,7 +1,7 @@
--TEST--
Test 7: Transform To Uri
--SKIPIF--
<?php require_once __DIR__ .'/skipif.inc'; ?>
--EXTENSIONS--
xsl
--FILE--
<?php
echo "Test 7: Transform To Uri";

View file

@ -2,10 +2,7 @@
Test 8: Stream Wrapper Includes
--EXTENSIONS--
zlib
--SKIPIF--
<?php
require_once __DIR__ .'/skipif.inc';
?>
xsl
--FILE--
<?php
echo "Test 8: Stream Wrapper Includes ";

View file

@ -2,10 +2,7 @@
Test 8: Stream Wrapper Includes
--EXTENSIONS--
zlib
--SKIPIF--
<?php
require_once __DIR__ .'/skipif.inc';
?>
xsl
--FILE--
<?php
echo "Test 8: Stream Wrapper Includes ";

View file

@ -2,10 +2,7 @@
Test 9: Stream Wrapper XPath-Document()
--EXTENSIONS--
zlib
--SKIPIF--
<?php
require_once __DIR__ .'/skipif.inc';
?>
xsl
--FILE--
<?php
echo "Test 9: Stream Wrapper XPath-Document()";

View file

@ -1,8 +1,9 @@
--TEST--
Test 10: EXSLT Support
--EXTENSIONS--
xsl
--SKIPIF--
<?php
require_once __DIR__ .'/skipif.inc';
$proc = new xsltprocessor;
if (!$proc->hasExsltSupport()) die('skip EXSLT support not available');
if (LIBXSLT_VERSION < 10117) die('skip too old libxsl');

Some files were not shown because too many files have changed in this diff Show more