mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Fix bug #35132
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@200137 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
08afcaba2a
commit
6617f22923
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.20 $ -->
|
||||
<!-- $Revision: 1.21 $ -->
|
||||
<!-- splitted from ./en/functions/info.xml, last change in rev 1.29 -->
|
||||
<refentry id="function.dl">
|
||||
<refnamediv>
|
||||
|
@ -49,7 +49,7 @@
|
|||
<?php
|
||||
// Example loading an extension based on OS
|
||||
if (!extension_loaded('sqlite')) {
|
||||
if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) {
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
|
||||
dl('php_sqlite.dll');
|
||||
} else {
|
||||
dl('sqlite.so');
|
||||
|
@ -58,7 +58,7 @@ if (!extension_loaded('sqlite')) {
|
|||
|
||||
// Or, the PHP_SHLIB_SUFFIX constant is available as of PHP 4.3.0
|
||||
if (!extension_loaded('sqlite')) {
|
||||
$prefix = (PHP_SHLIB_SUFFIX == 'dll') ? 'php_' : '';
|
||||
$prefix = (PHP_SHLIB_SUFFIX === 'dll') ? 'php_' : '';
|
||||
dl($prefix . 'sqlite.' . PHP_SHLIB_SUFFIX);
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue