Skip to content

Commit fb9c9d8

Browse files
committed
fix some tests
1 parent 673ee94 commit fb9c9d8

File tree

7 files changed

+9
-165
lines changed

7 files changed

+9
-165
lines changed

ext/standard/tests/streams/proc_open_bug69900.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ for($i = 0; $i < 10; $i++){
3232
fwrite($pipes[0], "hello$i\r\n");
3333
fflush($pipes[0]);
3434

35-
$t0 = microtime(1);
35+
$t0 = microtime(true);
3636
$s = fgets($pipes[1]);
37-
$t1 = microtime(1);
37+
$t1 = microtime(true);
3838

3939
echo $s;
4040

ext/tidy/tests/019.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ tidy_repair_string($s, $s, $s);
1313
tidy_repair_string($l, $l, $l);
1414

1515
try {
16-
tidy_repair_file($s, $l, $l, $l);
16+
tidy_repair_file($s, $l, $l);
1717
} catch (\ValueError $e) {
1818
echo $e->getMessage() . \PHP_EOL;
1919
}
2020
try {
21-
tidy_repair_file($s, $s, $s, $s);
21+
tidy_repair_file($s, $s, $s);
2222
} catch (\ValueError $e) {
2323
echo $e->getMessage() . \PHP_EOL;
2424
}
2525

26-
tidy_repair_file($l, $l, $l ,$l); // This doesn't emit any warning, TODO look into
26+
tidy_repair_file($l, $l, $l); // This doesn't emit any warning, TODO look into
2727

2828
echo "Done\n";
2929
?>

ext/xmlreader/tests/bug81521.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ xmlreader
66
<?php
77
$reader = new XMLReader();
88
try {
9-
var_dump($reader->setParserProperty(XMLReader::LOADDTD, 1));
9+
var_dump($reader->setParserProperty(XMLReader::LOADDTD, true));
1010
} catch (Error $e) {
1111
echo $e->getMessage(), "\n";
1212
}

ext/xmlwriter/tests/bug39504.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $xw = new XMLWriter();
1919
$xw->openMemory();
2020
$xw->startDocument(NULL, "UTF-8");
2121
$xw->startDtd("root");
22-
$xw->writeDtdEntity("c", "", 0, "-//W3C//TEXT copyright//EN", "http://www.w3.org/xmlspec/copyright.xml");
22+
$xw->writeDtdEntity("c", "", false, "-//W3C//TEXT copyright//EN", "http://www.w3.org/xmlspec/copyright.xml");
2323
$xw->endDtd();
2424
$xw->startElement("root");
2525
$xw->endDocument();

ext/zlib/tests/gh16883.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ stream_context_set_default([
2929
$f = gzopen('http://'.PHP_CLI_SERVER_HOSTNAME.':'.PHP_CLI_SERVER_PORT, 'r');
3030
var_dump(stream_get_contents($f));
3131

32-
var_dump(gzfile('http://'.PHP_CLI_SERVER_HOSTNAME.':'.PHP_CLI_SERVER_PORT, 'r'));
32+
var_dump(gzfile('http://'.PHP_CLI_SERVER_HOSTNAME.':'.PHP_CLI_SERVER_PORT));
3333

34-
var_dump(readgzfile('http://'.PHP_CLI_SERVER_HOSTNAME.':'.PHP_CLI_SERVER_PORT, 'r'));
34+
var_dump(readgzfile('http://'.PHP_CLI_SERVER_HOSTNAME.':'.PHP_CLI_SERVER_PORT));
3535

3636
?>
3737
--EXPECT--

ext/zlib/tests/gzfile_variation12.phpt

Lines changed: 0 additions & 104 deletions
This file was deleted.

ext/zlib/tests/readgzfile_variation12.phpt

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)