#48319 [NEW]: getting Fatal errors member function

From: Date: Mon, 18 May 2009 19:31:33 +0000
Subject: #48319 [NEW]: getting Fatal errors member function
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137458@lists.php.net to get a copy of this message
From: kustomjs at gmail dot com Operating system: Ubuntu 9.04 PHP version: 5.2.9 PHP Bug Type: MySQLi related Bug description: getting Fatal errors member function Description: ------------ I am getting these errors: Fatal error: Call to a member function bind_param() on a non-object in /var/www/index.php on line 92 Fatal error: Call to a member function execute() on a non-object in /var/www/index.php on line 122 Reproduce code: --------------- with this code: default : // list operation $stmt = $db->prepare('SELECT id, email, quota FROM users'); $stmt->execute(); $stmt->bind_result($id, $email, $quota); // not good for large datasets $results = array(); while ($stmt->fetch()) { $results[] = array('id' => $id, 'email' => $email, 'quota' => $quota); } $stmt->close(); include WORKING_DIR.'/list.inc.php'; } $db->close(); Expected result: ---------------- I would like to get the page to work like this: http://white-box.us/manage/index.php -- Edit bug report at http://bugs.php.net/?id=48319&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48319&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48319&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48319&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48319&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48319&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48319&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48319&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48319&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48319&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48319&r=support Expected behavior: http://bugs.php.net/fix.php?id=48319&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48319&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48319&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48319&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48319&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48319&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48319&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48319&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48319&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48319&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48319&r=mysqlcfg

« previous php.bugs (#137458) next »