Test: /ext/mysqli/tests/bug74968.phpt - Version 7.3.8        

Bug #74968 PHP crashes when calling mysqli_result::fetch_object with an abstract class
Submitted: 2017-07-22 04:56:59 Modified:
From: toto Assigned:
Status: Closed Package: MySQLi related
PHP Version: 7.1.7 OS: Windows

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

Count Diff
1 (50%)
001+ Warning: Packets out of order. Expected 0 received 1. Packet size=68 in %s/bug74968.php on line 4
002+
003+ Warning: mysqli::__construct(): MySQL server has gone away in %s/bug74968.php on line 4
004+
005+ Warning: mysqli::__construct(): Error while reading greeting packet. PID=3466 in %s/bug74968.php on line 4
006+
007+ Warning: mysqli::__construct(): (HY000/2006): MySQL server has gone away in %s/bug74968.php on line 4
008+
009+ Warning: mysqli::query(): Couldn't fetch mysqli in %s/bug74968.php on line 8
010+
011+ Fatal error: Uncaught Error: Call to a member function fetch_object() on bool in %s/bug74968.php:8
001- Fatal error: Uncaught Error: Class 'test' cannot be instantiated in %sbug74968.php:%d
003- #0 %sbug74968.php(%d): mysqli_result->fetch_object('test')
004- #1 {main}
013+ #0 {main}
1 (50%)
001+ Warning: Packets out of order. Expected 0 received 1. Packet size=62 in %s/bug74968.php on line 4
002+
003+ Warning: mysqli::__construct(): MySQL server has gone away in %s/bug74968.php on line 4
004+
005+ Warning: mysqli::__construct(): Error while reading greeting packet. PID=30950 in %s/bug74968.php on line 4
006+
007+ Warning: mysqli::__construct(): (HY000/2006): MySQL server has gone away in %s/bug74968.php on line 4
008+
009+ Warning: mysqli::query(): Couldn't fetch mysqli in %s/bug74968.php on line 8
010+
011+ Fatal error: Uncaught Error: Call to a member function fetch_object() on bool in %s/bug74968.php:8
001- Fatal error: Uncaught Error: Class 'test' cannot be instantiated in %sbug74968.php:%d
003- #0 %sbug74968.php(%d): mysqli_result->fetch_object('test')
004- #1 {main}
013+ #0 {main}