xref: /PHP-5.3/ext/oci8/tests/select_null.phpt (revision c7a8bd6a)
1--TEST--
2SELECTing NULL values
3--SKIPIF--
4<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
5--FILE--
6<?php
7
8require dirname(__FILE__)."/connect.inc";
9
10$pc = oci_pconnect($user, $password, $dbase);
11
12$stmt = oci_parse($pc, "select NULL from dual");
13oci_execute($stmt);
14var_dump(oci_fetch_array($stmt, OCI_RETURN_NULLS));
15
16echo "Done\n";
17?>
18--EXPECTF--
19array(2) {
20  [0]=>
21  NULL
22  ["%r(NULL|EXP)%r"]=>
23  NULL
24}
25Done
26