Skip to content

Commit 218fd03

Browse files
committed
Fix some more CLEANUP sections
1 parent 481cdea commit 218fd03

11 files changed

+10
-15
lines changed

ext/dba/tests/bug70825.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ string(4) "1337"
6666
--CLEAN--
6767
<?php
6868
$filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug70825.ini';
69-
unlink($filename);
69+
@unlink($filename);
7070
?>

ext/ldap/tests/ldap_delete_basic.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ require "connect.inc";
3232

3333
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
3434

35-
ldap_delete($link, "dc=my-domain,$base");
35+
@ldap_delete($link, "dc=my-domain,$base");
3636
?>
3737
--EXPECT--
3838
bool(true)

ext/ldap/tests/ldap_delete_ext.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ require "connect.inc";
4141

4242
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
4343

44-
ldap_delete($link, "dc=my-domain,$base");
44+
@ldap_delete($link, "dc=my-domain,$base");
4545
?>
4646
--EXPECTF--
4747
object(LDAP\Result)#%d (0) {

ext/ldap/tests/ldap_mod_del_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ require "connect.inc";
2828

2929
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
3030

31-
ldap_delete($link, "dc=my-domain,$base");
31+
@ldap_delete($link, "dc=my-domain,$base");
3232
?>
3333
--EXPECTF--
3434
Warning: ldap_mod_del(): Modify: No such object in %s on line %d

ext/mysqli/tests/mysqli_allow_local_infile_overrides_local_infile_directory.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
6666
$host, $user, $db, $port, $socket);
6767
}
6868

69-
if (!$link->query($link, 'DROP TABLE IF EXISTS test')) {
69+
if (!$link->query('DROP TABLE IF EXISTS test')) {
7070
printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
7171
}
7272

ext/mysqli/tests/mysqli_local_infile_directory_access_allowed.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
7171
$host, $user, $db, $port, $socket);
7272
}
7373

74-
if (!$link->query($link, 'DROP TABLE IF EXISTS test')) {
74+
if (!$link->query('DROP TABLE IF EXISTS test')) {
7575
printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
7676
}
7777

ext/mysqli/tests/mysqli_local_infile_directory_access_denied.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
5555
$host, $user, $db, $port, $socket);
5656
}
5757

58-
if (!$link->query($link, 'DROP TABLE IF EXISTS test')) {
58+
if (!$link->query('DROP TABLE IF EXISTS test')) {
5959
printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
6060
}
6161

ext/mysqli/tests/mysqli_local_infile_directory_vs_open_basedir.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
5454
$host, $user, $db, $port, $socket);
5555
}
5656

57-
if (!$link->query($link, 'DROP TABLE IF EXISTS test')) {
57+
if (!$link->query('DROP TABLE IF EXISTS test')) {
5858
printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
5959
}
6060

ext/zip/tests/bug53885.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $nx->statName("a",ZIPARCHIVE::FL_UNCHANGED);
1616
--CLEAN--
1717
<?php
1818
$fname = __DIR__."/test53885.zip";
19-
unlink($fname);
19+
@unlink($fname);
2020
?>
2121
--EXPECTF--
2222
Deprecated: ZipArchive::open(): Using empty file as ZipArchive is deprecated in %s

ext/zip/tests/bug70752.phpt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,3 @@ var_dump(file_exists($filename));
2020
--EXPECT--
2121
bool(false)
2222
bool(false)
23-
--CLEAN--
24-
<?php
25-
$filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug70752.txt';
26-
unlink($filename);
27-
?>

ext/zip/tests/oo_getstatusstring.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $arch->close();
2020
?>
2121
--CLEAN--
2222
<?php
23-
unlink(__DIR__.'/foo.zip');
23+
@unlink(__DIR__.'/foo.zip');
2424
?>
2525
--EXPECT--
2626
string(8) "No error"

0 commit comments

Comments
 (0)