cvs: phpdoc /en/functions info.xml

From: Date: Sun, 11 Nov 2001 12:13:02 +0000
Subject: cvs: phpdoc /en/functions info.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969338666@lists.php.net to get a copy of this message
goba Sun Nov 11 07:13:02 2001 EDT Modified files: /phpdoc/en/functions info.xml Log: Moving things around, to get alphabetical order

Index: phpdoc/en/functions/info.xml diff -u phpdoc/en/functions/info.xml:1.70 phpdoc/en/functions/info.xml:1.71 --- phpdoc/en/functions/info.xml:1.70 Sat Nov 10 16:49:36 2001 +++ phpdoc/en/functions/info.xml Sun Nov 11 07:13:02 2001 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.70 $ --> +<!-- $Revision: 1.71 $ --> <reference id="ref.info"> <title>PHP options &amp; information</title> <titleabbrev>PHP options/info</titleabbrev> @@ -328,6 +328,229 @@ </refsect1> </refentry> + <refentry id="function.get-defined-constants"> + <refnamediv> + <refname>get_defined_constants</refname> + <refpurpose> + Returns an associative array with the names of all the constants + and their values. + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>get_defined_constants</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para> + This function returns the names and values of all the constants + currently defined. This includes those created by extensions as + well as those created with the <function>define</function> + function. + </para> + <para> + For example the line below + <informalexample> + <programlisting> +print_r (get_defined_constants()); + </programlisting> + </informalexample> + will print a list like: + <informalexample> + <programlisting> +Array +( + [E_ERROR] =&gt; 1 + [E_WARNING] =&gt; 2 + [E_PARSE] =&gt; 4 + [E_NOTICE] =&gt; 8 + [E_CORE_ERROR] =&gt; 16 + [E_CORE_WARNING] =&gt; 32 + [E_COMPILE_ERROR] =&gt; 64 + [E_COMPILE_WARNING] =&gt; 128 + [E_USER_ERROR] =&gt; 256 + [E_USER_WARNING] =&gt; 512 + [E_USER_NOTICE] =&gt; 1024 + [E_ALL] =&gt; 2047 + [TRUE] =&gt; 1 +) + </programlisting> + </informalexample> + </para> + <para> + See also + <function>get_loaded_extensions</function>. + </para> + </refsect1> + </refentry> + + <refentry id="function.get-extension-funcs"> + <refnamediv> + <refname>get_extension_funcs</refname> + <refpurpose> + Returns an array with the names of the functions of a module + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>get_extension_funcs</function></funcdef> + <paramdef>string <parameter>module_name</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + This function returns the names of all the functions defined in + the module indicated by <parameter>module_name</parameter>. + </para> + <para> + For example the lines below + <informalexample> + <programlisting> +print_r (get_extension_funcs (&quot;xml&quot;)); +print_r (get_extension_funcs (&quot;gd&quot;)); + </programlisting> + </informalexample> + will print a list of the functions in the modules + <varname>xml</varname> and <varname>gd</varname> respectively. + </para> + <para> + See also: <function>get_loaded_extensions</function> + </para> + </refsect1> + </refentry> + + <refentry id="function.get-included-files"> + <refnamediv> + <refname>get_included_files</refname> + <refpurpose> + Returns an array with the names of included or required files + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>get_included_files</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para> + Returns an array of the names of all files that have been + included using <function>include</function>, + <function>include_once</function>, <function>require</function> + or <function>require_once</function>. + </para> + <para> + Files that are included or required multiple times only show up + once in the returned array. + </para> + <para> + <example> + <title><function>get_included_files</function> Example</title> + <programlisting role="php"> +&lt;?php + +include("test1.php"); +include_once("test2.php"); +require("test3.php"); +require_once("test4.php"); + +$included_files = get_included_files(); + +foreach($included_files as $filename) { + echo "$filename\n"; +} + +?&gt; + </programlisting> + </example> + will generate the following output: + <informalexample> + <programlisting> +test1.php +test2.php +test3.php +test4.php + </programlisting> + </informalexample> + </para> + <note> + <para> + In PHP 4.0.1pl2 and previous versions + <function>get_included_files</function> assumed that the + required files ended in the extension <literal>.php</literal>; + other extensions would not be returned. The array returned by + <function>get_included_files</function> was an associative array + and only listed files included by <function>include</function> + and <function>include_once</function>. + </para> + </note> + <para> + See also: <function>include</function>, + <function>include_once</function>, <function>require</function>, + <function>require_once</function> and + <function>get_required_files</function>. + </para> + </refsect1> + </refentry> + + <refentry id="function.get-loaded-extensions"> + <refnamediv> + <refname>get_loaded_extensions</refname> + <refpurpose> + Returns an array with the names of all modules compiled and + loaded + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>get_loaded_extensions</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para> + This function returns the names of all the modules compiled and + loaded in the PHP interpreter. + </para> + <para> + For example the line below + <informalexample> + <programlisting> +print_r (get_loaded_extensions()); + </programlisting> + </informalexample> + will print a list like: + <informalexample> + <programlisting> +Array +( + [0] =&gt; xml + [1] =&gt; wddx + [2] =&gt; standard + [3] =&gt; session + [4] =&gt; posix + [5] =&gt; pgsql + [6] =&gt; pcre + [7] =&gt; gd + [8] =&gt; ftp + [9] =&gt; db + [10] =&gt; Calendar + [11] =&gt; bcmath +) + </programlisting> + </informalexample> + </para> + <para> + See also: <function>get_extension_funcs</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.get-magic-quotes-gpc"> <refnamediv> <refname>get_magic_quotes_gpc</refname> @@ -442,11 +665,7 @@ <function>getmypid</function>, and <function>getlastmod</function>. </para> - <note> - <simpara> - This function is not supported on Windows systems. - </simpara> - </note> + &note.no.windows; </refsect1> </refentry> @@ -507,42 +726,79 @@ </refsect1> </refentry> - <refentry id="function.getrusage"> + <refentry id="function.get-required-files"> <refnamediv> - <refname>getrusage</refname> - <refpurpose>Get the current resource usages.</refpurpose> + <refname>get_required_files</refname> + <refpurpose> + Returns an array with the names of included or required files + </refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> - <funcdef>array <function>getrusage</function></funcdef> - <paramdef>int - <parameter><optional>who</optional></parameter> - </paramdef> + <funcdef>array <function>get_required_files</function></funcdef> + <void/> </funcprototype> </funcsynopsis> <para> - This is an interface to getrusage(2). It returns an associative - array containing the data returned from the system call. If who - is 1, getrusage will be called with RUSAGE_CHILDREN. + As of PHP 4.0.4, this function is an alias for + <function>get_included_files</function> </para> <para> - All entries are accessible by using their documented field names. - <example> - <title>Getrusage Example</title> - <programlisting role="php"> -$dat = getrusage(); -echo $dat["ru_nswap"]; # number of swaps -echo $dat["ru_majflt"]; # number of page faults -echo $dat["ru_utime.tv_sec"]; # user time used (seconds) -echo $dat["ru_utime.tv_usec"]; # user time used (microseconds) - </programlisting> - </example> - See your system's man page on getrusage(2) for more details. - </para> - </refsect1> - </refentry> + In PHP 4.0.1pl2 and previous versions + <function>get_required_files</function> assumed that the required + files ended in the extension <literal>.php</literal>, other + extensions would not be returned. The array returned by + <function>get_required_files</function> was an associative array + and only listed files included by <function>require</function> and + <function>require_once</function>. + </para> + <para> + See also: <function>require</function>, + <function>require_once</function>, <function>include</function>, + <function>include_once</function> and + <function>get_included_files</function>. + </para> + </refsect1> + </refentry> + + <refentry id="function.getrusage"> + <refnamediv> + <refname>getrusage</refname> + <refpurpose>Get the current resource usages.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>getrusage</function></funcdef> + <paramdef>int + <parameter><optional>who</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + This is an interface to getrusage(2). It returns an associative + array containing the data returned from the system call. If who + is 1, getrusage will be called with RUSAGE_CHILDREN. + </para> + <para> + All entries are accessible by using their documented field names. + <example> + <title>Getrusage Example</title> + <programlisting role="php"> +$dat = getrusage(); +echo $dat["ru_nswap"]; # number of swaps +echo $dat["ru_majflt"]; # number of page faults +echo $dat["ru_utime.tv_sec"]; # user time used (seconds) +echo $dat["ru_utime.tv_usec"]; # user time used (microseconds) + </programlisting> + </example> + See your system's man page on getrusage(2) for more details. + </para> + </refsect1> + </refentry> <refentry id="function.ini-alter"> <refnamediv> @@ -1486,266 +1742,6 @@ This funcionality was added in PHP 4 Beta 4. </para> </note> - </para> - </refsect1> - </refentry> - - <refentry id="function.get-defined-constants"> - <refnamediv> - <refname>get_defined_constants</refname> - <refpurpose> - Returns an associative array with the names of all the constants - and their values. - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>get_defined_constants</function></funcdef> - <void/> - </funcprototype> - </funcsynopsis> - <para> - This function returns the names and values of all the constants - currently defined. This includes those created by extensions as - well as those created with the <function>define</function> - function. - </para> - <para> - For example the line below - <informalexample> - <programlisting> -print_r (get_defined_constants()); - </programlisting> - </informalexample> - will print a list like: - <informalexample> - <programlisting> -Array -( - [E_ERROR] =&gt; 1 - [E_WARNING] =&gt; 2 - [E_PARSE] =&gt; 4 - [E_NOTICE] =&gt; 8 - [E_CORE_ERROR] =&gt; 16 - [E_CORE_WARNING] =&gt; 32 - [E_COMPILE_ERROR] =&gt; 64 - [E_COMPILE_WARNING] =&gt; 128 - [E_USER_ERROR] =&gt; 256 - [E_USER_WARNING] =&gt; 512 - [E_USER_NOTICE] =&gt; 1024 - [E_ALL] =&gt; 2047 - [TRUE] =&gt; 1 -) - </programlisting> - </informalexample> - </para> - <para> - See also - <function>get_loaded_extensions</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.get-loaded-extensions"> - <refnamediv> - <refname>get_loaded_extensions</refname> - <refpurpose> - Returns an array with the names of all modules compiled and - loaded - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>get_loaded_extensions</function></funcdef> - <void/> - </funcprototype> - </funcsynopsis> - <para> - This function returns the names of all the modules compiled and - loaded in the PHP interpreter. - </para> - <para> - For example the line below - <informalexample> - <programlisting> -print_r (get_loaded_extensions()); - </programlisting> - </informalexample> - will print a list like: - <informalexample> - <programlisting> -Array -( - [0] =&gt; xml - [1] =&gt; wddx - [2] =&gt; standard - [3] =&gt; session - [4] =&gt; posix - [5] =&gt; pgsql - [6] =&gt; pcre - [7] =&gt; gd - [8] =&gt; ftp - [9] =&gt; db - [10] =&gt; Calendar - [11] =&gt; bcmath -) - </programlisting> - </informalexample> - </para> - <para> - See also: <function>get_extension_funcs</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.get-extension-funcs"> - <refnamediv> - <refname>get_extension_funcs</refname> - <refpurpose> - Returns an array with the names of the functions of a module - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>get_extension_funcs</function></funcdef> - <paramdef>string <parameter>module_name</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - This function returns the names of all the functions defined in - the module indicated by <parameter>module_name</parameter>. - </para> - <para> - For example the lines below - <informalexample> - <programlisting> -print_r (get_extension_funcs (&quot;xml&quot;)); -print_r (get_extension_funcs (&quot;gd&quot;)); - </programlisting> - </informalexample> - will print a list of the functions in the modules - <varname>xml</varname> and <varname>gd</varname> respectively. - </para> - <para> - See also: <function>get_loaded_extensions</function> - </para> - </refsect1> - </refentry> - - <refentry id="function.get-required-files"> - <refnamediv> - <refname>get_required_files</refname> - <refpurpose> - Returns an array with the names of included or required files - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>get_required_files</function></funcdef> - <void/> - </funcprototype> - </funcsynopsis> - <para> - As of PHP 4.0.4, this function is an alias for - <function>get_included_files</function> - </para> - <para> - In PHP 4.0.1pl2 and previous versions - <function>get_required_files</function> assumed that the required - files ended in the extension <literal>.php</literal>, other - extensions would not be returned. The array returned by - <function>get_required_files</function> was an associative array - and only listed files included by <function>require</function> and - <function>require_once</function>. - </para> - <para> - See also: <function>require</function>, - <function>require_once</function>, <function>include</function>, - <function>include_once</function> and - <function>get_included_files</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.get-included-files"> - <refnamediv> - <refname>get_included_files</refname> - <refpurpose> - Returns an array with the names of included or required files - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>get_included_files</function></funcdef> - <void/> - </funcprototype> - </funcsynopsis> - <para> - Returns an array of the names of all files that have been - included using <function>include</function>, - <function>include_once</function>, <function>require</function> - or <function>require_once</function>. - </para> - <para> - Files that are included or required multiple times only show up - once in the returned array. - </para> - <para> - <example> - <title><function>get_included_files</function> Example</title> - <programlisting role="php"> -&lt;?php - -include("test1.php"); -include_once("test2.php"); -require("test3.php"); -require_once("test4.php"); - -$included_files = get_included_files(); - -foreach($included_files as $filename) { - echo "$filename\n"; -} - -?&gt; - </programlisting> - </example> - will generate the following output: - <informalexample> - <programlisting> -test1.php -test2.php -test3.php -test4.php - </programlisting> - </informalexample> - </para> - <note> - <para> - In PHP 4.0.1pl2 and previous versions - <function>get_included_files</function> assumed that the - required files ended in the extension <literal>.php</literal>; - other extensions would not be returned. The array returned by - <function>get_included_files</function> was an associative array - and only listed files included by <function>include</function> - and <function>include_once</function>. - </para> - </note> - <para> - See also: <function>include</function>, - <function>include_once</function>, <function>require</function>, - <function>require_once</function> and - <function>get_required_files</function>. </para> </refsect1> </refentry>
« previous php.doc (#969338666) next »