Skip to content

Commit 3a57f38

Browse files
committed
tests: Fix tests affected by bool type juggling deprecation
1 parent bfdff47 commit 3a57f38

7 files changed

+7
-7
lines changed

tests/classes/iterators_008.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class D extends C implements Iterator {
1010

1111
public function valid(): bool {
1212
echo __METHOD__ . "($this->counter)\n";
13-
return $this->counter;
13+
return (bool)$this->counter;
1414
}
1515

1616
public function next(): void {

tests/output/bug46897.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function callback($string) {
88
return "[callback:$callback_invocations]$string\n";
99
}
1010

11-
ob_start('callback', 0, false);
11+
ob_start('callback', 0, 0);
1212

1313
echo "Attempt to flush unerasable buffer - should fail...";
1414
var_dump(ob_flush());

tests/output/ob_start_basic_unerasable_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function callback($string) {
88
return "[callback:$callback_invocations]$string\n";
99
}
1010

11-
ob_start('callback', 0, false);
11+
ob_start('callback', 0, 0);
1212

1313
echo "This call will obtain the content:\n";
1414
$str = ob_get_contents();

tests/output/ob_start_basic_unerasable_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function callback($string) {
88
return "[callback:$callback_invocations]$string\n";
99
}
1010

11-
ob_start('callback', 0, false);
11+
ob_start('callback', 0, 0);
1212

1313
echo "All of the following calls will fail to clean/remove the topmost buffer:\n";
1414
var_dump(ob_clean());

tests/output/ob_start_basic_unerasable_003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function callback($string) {
88
return "[callback:$callback_invocations]$string\n";
99
}
1010

11-
ob_start('callback', 0, false);
11+
ob_start('callback', 0, 0);
1212

1313
echo "This call will obtain the content, but will not clean the buffer.";
1414
$str = ob_get_clean();

tests/output/ob_start_basic_unerasable_004.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function callback($string) {
88
return "[callback:$callback_invocations]$string\n";
99
}
1010

11-
ob_start('callback', 0, false);
11+
ob_start('callback', 0, 0);
1212

1313
echo "This call will obtain the content, but will not flush the buffer.";
1414
$str = ob_get_flush();

tests/output/ob_start_basic_unerasable_005.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function callback($string) {
88
return "[callback:$callback_invocations]$string\n";
99
}
1010

11-
ob_start('callback', 0, false);
11+
ob_start('callback', 0, 0);
1212

1313
echo "Attempt to flush unerasable buffer - should fail...";
1414
var_dump(ob_flush());

0 commit comments

Comments
 (0)