Fix extension loading on HP-UX (bug #1524776), thanks to Francois Laupretre - flp1.

This commit is contained in:
Michal Čihař
2006-07-18 20:40:40 +00:00
parent 0254076756
commit 64976261a3
2 changed files with 7 additions and 0 deletions

View File

@@ -6,6 +6,10 @@ $Id$
$Source$
2006-07-18 Michal Čihař <michal@cihar.com>
* libraries/common.lib.php: Fix extension loading on HP-UX (bug #1524776),
thanks to Francois Laupretre - flp1.
2006-07-17 Marc Delisle <lem9@users.sourceforge.net>
* libraries/dbi/mysql.dbi.lib.php:
bug #1523623, BIGINT auto_increment and mysql extension

View File

@@ -432,8 +432,11 @@ function PMA_dl($module)
return false;
}
/* Once we require PHP >= 4.3, we might use PHP_SHLIB_SUFFIX here */
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$module_file = 'php_' . $module . '.dll';
} elseif (PHP_OS=='HP-UX') {
$module_file = $module . '.sl';
} else {
$module_file = $module . '.so';
}