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

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: mysqli::__construct(): (HY000/2005): Unknown MySQL server host 'localhost:3306' (1) in %s/bug74968.php on line 4
002+
003+ Warning: mysqli::query(): Couldn't fetch mysqli in %s/bug74968.php on line 8
004+
005+ Fatal error: Uncaught Error: Call to a member function fetch_object() on null 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}
007+ #0 {main}
1 (50%)
001+ Warning: mysqli::__construct(): (HY000/1698): Access denied for user 'root'@'localhost' in %s/bug74968.php on line 4
002+
003+ Warning: mysqli::query(): Couldn't fetch mysqli in %s/bug74968.php on line 8
004+
005+ Fatal error: Uncaught Error: Call to a member function fetch_object() on null 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}
007+ #0 {main}