note 97550 added to function.apc-load-constants
| From: | webmaster at thedigitalorchard dot ca | Date: | Mon, 26 Apr 2010 00:41:42 +0000 |
| Subject: | note 97550 added to function.apc-load-constants | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168630@lists.php.net to get a copy of this message | ||
There doesn't seem to be a way to store constants that have already been defined. This
function, apc_define_constants(), does both things: (1) defines a constant, and (2) stores the
constant in the cache. This is unfortunate, since it introduces the requirement to handle constant
definitions differently when APC is not available.
(If this function had a "$do_not_define" parameter, or the like, that would give it more
flexibility. I suppose filing a bug report would be a step in the right direction to getting this
idea considered.)
----
Server IP: 216.235.13.26
Probable Submitter: 65.110.28.158
----
Manual Page -- http://www.php.net/manual/en/function.apc-load-constants.php
Edit -- https://master.php.net/note/edit/97550
Del: integrated -- https://master.php.net/note/delete/97550/integrated
Del: useless -- https://master.php.net/note/delete/97550/useless
Del: bad code -- https://master.php.net/note/delete/97550/bad+code
Del: spam -- https://master.php.net/note/delete/97550/spam
Del: non-english -- https://master.php.net/note/delete/97550/non-english
Del: in docs -- https://master.php.net/note/delete/97550/in+docs
Del: other reasons-- https://master.php.net/note/delete/97550
Reject -- https://master.php.net/note/reject/97550
Search -- https://master.php.net/manage/user-notes.php