@ -2,8 +2,6 @@
BZ2 with files
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip"; ?>
--POST--
--GET--
--FILE--
<?php // $Id$
BZ2 with strings
ctype on integers
<?php if (!extension_loaded("ctype")) print "skip"; ?>
<?php
setlocale(LC_ALL,"C");
ctype on strings
Check for dio presence
<?php if (!extension_loaded("dio")) print "skip"; ?>
echo "dio extension is available";
Adobe Form Data Format functions
<?php if (!extension_loaded("fdf")) print "skip"; ?>
echo is_resource(fdf_create()) ? "OK" : "FAILURE";
FDF open/save and set/get values
$f1 = fdf_create();
FDF read file
$fdf = fdf_open("ext/fdf/tests/simple.fdf");
@ -2,7 +2,6 @@
FDF POST data parsing
<?php if (php_sapi_name()=='cli' || !extension_loaded("fdf")) print "skip"; ?>
--CGI--
--HEADERS--
return <<<END
Content-Type=application/vnd.fdf
@ -29,7 +28,6 @@ trailer
>>
%%EOF
echo strlen($HTTP_FDF_DATA)."\n";
Check for gmp presence
<?php if (!extension_loaded("gmp")) print "skip"; ?>
echo "gmp extension is available";
GMP functionality test - factorial
function fact($x) {
Check for number base recognition
/* Binary */
InterBase: connect, close and pconnect
<?php include("skipif.inc"); ?>
<?php /* $Id$ */
InterBase: misc sql types (may take a while)
InterBase: BLOB test
InterBase: transactions
InterBase: binding (may take a while)
InterBase: array handling
@ -5,8 +5,6 @@ InterBase: event handling
if (PHP_OS == "WINNT") echo "skip";
include("skipif.inc");
?>
Test for blowfish compatibility
<?php if (!extension_loaded("mcrypt")) print "skip"; ?>
function hex2bin($data) {
Bug #8040
error_reporting (E_ALL ^ E_NOTICE);
Check for mcve presence
<?php if (!extension_loaded("mcve")) print "skip"; ?>
echo "mcve extension is available";
Check for ncurses presence
<?php if (!extension_loaded("ncurses")) print "skip"; ?>
echo "ncurses extension is available";
@ -3,8 +3,6 @@ OpenSSL private key functions
<?php // vim600:syn=php
include('skipif.inc'); ?>
echo "Creating private key\n";
@ -5,8 +5,6 @@ Test pcntl wait functionality
if (!extension_loaded("pcntl")) print "skip";
if (!function_exists("posix_kill")) print "skip posix_kill() not avaliable";
function test_exit_waits(){
@ -7,8 +7,6 @@ pspell basic tests (warning: may fail with pspell/aspell < GNU Aspell 0.50.3)
die("skip English dictionary is not avaliable");
}
@ -29,7 +29,5 @@ session_register("arr");
print session_encode()."\n";
session_destroy();
--EXPECT--
baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}}
@ -7,7 +7,5 @@ session_unset() without a initialized session
error_reporting(E_ALL);
session_unset();
print "ok\n";
ok
@ -2,9 +2,6 @@
Check for extname presence
<?php if (!extension_loaded("extname")) print "skip"; ?>
--INI--
echo "extname extension is available";
@ -1,7 +1,5 @@
--TEST--
Test array_merge and array_walk
precision=14
@ -6,8 +6,6 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
die('skip only for Windows');
chdir(dirname(__FILE__));
@ -6,8 +6,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip no symlinks on Windows');
File/Stream functions
is_*() and file_exists() return values are boolean.
Bug #12556 (fgetcsv() ignores lengths when quotes not closed)
$fp = fopen(dirname(__FILE__)."/test.csv", "r");
Bug #20424 (stream_get_meta_data crashes on a normal file stream)
$f = fopen(dirname(__FILE__) . "/../../../../run-tests.php", "r");
Bug #22382 (fgetcsv() does not handle escaped quotes correctly)
$fp = fopen(dirname(__FILE__)."/test2.csv", "r");
Bug #26615 (exec crash on long input lines)
$out = array();
sprintf() function
quoted_printable_decode() function test
<?php echo quoted_printable_decode("=FAwow-factor=C1=d0=D5=DD=C5=CE=CE=D9=C5=0A=
=20=D4=cf=D2=C7=CF=D7=D9=C5=
levenshtein() function test
fgetcsv() with tab delimited fields (BUG #8258)
is_scalar() function test
class foo {}
quoted_printable_decode() function test with CR/LF
<?php echo quoted_printable_decode("=FAwow-factor=C1=D0=D5=DD=C5=CE=CE=D9=C5=0A=
=20=D4=CF=D2=C7=CF=D7=D9=C5=
MD5 / Base64
function test($str) {
SHA1
@ -5,8 +5,6 @@ proc_open
if (!is_executable("/bin/cat")) echo "skip";
if (!function_exists("proc_open")) echo "skip proc_open() is not available";
$ds = array(
Simple math tests
String functions
@ -1,6 +1,5 @@
highlight_string() buffering
highlight.string=#DD0000
highlight.comment=#FF9900
@ -8,7 +7,6 @@ highlight.keyword=#007700
highlight.bg=#FFFFFF
highlight.default=#0000BB
highlight.html=#000000
$var = highlight_string("<br /><?php echo \"foo\"; ?><br />");