mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
concede and link to hidef
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@231055 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b24d1b736a
commit
da8700c6b5
1 changed files with 9 additions and 4 deletions
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<refentry id="function.apc-define-constants">
|
||||
<refnamediv>
|
||||
<refname>apc_define_constants</refname>
|
||||
<refpurpose>
|
||||
Defines a set of constants for later retrieval and mass-definition
|
||||
Defines a set of constants for retrieval and mass-definition
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
|
@ -19,7 +19,13 @@
|
|||
<para>
|
||||
<function>define</function> is notoriously slow. Since the main benefit of
|
||||
APC is to increase the performance of scripts/applications, this mechanism
|
||||
is provided to streamline the process of mass constant definition.
|
||||
is provided to streamline the process of mass constant definition. However,
|
||||
This function does not perform as well as anticipated.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
For a better-performing solution, try the
|
||||
<ulink url="&url.pecl.package;hidef">hidef</ulink> extension from PECL.
|
||||
</para>
|
||||
|
||||
<note>
|
||||
|
@ -92,7 +98,6 @@ $constants = array(
|
|||
'THREE' => 3,
|
||||
);
|
||||
apc_define_constants('numbers', $constants);
|
||||
apc_load_constants('numbers');
|
||||
echo ONE, TWO, THREE;
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue