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:
Sean Coates 2007-03-03 02:10:26 +00:00
parent b24d1b736a
commit da8700c6b5

View file

@ -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;
?>
]]>