xref: /PHP-8.1/ext/sodium/tests/bug78114.phpt (revision 6c9a0566)
1--TEST--
2Bug #78114 (segfault when calling sodium_* functions from eval)
3--EXTENSIONS--
4sodium
5--FILE--
6<?php
7try {
8    eval('sodium_bin2hex();');
9} catch (Throwable $ex) {
10    echo $ex->getMessage(), PHP_EOL;
11}
12?>
13--EXPECT--
14sodium_bin2hex() expects exactly 1 argument, 0 given
15