diff options
Diffstat (limited to 'ext/mysqli/tests/bug33491.phpt')
-rw-r--r-- | ext/mysqli/tests/bug33491.phpt | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/ext/mysqli/tests/bug33491.phpt b/ext/mysqli/tests/bug33491.phpt deleted file mode 100644 index 067e489aae..0000000000 --- a/ext/mysqli/tests/bug33491.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -Bug #33491 (extended mysqli class crashes when result is not object) ---INI-- -error_reporting=4095 ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php - -class DB extends mysqli -{ - public function query_single($query) { - $result = parent::query($query); - $result->fetch_row(); // <- Here be crash - } -} - -require_once dirname(__FILE__)."/connect.inc"; - -// Segfault when using the DB class which extends mysqli -$DB = new DB($host, $user, $passwd, ''); -$DB->query_single('SELECT DATE()'); - -?> ---EXPECTF-- -Fatal error: Call to a member function fetch_row() on a non-object in %sbug33491.php on line %d |