~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/openssl/tests/skipif.inc

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
// This script prints "skip" if condition does not meet.
 
3
 
 
4
if (!extension_loaded("openssl") && ini_get("enable_dl")) {
 
5
  $dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so";
 
6
  @dl("openssl$dlext");
 
7
}
 
8
if (!extension_loaded("openssl")) {
 
9
    die("skip\n");
 
10
}
 
11
?>