mirror of
https://github.com/php/php-src.git
synced 2026-10-28 17:56:50 +08:00
And instead let the normal docref error handling code handle arguments
31 lines
970 B
PHP
31 lines
970 B
PHP
--TEST--
|
|
Displaying function arguments in errors
|
|
--INI--
|
|
error_include_args=On
|
|
--FILE--
|
|
<?php
|
|
|
|
// A function that sets its own parameters in docref call, to compare
|
|
unlink('/');
|
|
|
|
// Something with sensitive parameters that exists in a minimal build,
|
|
// and also doesn't set anything in the docref call. cost is set to 4
|
|
// to keep the test fast
|
|
$flags = ["salt" => "123456789012345678901" . chr(0), "cost" => 4];
|
|
password_hash("test", PASSWORD_BCRYPT, $flags);
|
|
|
|
ini_set("error_include_args", "Off");
|
|
|
|
unlink('/');
|
|
password_hash("test", PASSWORD_BCRYPT, $flags);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: unlink('/'): %s in %s on line %d
|
|
|
|
Warning: password_hash(Object(SensitiveParameterValue), '2y', Array): The "salt" option has been ignored, since providing a custom salt is no longer supported in %s on line %d
|
|
|
|
Warning: unlink(): %s in %s on line %d
|
|
|
|
Warning: password_hash(): The "salt" option has been ignored, since providing a custom salt is no longer supported in %s on line %d
|