xref: /PHP-7.4/ext/oci8/tests/select_null.phpt (revision 26dfce7f)
1--TEST--
2SELECTing NULL values
3--SKIPIF--
4<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
5--FILE--
6<?php
7
8require __DIR__."/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