|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-17 07:17 UTC] edink@php.net
[2002-06-17 07:25 UTC] cox at idecnet dot com
[2002-06-17 07:33 UTC] markonen@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Jun 16 19:00:01 2026 UTC |
Change the actual behaviour of dl() to be OS independant, avoiding the actual workarround: + if (!extension_loaded($ext)) { + if (OS_WINDOWS) { + return @dl("php_$ext.dll"); + } elseif (PHP_OS == 'HP-UX') { + return @dl("$ext.sl"); + } elseif (PHP_OS == 'AIX') { + return @dl("$ext.a"); + } else { + return @dl("$ext.so"); + } + } + return true; -- Tomas V.V.Cox