diff --git a/reference/funchand/functions/register-shutdown-function.xml b/reference/funchand/functions/register-shutdown-function.xml index cbcdf10fd8..2ba5a2a8c1 100644 --- a/reference/funchand/functions/register-shutdown-function.xml +++ b/reference/funchand/functions/register-shutdown-function.xml @@ -1,5 +1,5 @@ - + register_shutdown_function @@ -84,6 +84,54 @@ + + &reftitle.examples; + + + <function>register_shutdown_function</function> example + +__construct(); + } + + // PHP5 style constructor, register + // the shutdown handler + function __construct() + { + if(IS_PHP4) + { + register_shutdown_function(Array(&$this, '__destruct')); + } + + echo 'Constructed', PHP_EOL; + } + + // Destructor + function __destruct() + { + echo 'Destructed', PHP_EOL; + } +} + +new Destructor; +?> +]]> + + + + + &reftitle.notes; diff --git a/reference/info/functions/get-magic-quotes-runtime.xml b/reference/info/functions/get-magic-quotes-runtime.xml index 5747ffa317..0ba37d0887 100644 --- a/reference/info/functions/get-magic-quotes-runtime.xml +++ b/reference/info/functions/get-magic-quotes-runtime.xml @@ -1,5 +1,5 @@ - + get_magic_quotes_runtime @@ -25,6 +25,27 @@ + + &reftitle.examples; + + + <function>get_magic_quotes_runtime</function> example + + +]]> + + + + + &reftitle.seealso; diff --git a/reference/info/functions/set-magic-quotes-runtime.xml b/reference/info/functions/set-magic-quotes-runtime.xml index cb220d5ad5..008f983c76 100644 --- a/reference/info/functions/set-magic-quotes-runtime.xml +++ b/reference/info/functions/set-magic-quotes-runtime.xml @@ -1,5 +1,5 @@ - + set_magic_quotes_runtime @@ -41,6 +41,48 @@ + + &reftitle.examples; + + + <function>set_magic_quotes_runtime</function> example + + +]]> + + &example.outputs; + + + + + + + &reftitle.seealso; diff --git a/reference/info/functions/zend-thread-id.xml b/reference/info/functions/zend-thread-id.xml index d391037e5c..eff565e802 100644 --- a/reference/info/functions/zend-thread-id.xml +++ b/reference/info/functions/zend-thread-id.xml @@ -1,5 +1,5 @@ - + zend_thread_id @@ -24,6 +24,30 @@ + + &reftitle.examples; + + + <function>zend_thread_id</function> example + + +]]> + + &example.outputs.similar; + + + + + + + &reftitle.notes; diff --git a/reference/math/functions/is-nan.xml b/reference/math/functions/is-nan.xml index 2efbacf496..4f2a89ac67 100644 --- a/reference/math/functions/is-nan.xml +++ b/reference/math/functions/is-nan.xml @@ -1,21 +1,23 @@ - + is_nan Finds whether a value is not a number + &reftitle.description; - - boolis_nan - floatval - + + boolis_nan + floatval + Checks whether val is 'not a number', like the result of acos(1.01). + &reftitle.parameters; @@ -31,6 +33,7 @@ + &reftitle.returnvalues; @@ -38,6 +41,34 @@ else &false;. + + + &reftitle.examples; + + + <function>is_nan</function> example + + +]]> + + &example.outputs; + + + + + + + &reftitle.seealso; @@ -47,6 +78,7 @@ + + __halt_compiler @@ -51,7 +51,7 @@ fseek($fp, __COMPILER_HALT_OFFSET__); var_dump(stream_get_contents($fp)); // the end of the script execution -__halt_compiler();the installation data (eg. tar, gz, PHP, etc.) +__halt_compiler(); // the installation data (eg. tar, gz, PHP, etc.) ]]> diff --git a/reference/misc/functions/ignore-user-abort.xml b/reference/misc/functions/ignore-user-abort.xml index 5c4dbb5d27..8520b11e30 100644 --- a/reference/misc/functions/ignore-user-abort.xml +++ b/reference/misc/functions/ignore-user-abort.xml @@ -1,5 +1,5 @@ - + ignore_user_abort @@ -39,6 +39,50 @@ Returns the previous setting, as a boolean. + + + &reftitle.examples; + + + A <function>ignore_user_abort</function> example + + +]]> + + + + + &reftitle.notes; @@ -48,6 +92,7 @@ flush. + &reftitle.seealso; diff --git a/reference/network/functions/define-syslog-variables.xml b/reference/network/functions/define-syslog-variables.xml index cdc23cb18d..df84a6cf64 100644 --- a/reference/network/functions/define-syslog-variables.xml +++ b/reference/network/functions/define-syslog-variables.xml @@ -1,5 +1,5 @@ - + define_syslog_variables @@ -24,6 +24,31 @@ + + &reftitle.examples; + + + <function>define_syslog_variables</function> example + + +]]> + + + + + &reftitle.seealso; diff --git a/reference/network/functions/syslog.xml b/reference/network/functions/syslog.xml index 77d3afee17..b5441181f6 100644 --- a/reference/network/functions/syslog.xml +++ b/reference/network/functions/syslog.xml @@ -1,5 +1,5 @@ - + syslog @@ -115,7 +115,6 @@