cvs: php-src /ext/mysqli/tests bug33491.phpt

From: Date: Mon, 27 Jun 2005 19:07:53 +0000
Subject: cvs: php-src /ext/mysqli/tests bug33491.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-32529@lists.php.net to get a copy of this message
sniper Mon Jun 27 15:07:53 2005 EDT Added files: /php-src/ext/mysqli/tests bug33491.phpt Log: add test case http://cvs.php.net/co.php/php-src/ext/mysqli/tests/bug33491.phpt?r=1.1&p=1 Index: php-src/ext/mysqli/tests/bug33491.phpt +++ php-src/ext/mysqli/tests/bug33491.phpt --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 } } // Segfault when using the DB class which extends mysqli $DB = new DB('localhost', 'root', '', ''); $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

« previous php.cvs (#32529) next »