Skip to content

Commit 4d453c8

Browse files
committed
Speed up test and remove zend_test comment
1 parent 1d21d36 commit 4d453c8

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Zend/tests/display_error_function_args.phpt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ error_include_args=On
77

88
// A function that sets its own parameters in docref call, to compare
99
unlink('/');
10+
1011
// Something with sensitive parameters that exists in a minimal build,
11-
// and also doesn't set anything in the docref call
12-
// XXX: May be better to provide a new zend_test func?
13-
password_hash("test", PASSWORD_BCRYPT, array("salt" => "123456789012345678901" . chr(0)));
12+
// and also doesn't set anything in the docref call. cost is set to 4
13+
// to keep the test fast
14+
$flags = ["salt" => "123456789012345678901" . chr(0), "cost" => 4];
15+
password_hash("test", PASSWORD_BCRYPT, $flags);
1416

1517
ini_set("error_include_args", "Off");
1618

1719
unlink('/');
18-
password_hash("test", PASSWORD_BCRYPT, array("salt" => "123456789012345678901" . chr(0)));
20+
password_hash("test", PASSWORD_BCRYPT, $flags);
1921

2022
?>
2123
--EXPECTF--

0 commit comments

Comments
 (0)