1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00
Files
archived-php-src/ext/sodium/tests/bug78114.phpt
T
2020-09-09 10:47:43 +02:00

17 lines
354 B
PHP

--TEST--
Bug #78114 (segfault when calling sodium_* functions from eval)
--SKIPIF--
<?php
if (!extension_loaded('sodium')) die('skip sodium extension not available');
?>
--FILE--
<?php
try {
eval('sodium_bin2hex();');
} catch (Throwable $ex) {
echo $ex->getMessage(), PHP_EOL;
}
?>
--EXPECT--
sodium_bin2hex() expects exactly 1 argument, 0 given