Skip to content

Commit dfd4c0d

Browse files
committed
Packaging related fixes.
1 parent 1ed88fe commit dfd4c0d

File tree

8 files changed

+223
-152
lines changed

8 files changed

+223
-152
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ php:
77
before_script:
88
- composer self-update
99
- composer install
10-
- phpunit --configuration tests/secondaryPeer.xml &
10+
- composer require "pear2/cache_shm" ">=0.1.2"
11+
- cd tests
12+
- phpunit --configuration secondaryPeer.xml &
1113
- sleep 2
1214
script:
13-
- phpunit --configuration tests/phpunit.xml
15+
- phpunit --configuration phpunit.xml

RELEASE-1.0.0a4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
* Support for encrypted connections. Note that due to known issues with PHP itself, encrypted connections may be unstable (as in "sometimes disconnect suddenly" or "sometimes hang when calling TcpClient::isDataAwaiting() without a timeout").
12
* Stream::isAcceptingData() and Stream::isDataAwaiting() now accept an optional timeout, modeled after stream_select().
23
* Changed sending to retry indefinetly unless the connection is broken, thanks to isDataAwaiting()'s new ability. Receiving can still timeout.
34
* Chnaged the PHAR stub to not fail when reading the hash fails.

composer.json

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,18 @@
1616
"wiki": "http://github.com/pear2/Net_Transmitter/wiki"
1717
},
1818
"require": {
19-
"php": ">=5.3.0",
20-
"pear2/cache_shm": "@dev"
19+
"php": ">=5.3.0"
2120
},
2221
"suggest": {
22+
"pear2/cache_shm": ">=0.1.2",
2323
"ext-apc": ">=3.0.13",
24-
"ext-wincache": ">=1.1.0"
24+
"ext-wincache": ">=1.1.0",
25+
"ext-openssl": "*"
2526
},
2627
"autoload": {
2728
"psr-0": {
2829
"PEAR2\\Net\\Transmitter\\": "src/"
2930
}
3031
},
31-
"minimum-stability": "dev",
32-
"repositories": [
33-
{
34-
"type": "package",
35-
"package": {
36-
"name": "pear2/cache_shm",
37-
"version": "@dev",
38-
"source": {
39-
"type": "git",
40-
"url": "https://github.com/pear2/Cache_SHM.git",
41-
"reference": "master"
42-
}
43-
}
44-
}
45-
]
32+
"minimum-stability": "dev"
4633
}

docs/phpdoc.dist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<title>PEAR2_Net_Transmitter documentation</title>
44
<parser>
55
<default-package-name>PEAR2_Net_Transmitter</default-package-name>
6-
<target>PEAR2_Net_Transmitter__PhpDocumentor_Documentation</target>
6+
<target>PEAR2_Net_Transmitter__PhpDocumentor_Cache</target>
77
<extensions>
88
<extension>php</extension>
99
</extensions>

extrasetup.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
new RecursiveDirectoryIterator(
1313
$pkg,
1414
RecursiveDirectoryIterator::UNIX_PATHS
15+
| RecursiveDirectoryIterator::SKIP_DOTS
1516
),
1617
RecursiveIteratorIterator::LEAVES_ONLY
1718
) as $path

