Skip to content

Commit 1de608d

Browse files
committed
Prepared a 0.2.0 release (including refresh of doxygen.ini and other packaging related fixes).
1 parent e5f89ab commit 1de608d

File tree

7 files changed

+1742
-1019
lines changed

7 files changed

+1742
-1019
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"php": ">=5.3.9"
2121
},
2222
"suggest": {
23-
"ext-apc": ">=3.0.13",
23+
"ext-apc": ">=3.1.1",
24+
"ext-apc": ">=5.0.0",
2425
"ext-wincache": ">=1.1.0"
2526
},
2627
"autoload": {

docs/apigen.neon

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
source: ../src
1+
title: PEAR2_Cache_SHM documentation
22

3-
destination: PEAR2_Cache_SHM__ApiGen_Documentation
3+
source:
4+
- ../src
45

5-
extensions: php
6+
destination: Reference/ApiGen/Doc
67

7-
charset: UTF-8
8+
extensions:
9+
- php
810

9-
title: PEAR2_Cache_SHM documentation
11+
charset:
12+
- UTF-8
13+
14+
accessLevels:
15+
- public
1016

11-
autocomplete:
12-
- classes
13-
- methods
14-
- classconstants
17+
tree: true

docs/doxygen.ini

Lines changed: 1680 additions & 993 deletions
Large diffs are not rendered by default.

docs/phpdoc.dist.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<title>PEAR2_Cache_SHM documentation</title>
44
<parser>
55
<default-package-name>PEAR2_Cache_SHM</default-package-name>
6-
<target>PEAR2_Cache_SHM__PhpDocumentor_Cache</target>
6+
<target>Reference/PhpDocumentor/Cache</target>
77
<extensions>
88
<extension>php</extension>
99
</extensions>
@@ -13,6 +13,6 @@
1313
<file>../src/PEAR2/Cache/SHM.php</file>
1414
</files>
1515
<transformer>
16-
<target>PEAR2_Cache_SHM__PhpDocumentor_Documentation</target>
16+
<target>Reference/PhpDocumentor/Doc</target>
1717
</transformer>
1818
</phpdoc>

extrasetup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
foreach ($channelPackages as $package) {
3030
foreach ($registry->toPackage($package, $channel)->installcontents
3131
as $file => $info) {
32-
if (strpos($file, 'php/') === 0) {
32+
if (strpos($file, 'php/') === 0 || strpos($file, 'src/') === 0) {
3333
$filename = substr($file, 4);
3434
$extrafiles['src/' . $filename]
3535
= realpath($phpDir . DIRECTORY_SEPARATOR . $filename);
3636
}
3737
}
3838
}
39-
}
39+
}

