Skip to content

Instantly share code, notes, and snippets.

@jeremyquinton
Last active December 19, 2015 02:39
Show Gist options
  • Save jeremyquinton/5884616 to your computer and use it in GitHub Desktop.
Save jeremyquinton/5884616 to your computer and use it in GitHub Desktop.
Example which gives the correct out
$path = '/vagrant/library';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
include("/vagrant/library/Zend/Loader.php");
include("/vagrant/library/Zend/Db.php");
$db = Zend_Db::factory('Mysqli', array(
'host' => 'localhost',
'username' => 'root',
'password' => '',
'dbname' => 'test'
));
$stmt1 = $db->query('select * from products');
var_dump($stmt1->getDriverStatement());
$stmt2 = $db->query('select * from products');
var_dump($stmt1->getDriverStatement());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment