cvs: phpdoc /en/reference/info/functions extension-loaded.xml

From: Date: Sun, 05 May 2002 16:48:17 +0000
Subject: cvs: phpdoc /en/reference/info/functions extension-loaded.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969345277@lists.php.net to get a copy of this message
mfischer Sun May 5 12:48:17 2002 EDT Modified files: /phpdoc/en/reference/info/functions extension-loaded.xml Log: - Update docs. Index: phpdoc/en/reference/info/functions/extension-loaded.xml diff -u phpdoc/en/reference/info/functions/extension-loaded.xml:1.2 phpdoc/en/reference/info/functions/extension-loaded.xml:1.3 --- phpdoc/en/reference/info/functions/extension-loaded.xml:1.2 Wed Apr 17 02:39:25 2002 +++ phpdoc/en/reference/info/functions/extension-loaded.xml Sun May 5 12:48:17 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/info.xml, last change in rev 1.2 --> <refentry id="function.extension-loaded"> <refnamediv> @@ -12,18 +12,49 @@ <type>bool</type><methodname>extension_loaded</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> </methodsynopsis> - <simpara> - Returns &true; if the extension identified by - <parameter>name</parameter> is loaded. You can see the names of - various extensions by using <function>phpinfo</function>. - </simpara> + <para> + Returns &true; if the extension identified by <parameter>name</parameter> + is loaded, &false; otherwise. + </para> + <para> + You can see the names of various extensions by using + <function>phpinfo</function> or if you're usnig the + <literal>CGI</literal> or <literal>CLI</literal> version of + <literal>PHP</literal> you can use the <literal>-m</literal> switch to + list all available extensions: + <screen> +$ php -m +Running PHP 4.3.0-dev +Zend Engine v1.2.1, Copyright (c) 1998-2002 Zend Technologies + +[PHP Modules] +xml +tokenizer +standard +sockets +session +posix +pcre +overload +mysql +mbstring +ctype + +[Zend Modules] + + </screen> + </para> + <note> + <para> + <function>extension_loaded</function> uses the internal extension name + to test whether a certain extension is available or not. Most internal + extension names are written in lower case but there may be extension + available which also use uppercase letters. Be warned that this + function compares <emphasis role="strong">case sensitive</emphasis> ! + </para> + </note> <para> See also <function>phpinfo</function>. - <note> - <para> - This function was added in 3.0.10. - </para> - </note> </para> </refsect1> </refentry>

« previous php.doc (#969345277) next »