1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00
Files
archived-php-src/ext/sodium/tests/bug78114.phpt
T
Christoph M. Becker 22a3fa0b2e Fix #78114: segfault when calling sodium_* functions from eval
We must not follow the NULL pointer.
2019-06-06 10:00:15 +02:00

17 lines
355 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 parameter, 0 given