cvs: phpdoc /en/reference/info/functions dl.xml

From: Date: Mon, 07 Nov 2005 00:41:12 +0000
Subject: cvs: phpdoc /en/reference/info/functions dl.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969370805@lists.php.net to get a copy of this message
aidan Sun Nov 6 19:41:12 2005 EDT Modified files: /phpdoc/en/reference/info/functions dl.xml Log: Fix bug #35132 http://cvs.php.net/diff.php/phpdoc/en/reference/info/functions/dl.xml?r1=1.20&r2=1.21&ty=u Index: phpdoc/en/reference/info/functions/dl.xml diff -u phpdoc/en/reference/info/functions/dl.xml:1.20 phpdoc/en/reference/info/functions/dl.xml:1.21 --- phpdoc/en/reference/info/functions/dl.xml:1.20 Tue Feb 15 13:29:20 2005 +++ phpdoc/en/reference/info/functions/dl.xml Sun Nov 6 19:41:11 2005 @@ -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 @@ // 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); } ?>

« previous php.doc (#969370805) next »