From d94d48228c9e43dc53170fa91a2f83602cf2b3e7 Mon Sep 17 00:00:00 2001 From: Egon Schmid Date: Fri, 18 Aug 2000 12:03:50 +0000 Subject: [PATCH] Cosmetics, mostly indentation. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@30438 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/info.xml | 330 +++++++++++++++------------------------------ functions/math.xml | 20 +-- 2 files changed, 116 insertions(+), 234 deletions(-) diff --git a/functions/info.xml b/functions/info.xml index 7d91fbffdf..5c9e0bdc71 100644 --- a/functions/info.xml +++ b/functions/info.xml @@ -2,124 +2,6 @@ PHP options & information PHP options/info - - - assert - Checks if assertion is false - - - Description - - - int assert - string|bool assertion - - - - assert will check the given - assertion and take appropriate - action if its result is false. - - - If the assertion is given as a string it - will be evaluated as PHP code by assert. - The advantages of a string assertion - are less overhead when assertion checking is off and messages - containing the assertion expression when - an assertion failes. - - - Assertion should be used as a debugging feature only. You may - use them for sanity-checks that test for conditions that should - always be true and that indicate some programming errors if not - or to check for the presence of certain features like extension - functions or certain system limits and features. - - - Assertions should not be used for normal runtime operations - like input parameter checks. As a rule of thumb your code - should always be able to work correct if assertion checking - is not activated. - - - The behavior of assert may be configured - by assert_options or by .ini-settings - described in that functions manual page. - - - - - - - assert-options - Set/get the various assert flags - - - Description - - - mixed assert_options - int what - mixed value - - - - Using assert_options you may set the various - assert control options or just query their current - settings. - - - assert options - - - - option - ini-parameter - default - description - - - - - ASSERT_ACTIVE - assert.active - 1 - enable assert evaluation - - - ASSERT_WARNING - assert.warning - 1 - issue a PHP warning for each failed assertion - - - ASSERT_BAIL - assert.bail - 0 - terminate execution on failed assertions - - - ASSERT_QUIET_EVAL - assert.quiet_eval - 0 - disable error_reporting during assertion expression evaluation - - - ASSERT_CALLBACK - assert_callback - (null) - user function to call on failed assertions - - - -
- - assert_options will return the original setting - of any option or false on errors. - -
-
- error_log @@ -206,14 +88,14 @@ if (!Ora_Logon($username, $password)) { // Notify administrator by email if we run out of FOO if (!($foo = allocate_new_foo()) { - error_log("Big trouble, we're all out of FOOs!", 1, - "operator@mydomain.com"); + error_log ("Big trouble, we're all out of FOOs!", 1, + "operator@mydomain.com"); } // other ways of calling error_log(): -error_log("You messed up!", 2, "127.0.0.1:7000"); -error_log("You messed up!", 2, "loghost"); -error_log("You messed up!", 3, "/var/tmp/my-errors.log"); +error_log ("You messed up!", 2, "127.0.0.1:7000"); +error_log ("You messed up!", 2, "loghost"); +error_log ("You messed up!", 3, "/var/tmp/my-errors.log"); @@ -340,7 +222,7 @@ error_log("You messed up!", 3, "/var/tmp/my-errors.log"); -$ip = getenv("REMOTE_ADDR"); // get the ip number of the user +$ip = getenv ("REMOTE_ADDR"); // get the ip number of the user @@ -494,7 +376,7 @@ $ip = getenv("REMOTE_ADDR"); // get the ip number of the user getlastmod() example // outputs e.g. 'Last modified: March 04 1998 20:43:59.' -echo "Last modified: ".date( "F d Y H:i:s.", getlastmod() ); +echo "Last modified: ".date ("F d Y H:i:s.", getlastmod()); @@ -765,7 +647,7 @@ else Setting an Environment Variable -putenv("UNIQID=$uniqid"); +putenv ("UNIQID=$uniqid"); @@ -866,9 +748,9 @@ putenv("UNIQID=$uniqid"); get_loaded_extensions - Returns an array with the names of all modules compiled and - loaded - + Returns an array with the names of all modules compiled and + loaded + Description @@ -879,19 +761,19 @@ putenv("UNIQID=$uniqid"); - This function returns the names of all the modules compiled and - loaded in the PHP interpreter. - - - For example the line below - - -print_r(get_loadedextensions()); - - - will print a list like: - - + This function returns the names of all the modules compiled and + loaded in the PHP interpreter. + + + For example the line below + + +print_r (get_loadedextensions()); + + + will print a list like: + + Array ( [0] => xml @@ -907,12 +789,12 @@ Array [10] => Calendar [11] => bcmath ) - - + + + + + See also: get_extension_funcs. - - See also: get_extension_funcs - @@ -920,8 +802,8 @@ Array get_extension_funcs - Returns an array with the names of the functions of a module - + Returns an array with the names of the functions of a module + Description @@ -932,23 +814,23 @@ Array - This function returns the names of all the functions defined in the - module indicated by module_name. - - - For example the lines below - - -print_r(get_extension_funcs("xml")); -print_r(get_extension_funcs("gd")); - - - will print a list of the functions in the modules xml - and gd respectively. + This function returns the names of all the functions defined in + the module indicated by module_name. + + + For example the lines below + + +print_r (get_extension_funcs ("xml")); +print_r (get_extension_funcs ("gd")); + + + will print a list of the functions in the modules + xml and gd respectively. + + + See also: get_loaded_extensions - - See also: get_loaded_extensions - @@ -956,8 +838,9 @@ print_r(get_extension_funcs("gd")); get_required_files - Returns an array with the names of the files require_once()'d in a script - + Returns an array with the names of the files require_once()'d in + a script + Description @@ -968,36 +851,36 @@ print_r(get_extension_funcs("gd")); - This function returns an associtative array of the names of all the files - that have been loaded into a script using - require_once. The indexes of the array are the file - names as used in the require_once without the - ".php" extension. - - - The example below - - Printing the required and included files - + This function returns an associtative array of the names of all + the files that have been loaded into a script using + require_once. The indexes of the array are + the file names as used in the require_once + without the ".php" extension. + + + The example below + + Printing the required and included files + <?php -require_once("local.php"); -require_once("../inc/global.php"); +require_once ("local.php"); +require_once ("../inc/global.php"); for ($i=1; $i<5; $i++) - include "util".$i."php"; + include "util".$i."php"; echo "Required_once files\n"; -print_r(get_required_files()); +print_r (get_required_files()); echo "Included_once files\n"; -print_r(get_included_files()); +print_r (get_included_files()); ?> - - - will generate the following output: + + + will generate the following output: - + Required_once files Array ( @@ -1013,23 +896,23 @@ Array [util3] => util3.php [util4] => util4.php ) - + - - - - As of PHP 4.0.1pl2 this function assumes that the - required_once files end in the extension - ".php", other extensions do not work. - - - - - See also: require_once, + + + + As of PHP 4.0.1pl2 this function assumes that the + required_once files end in the extension + ".php", other extensions do not work. + + + + + See also: require_once, include_once, - get_included_files - + get_included_files + @@ -1037,8 +920,9 @@ Array get_included_files - Returns an array with the names of the files include_once()'d in a script - + Returns an array with the names of the files include_once()'d in + a script + Description @@ -1049,31 +933,29 @@ Array - This function returns an associtative array of the names of all the files - that have been loaded into a script using - include_once. The indexes of the array are the file - names as used in the include_once without the - ".php" extension. - - - - - As of PHP 4.0.1pl2 this function assumes that the - include_once files end in the extension - ".php", other extensions do not work. - - - - - See also: require_once, + This function returns an associtative array of the names of all + the files that have been loaded into a script using + include_once. The indexes of the array are + the file names as used in the include_once + without the ".php" extension. + + + + + As of PHP 4.0.1pl2 this function assumes that the + include_once files end in the extension + ".php", other extensions do not work. + + + + + See also: require_once, include_once, - get_required_files - + get_required_files + - -