blob: 23f95c5d952635026f63fab3758797efe66b7fea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--TEST--
Check for rpmdbinfo function on NEVR
--SKIPIF--
<?php
if (!extension_loaded("rpminfo")) print "skip";
if (!rpmdbinfo('kernel')) print "skip kernel not installed";
?>
--FILE--
<?php
$k = rpmdbinfo('kernel');
var_dump(count($k) > 0); // multiple kernels
$n = $k[0]['Name'] . '-' . $k[0]['Version'] . '-' . $k[0]['Release'];
$k = rpmdbinfo($n); // single kernel with NEVR
var_dump(count($k) ==1);
?>
Done
--EXPECTF--
bool(true)
bool(true)
Done
|