Skip to content

Commit 51efe88

Browse files
authored
Add package php-pecl-apcu v5.1.23 (microsoft#10445)
1 parent aac994a commit 51efe88

File tree

8 files changed

+571
-1
lines changed

8 files changed

+571
-1
lines changed

LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSES-AND-NOTICES/SPECS/data/licenses.json

+1
Original file line numberDiff line numberDiff line change
@@ -1573,6 +1573,7 @@
15731573
"phodav",
15741574
"php",
15751575
"php-pear",
1576+
"php-pecl-apcu",
15761577
"php-pecl-zip",
15771578
"physfs",
15781579
"picosat",

SPECS/php-pecl-apcu/apcu-panel.conf

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# APC Control Panel
2+
Alias /apcu-panel /usr/share/apcu-panel
3+
4+
<Directory /usr/share/apcu-panel>
5+
<IfModule mod_authz_core.c>
6+
Require local
7+
</IfModule>
8+
</Directory>
9+

SPECS/php-pecl-apcu/apcu.conf.php

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
define('USE_AUTHENTICATION',1); // Use (internal) authentication - best choice if
3+
// no other authentication is available
4+
// If set to 0:
5+
// There will be no further authentication. You
6+
// will have to handle this by yourself!
7+
// If set to 1:
8+
// You need to change ADMIN_PASSWORD to make
9+
// this work!
10+
define('ADMIN_USERNAME','apc'); // Admin Username
11+
define('ADMIN_PASSWORD','password'); // Admin Password - CHANGE THIS TO ENABLE!!!
12+
13+
// (beckerr) I'm using a clear text password here, because I've no good idea how to let
14+
// users generate a md5 or crypt password in a easy way to fill it in above
15+
16+
//define('DATE_FORMAT', "d.m.Y H:i:s"); // German
17+
//define('DATE_FORMAT', "d/m/Y H:i:s"); // French
18+
define('DATE_FORMAT', 'Y/m/d H:i:s'); // US
19+
20+
define('GRAPH_SIZE',200); // Image size
21+
22+
//define('PROXY', 'tcp://127.0.0.1:8080');
23+

SPECS/php-pecl-apcu/apcu.ini

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
; Enable APCu extension module
2+
extension = apcu.so
3+
4+
; This can be set to 0 to disable APCu
5+
apc.enabled=1
6+
7+
; Setting this enables APCu for the CLI version of PHP
8+
; (Mostly for testing and debugging).
9+
;apc.enable_cli=0
10+
11+
; Sets the path to text files containing caches to load from disk upon
12+
; initialization of APCu. preload_path should be a directory where each
13+
; file follows $key.data where $key should be used as the entry name
14+
; and the contents of the file contains serialized data to use as the value
15+
; of the entry.
16+
;apc.preload_path=
17+
18+
; The size of each shared memory segment, with M/G suffixe
19+
;apc.shm_size=32M
20+
21+
; The number of seconds a cache entry is allowed to idle in a slot in case
22+
; this cache entry slot is needed by another entry.
23+
;apc.ttl=0
24+
25+
; The number of seconds that a cache entry may remain on the
26+
; garbage-collection list.
27+
;apc.gc_ttl=3600
28+
29+
; If you begin to get low on resources, an expunge of the cache
30+
; is performed if it is less than half full. This is not always
31+
; a suitable way of determining if an expunge of the cache
32+
; should be per apc.smart allows you to set a runtime configuration
33+
; value which is used to determine if an expunge should be run
34+
; if (available_size < apc.smart * requested_size)
35+
;apc.smart=0
36+
37+
; A "hint" about the number variables expected in the cache.
38+
; Set to zero or omit if you are not sure;
39+
;apc.entries_hint=4096
40+
41+
; The mktemp-style file_mask to pass to the mmap module
42+
apc.mmap_file_mask=/tmp/apc.XXXXXX
43+
44+
; On very busy servers whenever you start the server or
45+
; modify files you can create a race of many processes
46+
; all trying to cache the same data at the same time.
47+
; By default, APCu attempts to prevent "slamming" of a key.
48+
; A key is considered "slammed" if it was the last key set,
49+
; and a context other than the current one set it ( ie. it
50+
; was set by another process or thread )
51+
;apc.slam_defense=0
52+
53+
; Defines which serializer should be used
54+
; Default is the standard PHP serializer.
55+
;apc.serializer='php'
56+
57+
; use the SAPI request start time for TTL
58+
;apc.use_request_time=0
59+
60+
; Enables APCu handling of signals, such as SIGSEGV, that write core files
61+
; when signaled. APCu will attempt to unmap the shared memory segment in
62+
; order to exclude it from the core file
63+
;apc.coredump_unmap=0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"Signatures": {
3+
"php-pecl-apcu-5.1.23.tgz": "67ee7464ccad2335c3fa4aeb0b8edbcf6d8344feea7922620c6a13015d604482",
4+
"apcu-panel.conf": "243df3ba157ee9c219410bb58536ae38cc06f49e97c0c97b4215930ac455a229",
5+
"apcu.conf.php": "6e951a5ec91cf4d8e7ef4edee81abde1ce2c8d5f55f7c266e4b76b56d97cf176",
6+
"apcu.ini": "17a905e6d91f998a280aefd8ca4a6558ddb86aa34f7dbf5941dc0b963615fa30"
7+
}
8+
}

0 commit comments

Comments
 (0)