mirror of
https://github.com/php/php-src.git
synced 2026-04-30 03:33:17 +02:00
22a3fa0b2e
We must not follow the NULL pointer.
17 lines
355 B
PHP
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
|