summaryrefslogtreecommitdiff
path: root/ext/sodium/tests/version.phpt
blob: f13345ea0701879a19363b44fad059d3147108a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Check for libsodium version
--SKIPIF--
<?php if (!extension_loaded("sodium")) print "skip"; ?>
--FILE--
<?php
echo strlen(SODIUM_LIBRARY_VERSION) >= 5;
echo "\n";
echo SODIUM_LIBRARY_MAJOR_VERSION >= 4;
echo "\n";
echo SODIUM_LIBRARY_MINOR_VERSION >= 0;
?>
--EXPECT--
1
1
1