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