package.xml

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@
22
<package version="2.1" xmlns="http://pear.php.net/dtd/package-2.1" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.1 http://pear.php.net/dtd/package-2.1.xsd">
33
<name>PEAR2_Cache_SHM</name>
44
<channel>pear2.php.net</channel>
5-
<summary>Wrapper for shared memory and locking functionality across different extensions.</summary>
5+
<summary>Wrapper for shared memory and locking functionality across different extensions.
6+
</summary>
67
<description>Allows you to share data across requests as long as the PHP process is running. One of APC or WinCache is required to accomplish this, with other extensions being potentially pluggable as adapters.</description>
78
<lead>
89
<name>Vasil Rangelov</name>
910
<user>boen_robot</user>
1011
<email>[email protected]</email>
1112
<active>yes</active>
1213
</lead>
13-
<date>2014-11-02</date>
14-
<time>06:53:24</time>
14+
<date>2016-11-07</date>
15+
<time>02:54:44</time>
1516
<version>
16-
<release>0.1.3</release>
17+
<release>0.2.0</release>
1718
<api>0.1.0</api>
1819
</version>
1920
<stability>
2021
<release>alpha</release>
2122
<api>alpha</api>
2223
</stability>
2324
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL License 2.1</license>
24-
<notes>* Wincache and APC now check their requirements in greater detail:
25-
- APC checks if it's enabled by the apc.enabled INI setting.
26-
- Wincache checks if the user cache is enabled by wincache.ucenabled INI setting.
27-
- Both check if the SAPI is CLI, and if so, whether that's allowed by the respective ini setting.
28-
* The PHAR stub also checks and reports the above.
29-
* SHM::getIterator() now returns ArrayObject instead of a normal array, in order to be compatible with how IteratorAggregate actually works.
25+
<notes>* __Added APCu adapter__
26+
* Version requirements bumped to ones that reflect fully available functionality. More specifically:
27+
- APC 3.1.1 is now the required minimum (previously, 3.0.13), because it's the minimum for APCIterator.
28+
- APCu 5.0.0 is required, because of APCUIterator, though 4.0.0 would be sufficient for the rest.
29+
- PHP 5.3.9 is the minimum required PHP version, because it is the firt one in which a critical bug affecting this package is fixed. See [#43200](https://bugs.php.net/bug.php?id=43200) for details.
3030
* Doc and CS fixes.</notes>
3131
<contents>
3232
<dir name="/">
@@ -49,23 +49,40 @@
4949
<dir name="Adapter">
5050
<file role="php" name="APC.php">
5151
<tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
52+
<tasks:replace type="package-info" to="summary" from="~~summary~~"/>
53+
<tasks:replace type="package-info" to="description" from="~~description~~"/>
54+
</file>
55+
<file role="php" name="APCu.php">
56+
<tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
57+
<tasks:replace type="package-info" to="summary" from="~~summary~~"/>
58+
<tasks:replace type="package-info" to="description" from="~~description~~"/>
5259
</file>
5360
<file role="php" name="Placebo.php">
5461
<tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
62+
<tasks:replace type="package-info" to="summary" from="~~summary~~"/>
63+
<tasks:replace type="package-info" to="description" from="~~description~~"/>
5564
</file>
5665
<file role="php" name="Wincache.php">
5766
<tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
67+
<tasks:replace type="package-info" to="summary" from="~~summary~~"/>
68+
<tasks:replace type="package-info" to="description" from="~~description~~"/>
5869
</file>
5970
</dir>
6071
<file role="php" name="Exception.php">
6172
<tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
73+
<tasks:replace type="package-info" to="summary" from="~~summary~~"/>
74+
<tasks:replace type="package-info" to="description" from="~~description~~"/>
6275
</file>
6376
<file role="php" name="InvalidArgumentException.php">
6477
<tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
78+
<tasks:replace type="package-info" to="summary" from="~~summary~~"/>
79+
<tasks:replace type="package-info" to="description" from="~~description~~"/>
6580
</file>
6681
</dir>
6782
<file role="php" name="SHM.php">
6883
<tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
84+
<tasks:replace type="package-info" to="summary" from="~~summary~~"/>
85+
<tasks:replace type="package-info" to="description" from="~~description~~"/>
6986
</file>
7087
</dir>
7188
</dir>
@@ -88,6 +105,7 @@
88105
<file role="test" name="SHM-factory.php"/>
89106
</dir>
90107
<file role="test" name="APC.phpt"/>
108+
<file role="test" name="APCu.phpt"/>
91109
<file role="test" name="Placebo.phpt"/>
92110
<file role="test" name="SHM-factory_CGI.phpt"/>
93111
<file role="test" name="SHM-factory_CLI.phpt"/>
@@ -115,11 +133,15 @@
115133
<package>
116134
<name>PEAR2_Autoload</name>
117135
<channel>pear2.php.net</channel>
118-
<min>0.2.4</min>
136+
<min>0.3.0</min>
119137
</package>
120138
<extension>
121139
<name>apc</name>
122-
<min>3.0.13</min>
140+
<min>3.1.1</min>
141+
</extension>
142+
<extension>
143+
<name>apcu</name>
144+
<min>5.0.0</min>
123145
</extension>
124146
<extension>
125147
<name>wincache</name>
@@ -134,12 +156,14 @@
134156
<install name="docs/phpdoc.dist.xml" as="phpdoc.dist.xml"/>
135157
<install name="src/PEAR2/Cache/SHM.php" as="PEAR2/Cache/SHM.php"/>
136158
<install name="src/PEAR2/Cache/SHM/Adapter/APC.php" as="PEAR2/Cache/SHM/Adapter/APC.php"/>
159+
<install name="src/PEAR2/Cache/SHM/Adapter/APCu.php" as="PEAR2/Cache/SHM/Adapter/APCu.php"/>
137160
<install name="src/PEAR2/Cache/SHM/Adapter/Placebo.php" as="PEAR2/Cache/SHM/Adapter/Placebo.php"/>
138161
<install name="src/PEAR2/Cache/SHM/Adapter/Wincache.php" as="PEAR2/Cache/SHM/Adapter/Wincache.php"/>
139162
<install name="src/PEAR2/Cache/SHM/Exception.php" as="PEAR2/Cache/SHM/Exception.php"/>
140163
<install name="src/PEAR2/Cache/SHM/InvalidArgumentException.php" as="PEAR2/Cache/SHM/InvalidArgumentException.php"/>
141164
<install name="tests/bootstrap.php" as="bootstrap.php"/>
142165
<install name="tests/PHPT/APC.phpt" as="PHPT/APC.phpt"/>
166+
<install name="tests/PHPT/APCu.phpt" as="PHPT/APCu.phpt"/>
143167
<install name="tests/PHPT/Common/testAddingTtlValue_part1.phpt" as="PHPT/Common/testAddingTtlValue_part1.phpt"/>
144168
<install name="tests/PHPT/Common/testAddingTtlValue_part2.phpt" as="PHPT/Common/testAddingTtlValue_part2.phpt"/>
145169
<install name="tests/PHPT/Common/testAddingTtlValue_part3.phpt" as="PHPT/Common/testAddingTtlValue_part3.phpt"/>

packagexmlsetup.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@
4646
'GIT: $Id$' => array(
4747
'type' => 'package-info',
4848
'to' => 'version'
49+
),
50+
'~~summary~~' => array(
51+
'type' => 'package-info',
52+
'to' => 'summary'
53+
),
54+
'~~description~~' => array(
55+
'type' => 'package-info',
56+
'to' => 'description'
4957
)
5058
),
5159
'eol' => array(

0 commit comments

Comments
 (0)