package.xml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,28 @@ This package abstracts this away, so that when you want to get exactly N amount
1313
<email>boen.robot@gmail.com</email>
1414
<active>yes</active>
1515
</lead>
16-
<date>2012-08-03</date>
17-
<time>04:21:01</time>
16+
<date>2013-08-15</date>
17+
<time>18:20:49</time>
1818
<version>
19-
<release>1.0.0a3</release>
19+
<release>1.0.0a4</release>
2020
<api>1.0.0</api>
2121
</version>
2222
<stability>
2323
<release>alpha</release>
2424
<api>alpha</api>
2525
</stability>
2626
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL License 2.1</license>
27-
<notes>Added locking support at TcpClient, particularly for persistent connections. Also some doc fixes.</notes>
27+
<notes>* Support for encrypted connections. Note that due to known issues with PHP itself, encrypted connections may be unstable (as in &quot;sometimes disconnect suddenly&quot; or &quot;sometimes hang when calling TcpClient::isDataAwaiting() without a timeout&quot;).
28+
* Stream::isAcceptingData() and Stream::isDataAwaiting() now accept an optional timeout, modeled after stream_select().
29+
* Changed sending to retry indefinetly unless the connection is broken, thanks to isDataAwaiting()'s new ability. Receiving can still timeout.
30+
* Chnaged the PHAR stub to not fail when reading the hash fails.
31+
* Doc and CS fixes.</notes>
2832
<contents>
2933
<dir name="/">
3034
<dir name="docs" baseinstalldir="/">
35+
<file role="doc" name="apigen.neon">
36+
<tasks:replace from="../src" to="php_dir" type="pear-config"/>
37+
</file>
3138
<file role="doc" name="doxygen.ini">
3239
<tasks:replace from="../src" to="php_dir" type="pear-config"/>
3340
<tasks:replace from="GIT: $Id$" to="version" type="package-info"/>
@@ -93,10 +100,12 @@ This package abstracts this away, so that when you want to get exactly N amount
93100
<file role="test" name="bootstrap.php">
94101
<tasks:replace from="../src" to="php_dir" type="pear-config"/>
95102
</file>
103+
<file role="test" name="ClientEncryptedTest.php_"/>
96104
<file role="test" name="ClientTest.php"/>
97105
<file role="test" name="phpunit.xml"/>
98106
<file role="test" name="secondaryPeer.bat"/>
99107
<file role="test" name="secondaryPeer.xml"/>
108+
<file role="test" name="ServerEncryptedTest.php_"/>
100109
<file role="test" name="ServerTest.php"/>
101110
<file role="test" name="UnconnectedTest.php"/>
102111
</dir>
@@ -120,25 +129,34 @@ This package abstracts this away, so that when you want to get exactly N amount
120129
<package>
121130
<name>PEAR2_Cache_SHM</name>
122131
<channel>pear2.php.net</channel>
123-
<min>0.1.0</min>
132+
<min>0.1.2</min>
124133
</package>
134+
<extension>
135+
<name>openssl</name>
136+
</extension>
125137
</optional>
126138
</dependencies>
127139
<phprelease>
128140
<filelist>
141+
<install name="docs/apigen.neon" as="apigen.neon"/>
129142
<install name="docs/doxygen.ini" as="doxygen.ini"/>
130143
<install name="docs/phpdoc.dist.xml" as="phpdoc.dist.xml"/>
131144
<install name="src/PEAR2/Net/Transmitter/Exception.php" as="PEAR2/Net/Transmitter/Exception.php"/>
145+
<install name="src/PEAR2/Net/Transmitter/FilterCollection.php" as="PEAR2/Net/Transmitter/FilterCollection.php"/>
146+
<install name="src/PEAR2/Net/Transmitter/LockException.php" as="PEAR2/Net/Transmitter/LockException.php"/>
132147
<install name="src/PEAR2/Net/Transmitter/NetworkStream.php" as="PEAR2/Net/Transmitter/NetworkStream.php"/>
133148
<install name="src/PEAR2/Net/Transmitter/SocketException.php" as="PEAR2/Net/Transmitter/SocketException.php"/>
134149
<install name="src/PEAR2/Net/Transmitter/Stream.php" as="PEAR2/Net/Transmitter/Stream.php"/>
150+
<install name="src/PEAR2/Net/Transmitter/StreamException.php" as="PEAR2/Net/Transmitter/StreamException.php"/>
135151
<install name="src/PEAR2/Net/Transmitter/TcpClient.php" as="PEAR2/Net/Transmitter/TcpClient.php"/>
136152
<install name="src/PEAR2/Net/Transmitter/TcpServerConnection.php" as="PEAR2/Net/Transmitter/TcpServerConnection.php"/>
137153
<install name="tests/bootstrap.php" as="bootstrap.php"/>
154+
<install name="tests/ClientEncryptedTest.php_" as="ClientEncryptedTest.php_"/>
138155
<install name="tests/ClientTest.php" as="ClientTest.php"/>
139156
<install name="tests/phpunit.xml" as="phpunit.xml"/>
140157
<install name="tests/secondaryPeer.bat" as="secondaryPeer.bat"/>
141158
<install name="tests/secondaryPeer.xml" as="secondaryPeer.xml"/>
159+
<install name="tests/ServerEncryptedTest.php_" as="ServerEncryptedTest.php_"/>
142160
<install name="tests/ServerTest.php" as="ServerTest.php"/>
143161
<install name="tests/UnconnectedTest.php" as="UnconnectedTest.php"/>
144162
</filelist>

0 commit comments

Comments
 (0)