php-src/ext/openssl/tests/skipif.inc
Wez Furlong 74749ad642 Fix regular openssl_pkey_get_private($content, $phrase) syntax and
add test case.
This stuff should be merged into the 4.2 branch.
2002-03-26 00:03:11 +00:00

12 lines
271 B
PHP

<?php
// This script prints "skip" if condition does not meet.
if (!extension_loaded("openssl") && ini_get("enable_dl")) {
$dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so";
@dl("openssl$dlext");
}
if (!extension_loaded("openssl")) {
die("skip\n");
}
?>