Skip to content

Commit 1253271

Browse files
committed
Update test after fix in core
1 parent b8c23ef commit 1253271

File tree

3 files changed

+18
-56
lines changed

3 files changed

+18
-56
lines changed

Zend/tests/float_to_int/warning_float_does_not_fit_zend_long_strings.phpt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@ try {
5555
echo 'TypeError', \PHP_EOL;
5656
}
5757

58+
try {
59+
$string[(string) 10e120] = 'E';
60+
var_dump($string);
61+
} catch (\TypeError) {
62+
echo 'TypeError', \PHP_EOL;
63+
}
64+
var_dump($string);
65+
try {
66+
$string[$string_float] = 'E';
67+
} catch (\TypeError) {
68+
echo 'TypeError', \PHP_EOL;
69+
}
70+
var_dump($string);
71+
5872
?>
5973
--EXPECTF--
6074
int(0)
@@ -85,3 +99,7 @@ Float variable
8599

86100
Warning: String offset cast occurred in %s on line %d
87101
string(34) "Eere is some text for good measure"
102+
TypeError
103+
string(34) "Here is some text for good measure"
104+
TypeError
105+
string(34) "Here is some text for good measure"

Zend/tests/float_to_int/warning_float_does_not_fit_zend_long_write_variation1.phpt

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

Zend/tests/float_to_int/warning_float_does_not_fit_zend_long_write_variation2.phpt

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

0 commit comments

Comments
 (0)