mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Replace EXPECTF when possible
Closes GH-5779
This commit is contained in:
parent
24a8065f8b
commit
0c6d06ecfa
@ -40,7 +40,7 @@ namespace {
|
||||
dump_attributes((new ReflectionFunction('Foo\foo'))->getAttributes());
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
array(5) {
|
||||
[0]=>
|
||||
array(2) {
|
||||
|
@ -14,7 +14,7 @@ foreach ($attributes as $attribute) {
|
||||
var_dump(get_class($a));
|
||||
var_dump($a->flags == Attribute::TARGET_ALL);
|
||||
}
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
string(9) "Attribute"
|
||||
array(0) {
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ foreach ($jd_days as $jd_day) {
|
||||
echo "Done\n";
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
=== 2453396
|
||||
string(3) "Jan"
|
||||
string(7) "January"
|
||||
|
@ -37,7 +37,7 @@ curl_multi_remove_handle($mh, $ch3);
|
||||
curl_multi_close($mh);
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
АБВ.txt|application/octet-stream|5АБВ.txt|application/octet-stream|5===DONE===
|
||||
--CLEAN--
|
||||
|
@ -13,7 +13,7 @@ var_dump($multi_close_result);
|
||||
var_dump($cmh);
|
||||
curl_multi_close($cmh);
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
object(CurlMultiHandle)#1 (0) {
|
||||
}
|
||||
NULL
|
||||
|
@ -18,7 +18,7 @@ var_dump($mh);
|
||||
curl_multi_close($mh);
|
||||
var_dump($mh);
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
*** Testing curl_multi_init(void); ***
|
||||
object(CurlMultiHandle)#1 (0) {
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ var_dump($d->getTimestamp());
|
||||
$i = new DateInterval('PT100000000000S');
|
||||
var_dump($i->format('%s'));
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
string(32) "5138-11-16 09:46:40 100000000000"
|
||||
bool(false)
|
||||
string(12) "100000000000"
|
||||
|
@ -50,7 +50,7 @@ foreach ($h as $key => $val) {
|
||||
<?php
|
||||
require(__DIR__ .'/clean.inc');
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
database handler: flatfile
|
||||
Test 1
|
||||
Success: flatfile enabled
|
||||
|
@ -34,7 +34,7 @@ if (($db_file=dba_open($db_filename, "n", $handler))!==FALSE) {
|
||||
<?php
|
||||
require(__DIR__ .'/clean.inc');
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
database handler: flatfile
|
||||
2YY
|
||||
bool(true)
|
||||
|
@ -19,7 +19,7 @@ var_dump(dba_key_split("[key1]name1[key2]name2"));
|
||||
var_dump(dba_key_split("[key1]name1"));
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
array(2) {
|
||||
[0]=>
|
||||
string(0) ""
|
||||
|
@ -34,7 +34,7 @@ if (($db_file=dba_open($db_filename, "n", $handler))!==FALSE) {
|
||||
<?php
|
||||
require(__DIR__ .'/clean.inc');
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
database handler: flatfile
|
||||
2YY
|
||||
bool(true)
|
||||
|
@ -21,7 +21,7 @@ if (is_object($broker)) {
|
||||
}
|
||||
echo "OK\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
OK
|
||||
Invalid or uninitialized EnchantBroker object
|
||||
OK
|
||||
|
@ -7,6 +7,6 @@ Bug #77753 (Heap-buffer-overflow in php_ifd_get32s)
|
||||
@var_dump(exif_read_data(__DIR__."/bug77753.tiff"));
|
||||
?>
|
||||
DONE
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
DONE
|
||||
|
@ -7,5 +7,5 @@ Bug #77988 (heap-buffer-overflow on php_jpg_get16)
|
||||
exif_read_data(__DIR__."/bug77988.jpg", 'COMMENT', FALSE, TRUE);
|
||||
?>
|
||||
DONE
|
||||
--EXPECTF--
|
||||
DONE
|
||||
--EXPECT--
|
||||
DONE
|
||||
|
@ -7,5 +7,5 @@ Bug #78222 (heap-buffer-overflow on exif_scan_thumbnail)
|
||||
exif_read_data(__DIR__."/bug78222.jpg", 'THUMBNAIL', FALSE, TRUE);
|
||||
?>
|
||||
DONE
|
||||
--EXPECTF--
|
||||
DONE
|
||||
--EXPECT--
|
||||
DONE
|
||||
|
@ -7,5 +7,5 @@ Bug #78256 (heap-buffer-overflow on exif_process_user_comment)
|
||||
@exif_read_data(__DIR__."/bug78256.jpg", 'COMMENT', FALSE, TRUE);
|
||||
?>
|
||||
DONE
|
||||
--EXPECTF--
|
||||
DONE
|
||||
--EXPECT--
|
||||
DONE
|
||||
|
@ -14,5 +14,5 @@ if (!extension_loaded('exif')) {
|
||||
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
===DONE===
|
||||
|
@ -20,7 +20,7 @@ try {
|
||||
echo get_class($e) . ": " . $e->getMessage()."\n";
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
bool(false)
|
||||
TypeError: FFI::isNull(): Argument #1 ($ptr) must be of type FFI\CData, null given
|
||||
|
@ -16,6 +16,6 @@ trycatch_dump(
|
||||
fn () => imagepolygon($g, array(200,10, 200,100, 280,100), 2, $fgnd)
|
||||
);
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
!! [ValueError] imagefilledpolygon(): Argument #3 ($num_points_or_col) must be greater than or equal to 3
|
||||
!! [ValueError] imagepolygon(): Argument #3 ($num_points_or_col) must be greater than or equal to 3
|
||||
|
@ -17,5 +17,5 @@ try {
|
||||
echo $e->getMessage(), "\n";
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
imagepng(): Argument #2 ($to) must not contain null bytes
|
||||
|
@ -13,5 +13,5 @@ try {
|
||||
echo $e->getMessage(), "\n";
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
imagexbm(): Argument #2 ($filename) must be a valid path or null, string given
|
||||
|
@ -100,7 +100,7 @@ if ($p3) {
|
||||
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Horizontal: ok
|
||||
Vertical: ok
|
||||
Diagonal: ok
|
||||
|
@ -29,7 +29,7 @@ $base64 = imap_binary($hex);
|
||||
var_dump(bin2hex($base64));
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
*** Testing imap_binary() : basic functionality ***
|
||||
Encode as short string
|
||||
string(136) "5647687063794270637942686269426c654746746347786c49484e30636d6c755a794230627942695a53426959584e6c49445930494756755932396b0d0a5a57513d0d0a"
|
||||
|
@ -12,7 +12,7 @@ var_dump(imap_mutf7_to_utf8("t&AOQ-st"));
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
string(0) ""
|
||||
string(1) "1"
|
||||
string(5) "täst"
|
||||
|
@ -12,7 +12,7 @@ var_dump(imap_utf8_to_mutf7("täst"));
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
string(0) ""
|
||||
string(1) "1"
|
||||
string(8) "t&AOQ-st"
|
||||
|
@ -32,7 +32,7 @@ var_dump(ldap_explode_dn("bob,dc=example,dc=com", 1));
|
||||
echo "Done\n";
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
array(4) {
|
||||
["count"]=>
|
||||
int(3)
|
||||
|
@ -23,7 +23,7 @@ foreach ($queries as $query) {
|
||||
test($query);
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
array(2) {
|
||||
["foo"]=>
|
||||
string(3) "abc"
|
||||
|
@ -25,7 +25,7 @@ foreach ($queries as $query) {
|
||||
test($query);
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
array(3) {
|
||||
["foo"]=>
|
||||
string(3) "abc"
|
||||
|
@ -102,7 +102,7 @@ $r = mb_stripos($euc_jp, "\n");
|
||||
($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
String len: 43
|
||||
== POSITIVE OFFSET ==
|
||||
10
|
||||
|
@ -29,7 +29,7 @@ try {
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
mysqli_result object is already closed
|
||||
mysqli_result object is already closed
|
||||
Done
|
||||
|
@ -27,6 +27,6 @@ try {
|
||||
|
||||
echo "okey";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
mysqli object is already closed
|
||||
okey
|
||||
|
@ -149,7 +149,7 @@ require_once('skipifconnectfailure.inc');
|
||||
|
||||
print "done!";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Parent class:
|
||||
bool(false)
|
||||
|
||||
|
@ -74,5 +74,5 @@ mysqli_close($link);
|
||||
|
||||
printf("done!");
|
||||
?>
|
||||
--EXPECTF--
|
||||
done!
|
||||
--EXPECT--
|
||||
done!
|
||||
|
@ -42,6 +42,6 @@ if (!function_exists('mysqli_enable_reads_from_master')) {
|
||||
|
||||
print "done!";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
mysqli object is already closed
|
||||
done!
|
||||
|
@ -52,7 +52,7 @@ require_once('skipifconnectfailure.inc');
|
||||
<?php
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
a
|
||||
NULL
|
||||
b
|
||||
|
@ -62,7 +62,7 @@ require_once('skipifconnectfailure.inc');
|
||||
<?php
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
[004]
|
||||
bool(false)
|
||||
[006]
|
||||
|
@ -114,7 +114,7 @@ require_once('skipifconnectfailure.inc');
|
||||
<?php
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
[006] 3
|
||||
[008] 0
|
||||
[009] [2014] Commands out of sync; you can't run this command now
|
||||
|
@ -67,6 +67,6 @@ require_once('skipifconnectfailure.inc');
|
||||
<?php
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
mysqli object is already closed
|
||||
done!
|
||||
|
@ -47,6 +47,6 @@ if (!$TEST_EXPERIMENTAL)
|
||||
}
|
||||
print "done!";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
mysqli object is already closed
|
||||
done!
|
||||
|
@ -221,7 +221,7 @@ if (!function_exists('mysqli_stmt_get_result'))
|
||||
<?php
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
array(2) {
|
||||
["id"]=>
|
||||
int(1)
|
||||
|
@ -56,7 +56,7 @@ require_once('skipifconnectfailure.inc');
|
||||
<?php
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
mysqli_stmt object is not fully initialized
|
||||
mysqli_stmt object is already closed
|
||||
done!
|
||||
|
@ -53,6 +53,6 @@ require_once('skipifconnectfailure.inc');
|
||||
<?php
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
mysqli object is already closed
|
||||
done!
|
||||
|
@ -38,6 +38,6 @@ require_once('skipifconnectfailure.inc');
|
||||
<?php
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
mysqli object is already closed
|
||||
done!
|
||||
|
@ -52,7 +52,7 @@ echo "Done\n";
|
||||
require __DIR__."/drop_type.inc";
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Test 2.
|
||||
bool(true)
|
||||
|
||||
|
@ -51,7 +51,8 @@ var_dump(function_exists('ocicollsize'));
|
||||
var_dump(function_exists('ocicollmax'));
|
||||
var_dump(function_exists('ocicolltrim'));
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
@ -97,4 +98,3 @@ bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
@ -43,7 +43,7 @@ require __DIR__.'/drop_table.inc';
|
||||
echo "Done\n";
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
int(4)
|
||||
bool(true)
|
||||
int(4)
|
||||
|
@ -34,7 +34,7 @@ var_dump(function_exists('oci_free_descriptor'));
|
||||
echo "Done\n";
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Test 1
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
@ -137,7 +137,7 @@ oci8_test_sql_execute($c, $stmtarray);
|
||||
echo "Done\n";
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Test 1
|
||||
int(0)
|
||||
int(0)
|
||||
@ -165,4 +165,4 @@ int(1)
|
||||
Test 7a
|
||||
int(3)
|
||||
int(0)
|
||||
Done
|
||||
Done
|
||||
|
@ -43,7 +43,7 @@ odbc_exec($conn, 'DROP TABLE FOO');
|
||||
odbc_exec($conn, 'DROP DATABASE odbcTEST');
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
string(1) "1"
|
||||
bool(true)
|
||||
|
@ -22,6 +22,6 @@ function test() {
|
||||
}
|
||||
var_dump(test());
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
float(1)
|
||||
float(1)
|
||||
|
@ -20,7 +20,7 @@ include(__DIR__ . "/preload.inc");
|
||||
var_dump(function_exists("f2"));
|
||||
?>
|
||||
OK
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
bool(false)
|
||||
bool(true)
|
||||
|
@ -14,7 +14,7 @@ if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows
|
||||
<?php
|
||||
var_dump(class_exists('Foo'));
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Fatal error: Undefined class constant 'self::DOES_NOT_EXIST' in Unknown on line 0
|
||||
|
||||
Fatal error: Failed to resolve initializers of class Foo during preloading in Unknown on line 0
|
||||
|
@ -14,5 +14,5 @@ if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows
|
||||
<?php
|
||||
echo "Foobar";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Foobar
|
||||
|
@ -15,7 +15,7 @@ if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows
|
||||
var_dump(trait_exists('T'));
|
||||
var_dump(class_exists('Foo'));
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Fatal error: Undefined constant 'UNDEF' in Unknown on line 0
|
||||
|
||||
Fatal error: Failed to resolve initializers of class Foo during preloading in Unknown on line 0
|
||||
|
@ -19,7 +19,7 @@ var_dump(class_parents('Bar'));
|
||||
new Foo();
|
||||
f3();
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
bool(true)
|
||||
array(1) {
|
||||
|
@ -12,7 +12,7 @@ if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows
|
||||
?>
|
||||
--FILE--
|
||||
Unreachable
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Fatal error: Undefined constant 'UNDEF' in Unknown on line 0
|
||||
|
||||
Fatal error: Failed to resolve initializers of class Test during preloading in Unknown on line 0
|
||||
|
@ -12,5 +12,5 @@ if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows
|
||||
?>
|
||||
--FILE--
|
||||
Unreachable
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Fatal error: Failed to load class Foo used by typed property Test::$prop during preloading in Unknown on line 0
|
||||
|
@ -25,7 +25,7 @@ try {
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
@ -42,7 +42,7 @@ if (file_exists($outfile2)) {
|
||||
unlink($outfile2);
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
@ -41,7 +41,7 @@ if (file_exists($decryptfile)) {
|
||||
}
|
||||
unlink($tname);
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
Now is the winter of our discontent.
|
||||
true
|
||||
|
@ -41,7 +41,7 @@ if (file_exists($decryptfile)) {
|
||||
}
|
||||
unlink($tname);
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
Now is the winter of our discontent.
|
||||
true
|
||||
|
@ -26,7 +26,7 @@ if (file_exists($outfile)) {
|
||||
unlink($outfile);
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
bool(true)
|
||||
true
|
||||
|
@ -35,7 +35,7 @@ if (file_exists($vout)) {
|
||||
unlink($vout);
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Plain text:
|
||||
Now is the winter of our discontent.
|
||||
bool(true)
|
||||
|
@ -72,7 +72,7 @@ if (file_exists($vout)) {
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
S/MIME attached
|
||||
Plain text:
|
||||
Now is the winter of our discontent.
|
||||
|
@ -40,7 +40,7 @@ if (file_exists($contentfile)) {
|
||||
<?php
|
||||
unlink(__DIR__ . DIRECTORY_SEPARATOR . '/openssl_cms_verify__pkcsfile.tmp');
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
@ -47,7 +47,7 @@ if (file_exists($contentfile)) {
|
||||
<?php
|
||||
unlink(__DIR__ . DIRECTORY_SEPARATOR . '/openssl_cms_verify__pkcsfile.tmp');
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
@ -14,7 +14,7 @@ var_dump(pcntl_alarm(1) > 0);
|
||||
$siginfo = array();
|
||||
var_dump(pcntl_sigtimedwait(array(SIGALRM),$siginfo,2) === SIGALRM);
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
int(0)
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
@ -25,7 +25,7 @@ if ($pid == -1) {
|
||||
exit(42);
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
@ -46,6 +46,6 @@ PDOTest::skip();
|
||||
putenv("PDOTEST_PASS=$orgPass");
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
using credentials in dsn: done
|
||||
ignoring credentials in dsn: done
|
||||
|
@ -73,7 +73,7 @@ var_dump($b->decompress());
|
||||
--CLEAN--
|
||||
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar'); ?>
|
||||
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.tar'); ?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Unknown compression type specified
|
||||
Unknown compression type specified
|
||||
Cannot compress with Gzip compression, not possible with tar-based phar archives
|
||||
|
@ -25,7 +25,7 @@ if ($res) {
|
||||
echo "bool(false)\n";
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(true)
|
||||
|
@ -12,7 +12,7 @@ var_dump(readline_list_history());
|
||||
var_dump(readline_clear_history());
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
array(1) {
|
||||
[0]=>
|
||||
|
@ -8,5 +8,5 @@ readline_clear_history(): Basic test
|
||||
var_dump(readline_clear_history());
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
|
@ -8,6 +8,6 @@ readline_list_history(): Basic test
|
||||
var_dump(readline_list_history());
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
array(0) {
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ var_dump($reflection->getName());
|
||||
var_dump($reflection->getURL());
|
||||
var_dump($reflection->getVersion() === PHP_VERSION);
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
string(17) "Zend Technologies"
|
||||
string(13) "Copyright (c)"
|
||||
string(12) "Zend OPcache"
|
||||
|
@ -15,7 +15,7 @@ echo "Checking working\n";
|
||||
var_dump(snmp_set_enum_print(0));
|
||||
var_dump(snmp_set_enum_print(1));
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Checking working
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
@ -38,7 +38,7 @@ EOF;
|
||||
$server->handle($HTTP_RAW_POST_DATA);
|
||||
echo "ok\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>fopen() expects at least 2 parameters, 0 given</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
||||
ok
|
||||
|
@ -116,7 +116,7 @@ check_basename( $file_path_variations );
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
*** Testing basic operations ***
|
||||
|
||||
--Iteration 1--
|
||||
|
@ -128,7 +128,7 @@ fclose($fp);
|
||||
closedir($dfp);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
*** Testing is_float(), is_double() with float values***
|
||||
-- Iteration 1 --
|
||||
bool(true)
|
||||
|
@ -135,7 +135,7 @@ fclose($fp);
|
||||
closedir($dfp);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
*** Testing is_int(), is_integer() & is_long() with valid integer values ***
|
||||
--Iteration 1--
|
||||
bool(true)
|
||||
|
@ -302,7 +302,7 @@ echo "\nDone";
|
||||
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
*** Testing var_export() with integer values ***
|
||||
|
||||
*** Output for integer values ***
|
||||
|
@ -31,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
float(0.40142572795869574)
|
||||
float(-0.40142572795869574)
|
||||
float(0.40927970959267024)
|
||||
|
@ -31,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
float(-0.8462204042)
|
||||
float(0.8462204042)
|
||||
float(-0.9937407102)
|
||||
|
@ -31,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
float(4872401723)
|
||||
float(-4872401723)
|
||||
float(7641446995)
|
||||
|
@ -32,7 +32,7 @@ for ($i = 0; $i < count($values); $i++) {
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
*** Testing sqrt() : usage variations ***
|
||||
float(4.795831523312719)
|
||||
float(NAN)
|
||||
|
@ -31,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
float(1.588153083)
|
||||
float(-1.588153083)
|
||||
float(8.895619796)
|
||||
|
@ -29,7 +29,7 @@ var_dump(long2ip(-110000));
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
int(2130706433)
|
||||
string(9) "127.0.0.1"
|
||||
int(167772161)
|
||||
|
@ -15,7 +15,7 @@ $path = "ftp://localhost:" . $port."/one/two/three/";
|
||||
mkdir($path, 0755, true);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
string(20) "CWD /one/two/three
|
||||
"
|
||||
string(14) "CWD /one/two
|
||||
|
@ -14,7 +14,7 @@ $path = "ftp://localhost:" . $port."/www";
|
||||
|
||||
var_dump(stat($path)['mode']);
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
string(11) "SIZE /www
|
||||
"
|
||||
int(16877)
|
||||
|
Binary file not shown.
Binary file not shown.
@ -16,7 +16,7 @@ var_dump(msg_remove_queue($res));
|
||||
var_dump(msg_queue_exists($id));
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
object(SysvMessageQueue)#1 (0) {
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ if ($pid) {
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
P: parent process running.
|
||||
P: got semaphore.
|
||||
P: acquired semaphore.
|
||||
|
@ -91,13 +91,8 @@ if (sem_remove($sem_id)) {
|
||||
echo "Fail to remove semaphore from SysV.\n";
|
||||
}
|
||||
echo "End.\n";
|
||||
/* NOTE: assigned semids differ depending on the kernel, since
|
||||
* there are actually 3 semaphores per PHP-created
|
||||
* semaphores in effect, to keep state information.
|
||||
* That's the reason for EXPECTF.
|
||||
*/
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
Start.
|
||||
Got semaphore.
|
||||
Success acquire semaphore.
|
||||
|
@ -22,7 +22,7 @@ try {
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
Shared memory block has already been destroyed
|
||||
Done
|
||||
|
@ -39,7 +39,7 @@ $dirname = __DIR__ . '/oo_add_encoding_dir/';
|
||||
unlink($dirname . 'tmp.zip');
|
||||
rmdir($dirname);
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
0 foo/
|
||||
1 é/
|
||||
2 è/
|
||||
|
@ -44,7 +44,7 @@ $dirname = __DIR__ . '/oo_add_from_string_dir/';
|
||||
unlink($dirname . 'tmp.zip');
|
||||
rmdir($dirname);
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(false)
|
||||
|
@ -25,6 +25,6 @@ if ($zip->status == ZipArchive::ER_RDONLY) {
|
||||
}
|
||||
$zip->close();
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
OK
|
||||
|
@ -60,6 +60,6 @@ $dirname = __DIR__ . '/';
|
||||
include $dirname . 'utils.inc';
|
||||
rmdir_rf(__DIR__ . '/__tmp_oo_addglob2/');
|
||||
?>
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
0: foo.txt, comp=8, enc=0
|
||||
1: bar.txt, comp=0, enc=259
|
||||
|
@ -31,7 +31,7 @@ var_dump($zip->close());
|
||||
unlink($file);
|
||||
?>
|
||||
Done
|
||||
--EXPECTF--
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
bool(true)
|
||||
start
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user