Arquivos
hhvm/hphp/test/zend/bad/ext-pgsql/22pg_fetch_object.php
T
Paul Tarjan c7466541f8 import zend pgsql tests
We don't pass a single one because of

  Undefined function: pg_connect
2013-04-25 00:50:02 -07:00

21 linhas
409 B
PHP

<?php
error_reporting(E_ALL);
include 'config.inc';
class test_class {
function __construct($arg1, $arg2) {
echo __METHOD__ . "($arg1,$arg2)\n";
}
}
$db = pg_connect($conn_str);
$sql = "SELECT * FROM $table_name WHERE num = 0";
$result = pg_query($db, $sql) or die('Cannot qeury db');
$rows = pg_num_rows($result);
var_dump(pg_fetch_object($result, NULL, 'test_class', array(1, 2)));
echo "Ok\n";
?>