note 68862 added to function.get-loaded-extensions

From: Date: Sun, 13 Aug 2006 20:25:08 +0000
Subject: note 68862 added to function.get-loaded-extensions
Groups: php.notes 
Request: Send a blank email to php-notes+get-115874@lists.php.net to get a copy of this message
When you use dl() to load an extension, it won't be listed among the loaded extensions. So if you have a library file that does something like if (!extension_loaded("domxml")) dl((PHP_OS=="WINNT" OR PHP_OS=="WIN32") ? "ext.dll" : "ext.so"); to load the extension only if not loaded yet (ie. if you include the file multiple times) it will always try to load the extension, not just once. Moreover, dl() does not support include_path. ---- Server IP: 213.92.11.19 Probable Submitter: 213.140.19.117 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.get-loaded-extensions.php Edit -- https://master.php.net/note/edit/68862 Del: integrated -- https://master.php.net/note/delete/68862/integrated Del: useless -- https://master.php.net/note/delete/68862/useless Del: bad code -- https://master.php.net/note/delete/68862/bad+code Del: spam -- https://master.php.net/note/delete/68862/spam Del: non-english -- https://master.php.net/note/delete/68862/non-english Del: in docs -- https://master.php.net/note/delete/68862/in+docs Del: other reasons-- https://master.php.net/note/delete/68862 Reject -- https://master.php.net/note/reject/68862 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115874) next »