php-src/ext/pgsql/tests/pg_jit.phpt
David Carlier 2bb8fbd0a8
ext/pgsql: add pg_jit server info.
since PostgreSQL 11, LLVM JIT feature had been brought thus reporting
the settings to the client connection.

Close GH-14566
2024-06-14 16:27:00 +01:00

22 lines
281 B
PHP

--TEST--
PostgreSQL JIT support
--EXTENSIONS--
pgsql
--SKIPIF--
<?php include("inc/skipif.inc"); ?>
--FILE--
<?php
include('inc/config.inc');
$db = pg_connect($conn_str);
var_dump(pg_jit($db));
pg_close($db);
?>
--EXPECTF--
array(2) {
["jit_provider"]=>
%s
["jit"]=>
%s
}