@@ -4622,9 +4622,9 @@ public function testNonStrictModeTypeCasting(): void {
4622
4622
$ this ->assertSame ( '' , $ result [0 ]->col_text );
4623
4623
$ this ->assertSame ( '0 ' , $ result [0 ]->col_bool );
4624
4624
$ this ->assertSame ( '0 ' , $ result [0 ]->col_bit );
4625
- $ this ->assertSame ( ' 0 ' , $ result [0 ]->col_binary ); // TODO: Should save ''.
4626
- $ this ->assertSame ( '' , $ result [0 ]->col_varbinary );
4627
- $ this ->assertSame ( '' , $ result [0 ]->col_blob );
4625
+ $ this ->assertSame ( PHP_VERSION_ID < 80100 ? null : ' ' , $ result [0 ]->col_binary );
4626
+ $ this ->assertSame ( PHP_VERSION_ID < 80100 ? null : '' , $ result [0 ]->col_varbinary );
4627
+ $ this ->assertSame ( PHP_VERSION_ID < 80100 ? null : '' , $ result [0 ]->col_blob );
4628
4628
$ this ->assertSame ( '0000-00-00 ' , $ result [0 ]->col_date );
4629
4629
$ this ->assertSame ( '00:00:00 ' , $ result [0 ]->col_time );
4630
4630
$ this ->assertSame ( '0000-00-00 00:00:00 ' , $ result [0 ]->col_datetime );
@@ -4671,9 +4671,9 @@ public function testNonStrictModeTypeCasting(): void {
4671
4671
$ this ->assertSame ( '' , $ result [0 ]->col_text );
4672
4672
$ this ->assertSame ( '0 ' , $ result [0 ]->col_bool );
4673
4673
$ this ->assertSame ( '0 ' , $ result [0 ]->col_bit );
4674
- $ this ->assertSame ( ' 0 ' , $ result [0 ]->col_binary ); // TODO: Should save ''.
4675
- $ this ->assertSame ( '' , $ result [0 ]->col_varbinary );
4676
- $ this ->assertSame ( '' , $ result [0 ]->col_blob );
4674
+ $ this ->assertSame ( PHP_VERSION_ID < 80100 ? null : ' ' , $ result [0 ]->col_binary );
4675
+ $ this ->assertSame ( PHP_VERSION_ID < 80100 ? null : '' , $ result [0 ]->col_varbinary );
4676
+ $ this ->assertSame ( PHP_VERSION_ID < 80100 ? null : '' , $ result [0 ]->col_blob );
4677
4677
$ this ->assertSame ( '0000-00-00 ' , $ result [0 ]->col_date );
4678
4678
$ this ->assertSame ( '00:00:00 ' , $ result [0 ]->col_time );
4679
4679
$ this ->assertSame ( '0000-00-00 00:00:00 ' , $ result [0 ]->col_datetime );
0 commit comments