~ubuntu-branches/ubuntu/hardy/lasso/hardy

« back to all changes in this revision

Viewing changes to php/lasso.php

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-07-31 21:35:26 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070731213526-oc6jw5mprcd5tjyy
Tags: 2.0.0-1ubuntu1
* Merge from debian unstable. Remaining changes:
  + debian/control:
    - Modify Maintainer value to match DebianMaintainerField spec.
* debian/rules:
  + Add CC=gcc-4.2 to the configure call else configure won't find jni.h
    from libgcj8-dev.
* configure{,.ac}:
  + Add missing quotes around the value for PHP[45]_LIBS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
/* ----------------------------------------------------------------------------
4
4
 * This file was automatically generated by SWIG (http://www.swig.org).
5
 
 * Version 1.3.28
 
5
 * Version 1.3.31
6
6
 * 
7
7
 * This file is not intended to be easily readable and contains a number of 
8
8
 * coding conventions designed to improve portability and efficiency. Do not make
10
10
 * interface file instead. 
11
11
 * ----------------------------------------------------------------------------- */
12
12
 
13
 
global $LASSO_LOADED__;
14
 
if ($LASSO_LOADED__) return;
15
 
$LASSO_LOADED__ = true;
16
 
 
17
 
/* if our extension has not been loaded, do what we can */
18
 
if (!extension_loaded("php_lasso")) {
19
 
  if (!dl("lasso")) return;
 
13
// Try to load our extension if it's not already loaded.
 
14
if (!extension_loaded("lasso")) {
 
15
  if (strtolower(substr(PHP_OS, 0, 3)) === 'win') {
 
16
    if (!dl('php_lasso.dll')) return;
 
17
  } else {
 
18
    // PHP_SHLIB_SUFFIX is available as of PHP 4.3.0, for older PHP assume 'so'.
 
19
    // It gives 'dylib' on MacOS X which is for libraries, modules are 'so'.
 
20
    if (PHP_SHLIB_SUFFIX === 'PHP_SHLIB_SUFFIX' || PHP_SHLIB_SUFFIX === 'dylib') {
 
21
      if (!dl('lasso.so')) return;
 
22
    } else {
 
23
      if (!dl('lasso.'.PHP_SHLIB_SUFFIX)) return;
 
24
    }
 
25
  }
20
26
}
21
27
 
22
28
 
23
29
 
 
30
/* PHP Proxy Classes */
 
31
 
24
32
?>