Skip to content

Commit

Permalink
Add a test for vld
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Jul 9, 2020
1 parent 5cbf5a4 commit fc1444f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions phpconfigcheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,18 @@ function test_xdebug()
}
test_xdebug();

// test for vld extension
function test_vld()
{
$meta = tdesc("vld", "Test for loaded vld extension");
if (extension_loaded('xdebug')) {
tres($meta, TEST_HIGH, "vld extension loaded.", "The vld extension can reveal code and data to an attacker and may have an impact on application performance, too. Please deactivate this extension in a production deployment.");
} else {
tres($meta, TEST_OK, "not loaded.");
}
}
test_vld();

/*****************************************************************************/

if (function_exists('posix_isatty') && posix_isatty(STDOUT)) {
Expand Down

0 comments on commit fc1444f

Please sign in to comment.