Skip to content

Instantly share code, notes, and snippets.

@jpauli
Created January 8, 2014 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpauli/8319513 to your computer and use it in GitHub Desktop.
Save jpauli/8319513 to your computer and use it in GitHub Desktop.
<?php
$s = (new PDO("sqlite::memory:"))->query("SELECT 1");
$s->setFetchMode(PDO::FETCH_INTO, $o);
$s->fetch();
/* General error: object must be an object */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment