Test: /ext/pdo_mysql/tests/bug_38546.phpt - Version 7.3.31    

There are 2 different diffs reported by users for this test.

Count Diff
1 (50%)
038+ Warning: PDOStatement::execute(): SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'true' for column `test`.`test`.`some_bool_1` at row 1 in %s/bug_38546.php on line 113
038- Warning: PDOStatement::execute(): SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'true' for column 'some_bool_1' at row 1 in %s
041+ string(5) "22007"
041- string(5) "HY000"
045+ string(79) "Incorrect integer value: 'true' for column `test`.`test`.`some_bool_1` at row 1"
045- string(65) "Incorrect integer value: 'true' for column 'some_bool_1' at row 1"
1 (50%)
001+ array(3) {
002+ [0]=>
003+ string(5) "00000"
004+ [1]=>
005+ NULL
006+ [2]=>
007+ NULL
008+ }
009+ array(3) {
010+ [0]=>
011+ string(5) "00000"
012+ [1]=>
013+ NULL
014+ [2]=>
015+ NULL
016+ }
017+ array(3) {
018+ [0]=>
019+ string(5) "00000"
020+ [1]=>
021+ NULL
022+ [2]=>
023+ NULL
024+ }
025+ ok prepare 3
026+ array(3) {
027+ [0]=>
028+ string(5) "00000"
029+ [1]=>
030+ NULL
031+ [2]=>
032+ NULL
033+ }
001- ok insert
002- Array
003- (
004- [uid] => 6
005- [0] => 6
006- [some_bool_1] => 0
007- [1] => 0
008- [some_bool_2] => 1
009- [2] => 1
010- [some_int] => -23
011- [3] => -23
012- )
013- ok prepare 1
014- Array
015- (
016- [uid] => 6
017- [0] => 6
018- [some_bool_1] => 1
019- [1] => 1
020- [some_bool_2] => 0
021- [2] => 0
022- [some_int] => 1
023- [3] => 1
024- )
025- ok prepare 2
026- Array
027- (
028- [uid] => 6
029- [0] => 6
030- [some_bool_1] => 0
031- [1] => 0
032- [some_bool_2] => 1
033- [2] => 1
034- [some_int] => 2
035- [3] => 2
036- )
037-
038- Warning: PDOStatement::execute(): SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'true' for column 'some_bool_1' at row 1 in %s
036+ string(5) "00000"
038+ NULL
040+ NULL
041- string(5) "HY000"
043- int(1366)
045- string(65) "Incorrect integer value: 'true' for column 'some_bool_1' at row 1"
047- Array
048- (
049- [uid] => 6
050- [0] => 6
051- [some_bool_1] => 0
052- [1] => 0
053- [some_bool_2] => 1
054- [2] => 1
055- [some_int] => 2
056- [3] => 2
057- )
058-
059- Warning: PDOStatement::execute(): SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'some_bool_2' cannot be null in %s
060- array(3) {
061- [0]=>
062- string(5) "23000"
063- [1]=>
064- int(1048)
065- [2]=>
066- string(35) "Column 'some_bool_2' cannot be null"
067- }
068- Array
069- (
070- [uid] => 6
071- [0] => 6
072- [some_bool_1] => 0
073- [1] => 0
074- [some_bool_2] => 1
075- [2] => 1
076- [some_int] => 2
077- [3] => 2
078- )
079- ok prepare 5
080- Array
081- (
082- [uid] => 6
083- [0] => 6
084- [some_bool_1] => 1
085- [1] => 1
086- [some_bool_2] => 0
087- [2] => 0
088- [some_int] => 5
089- [3] => 5
090- )