xref: /PHP-8.0/ext/sodium/tests/version.phpt (revision d679f022)
1--TEST--
2Check for libsodium version
3--SKIPIF--
4<?php if (!extension_loaded("sodium")) print "skip"; ?>
5--FILE--
6<?php
7echo strlen(SODIUM_LIBRARY_VERSION) >= 5;
8echo "\n";
9echo SODIUM_LIBRARY_MAJOR_VERSION >= 4;
10echo "\n";
11echo SODIUM_LIBRARY_MINOR_VERSION >= 0;
12?>
13--EXPECT--
141
151
161
17