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) Bug #27023 (CURLOPT_POSTFIELDS does not parse content types for files)
--INI-- --INI--
error_reporting = E_ALL & ~E_DEPRECATED error_reporting = E_ALL & ~E_DEPRECATED
--SKIPIF-- --EXTENSIONS--
<?php include 'skipif.inc'; ?> curl
--FILE-- --FILE--
<?php <?php

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -5,8 +5,8 @@ Mathieu Kooiman <mathieuk@gmail.com>
Dutch UG, TestFest 2009, Utrecht Dutch UG, TestFest 2009, Utrecht
--DESCRIPTION-- --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. 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-- --EXTENSIONS--
<?php include 'skipif.inc'; ?> curl
--FILE-- --FILE--
<?php <?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-- --TEST--
Bug #25666 (XML namespaces broken in libxml-based SAX interface) Bug #25666 (XML namespaces broken in libxml-based SAX interface)
--EXTENSIONS--
xml
--SKIPIF-- --SKIPIF--
<?php <?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");} if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this platform");}
?> ?>
--FILE-- --FILE--

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -2,9 +2,9 @@
Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect), using UTF-* Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect), using UTF-*
--EXTENSIONS-- --EXTENSIONS--
iconv iconv
xml
--SKIPIF-- --SKIPIF--
<?php <?php
require_once("skipif.inc");
if (ICONV_IMPL == 'glibc' && version_compare(ICONV_VERSION, '2.12', '<=')) if (ICONV_IMPL == 'glibc' && version_compare(ICONV_VERSION, '2.12', '<='))
die("skip iconv of glibc <= 2.12 is buggy"); 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 Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect), using EUC-JP, Shift_JIS, GB2312
--EXTENSIONS-- --EXTENSIONS--
iconv iconv
xml
--SKIPIF-- --SKIPIF--
<?php <?php
require_once("skipif.inc");
foreach(array('EUC-JP', 'Shift_JISP', 'GB2312') as $encoding) { foreach(array('EUC-JP', 'Shift_JISP', 'GB2312') as $encoding) {
try { try {
xml_parser_create($encoding); xml_parser_create($encoding);

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #78563: parsers should not be serializable Bug #78563: parsers should not be serializable
--SKIPIF-- --EXTENSIONS--
<?php include("skipif.inc"); ?> xml
--FILE-- --FILE--
<?php <?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-- --TEST--
XML parser test, function callbacks XML parser test, function callbacks
--EXTENSIONS--
xml
--SKIPIF-- --SKIPIF--
<?php <?php
require_once("skipif.inc");
XML_SAX_IMPL == 'libxml' && die('skip this test is not intended for libxml SAX parser'); XML_SAX_IMPL == 'libxml' && die('skip this test is not intended for libxml SAX parser');
?> ?>
--FILE-- --FILE--

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #26384 (domxslt->process causes segfault with xsl:key) Bug #26384 (domxslt->process causes segfault with xsl:key)
--SKIPIF-- --EXTENSIONS--
<?php require_once __DIR__ .'/skipif.inc'; ?> xsl
--FILE-- --FILE--
<?php <?php
$dom = new domDocument; $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--
Test 1: Transform To XML String Test 1: Transform To XML String
--SKIPIF-- --EXTENSIONS--
<?php require_once __DIR__ .'/skipif.inc'; ?> xsl
--FILE-- --FILE--
<?php <?php
echo "Test 1: Transform To XML String"; echo "Test 1: Transform To XML String";

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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