Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed Autoload.php;

Removed redundant TcpClient::close();
Doc and organization fixes.
  • Loading branch information...
commit 3ce3f831fa5a5b4fe12a26afb342a1183e1af67a 1 parent ede8a11
@boenrobot boenrobot authored
View
2  RELEASE-1.0.0a2
@@ -1,6 +1,6 @@
Lots of reorganization and initial test suite.
-* Renamed all "Socket*Transmitter" classes to "Tcp*".
+* Renamed all "Socket\*Transmitter" classes to "Tcp\*".
* Added test suite with nearly complete code coverage. Remaining coverage is due to forward compatibility issues.
* Added FilterCollection, in turn allowing for the same filter to be applied more than once.
* Added NetworkStream, and made Tcp* classes inherit from it. This new class contains a new method called shutdown().
View
1  RELEASE-1.0.0a3
@@ -0,0 +1 @@
+Added locking support at TcpClient, particularly for persistent connections. Also some doc fixes.
View
188 docs/docblox.xsd
@@ -1,188 +0,0 @@
-<?xml version="1.0"?>
-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:element name="docblox">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Root element of docblox's configuration.</xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:all>
- <xsd:element name="title">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Tthe title for this project, may contain HTML.</xsd:documentation>
- </xsd:annotation>
- <xsd:complexType mixed="true">
- <xsd:sequence>
- <xsd:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/1999/xhtml" processContents="lax"/>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="parser" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The parser section contains all settings related to the conversion of your project’s source to the intermediate structure format of DocBlox (structure.xml).</xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:all>
- <xsd:element name="default-package-name" minOccurs="0" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Optional element which defines the name of the default package. This is the name of the package when none is provided.</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="target" type="xsd:string" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The target location where to store the structure.xml, also used as source location for the transformer.</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="markers" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Contains a listing of item’s. These items identify which keywords in comments are used to identify additional sets of information. An example of this is inline comments starting with the <em>marker</em> TODO or FIXME.</xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="item" type="xsd:string"/>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="extensions" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Contains a list of extension’s which a file must have to be interpreted. If a file does not have the extension mentioned in this list then it is not parsed. Examples: php, php3 or phtml.</xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="extension" type="xsd:string"/>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="visibility" minOccurs="0" type="xsd:string"/>
- </xsd:all>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="transformer" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The transformer section contains most settings related to the transformation of the intermediate structure format (structure.xml) to a human-readable set of documentation. The format of this set of documentation is determined by the template choice which is present in the <strong>transformations</strong> head section.
-
- <blockquote>The transformer determines the location of the intermediate structure format (structure.xml) by retrieving the <strong>target</strong> element in the <strong>parser</strong> section.</blockquote>
- </xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="target" type="xsd:string" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The target location where to store the generated documentation files.</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="external-class-documentation" minOccurs="0" maxOccurs="unbounded">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">With this element you can link the documentation generated by DocBlox to the URL of a library based on the prefix of the class. This element may be used multiple times and each time has a <strong>prefix</strong> and <strong>uri</strong> element which specify which class to link where. The uri element supports 2 substitution variables: {CLASS} and {LOWERCASE_CLASS}.
-
- <blockquote>Please note that if the class is part of a namespace that the backslashes are also copied; with exception of the ‘root’ (start of the class name).</blockquote>
- </xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:all>
- <xsd:element name="prefix" type="xsd:string"/>
- <xsd:element name="uri" type="xsd:anyURI"/>
- </xsd:all>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="logging" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The logging section contains all settings related to the logging of information in DocBlox.
-
- <blockquote>DocBlox does not ‘care’ whether the specified logging paths exist; if they do not then no log files are generated.</blockquote>
- </xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:all>
- <xsd:element name="level" type="logging-level">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Determines the minimum level of information that is supplied. Any priority equal to or higher than the given is included in the log files and is output to the screen. All priorities lower than the given are not logged.</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="paths">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Contains all folders to where DocBlox may log.</xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:all>
- <xsd:element name="default">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The path of the default logging file, the name may be augmented with a {DATE} variable to provide a timestamp and {APP_ROOT} to indicate the root of the DocBlox application.</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="errors">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Messages with level debug are not added to the default log but in a separate log file whose path you can declare here. As with the default log file you can augment the path with the {DATE} variable.</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:all>
- </xsd:complexType>
- </xsd:element>
- </xsd:all>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="transformations" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The transformations section controls the behaviour applied in transforming the intermediate structure format to the final human-readable output.</xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="template">
- <xsd:annotation>
- <xsd:documentation>The name or path of a template to use. This element may be used multiple times to combine several templates though usually you only supply one.</xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:attribute name="name" use="required"/>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="transformation">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">It is also possible to execute additional transformations specifically for this project by defining your own transformations here.</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="files" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The files section allows you to specify where the source code for your project is and what files to ignore.It is allowed to use relative paths here; just remember that these are relative from the working directory where you execute DocBlox in.</xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="file">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">It is possible to specify specific <strong>file</strong>s or a specific set of files using the element. As with the -f parameter it supports wildcards.</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="directory">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">In addition you can also provide entire directory trees using the element. This also supports the use of wildcards. Please note that in contrary to the element that the element is recursive and will tell DocBlox to process all files contained in this folder and every subfolder.</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="ignore">
- <xsd:annotation>
- <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">In some cases you will have to <strong>ignore</strong> certain files in your project; examples of these can be third party libraries and/or tests. In this case you can use the ignore element and provide a pattern (not a path) to ignore. This if you provide <strong>*test*</strong> it will ignore any file or directory containing the text <em>test</em> in it.</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:all>
- </xsd:complexType>
- </xsd:element>
- <xsd:simpleType name="logging-level">
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="emerg"/>
- <xsd:enumeration value="alert"/>
- <xsd:enumeration value="crit"/>
- <xsd:enumeration value="err"/>
- <xsd:enumeration value="warn"/>
- <xsd:enumeration value="notice"/>
- <xsd:enumeration value="info"/>
- <xsd:enumeration value="debug"/>
- <xsd:enumeration value="quiet"/>
- </xsd:restriction>
- </xsd:simpleType>
-</xsd:schema>
View
2  docs/doxygen.ini
@@ -32,7 +32,7 @@ PROJECT_NAME = PEAR2_Net_Transmitter
# This could be handy for archiving the generated documentation or
# if some version control system is used.
-PROJECT_NUMBER = SVN: $WCREV$
+PROJECT_NUMBER = GIT: $Id$
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer
View
11 docs/docblox.xml → docs/phpdoc.dist.xml
@@ -1,12 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
-<docblox
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="docblox.xsd"
->
+<phpdoc>
<title>PEAR2_Net_Transmitter documentation</title>
<parser>
<default-package-name>PEAR2_Net_Transmitter</default-package-name>
- <target>PEAR2_Net_Transmitter__DocBlox_Documentation</target>
+ <target>PEAR2_Net_Transmitter__PhpDocumentor_Documentation</target>
<extensions>
<extension>php</extension>
</extensions>
@@ -15,6 +12,6 @@
<directory>../src/PEAR2/Net/Transmitter</directory>
</files>
<transformer>
- <target>PEAR2_Net_Transmitter__DocBlox_Documentation</target>
+ <target>PEAR2_Net_Transmitter__PhpDocumentor_Documentation</target>
</transformer>
-</docblox>
+</phpdoc>
View
26 extrasetup.php
@@ -0,0 +1,26 @@
+<?php
+$extrafiles = array();
+
+foreach (
+ array(
+ dirname(__DIR__) . DIRECTORY_SEPARATOR . 'PEAR2_Cache_SHM.git'
+ ) as $packageRoot
+) {
+ $pkg = new \Pyrus\Package(
+ $packageRoot . DIRECTORY_SEPARATOR . 'package.xml'
+ );
+ foreach (array('tests', 'docs') as $folder) {
+ foreach (
+ new RecursiveIteratorIterator(
+ new RecursiveDirectoryIterator(
+ $packageRoot . DIRECTORY_SEPARATOR . $folder,
+ RecursiveDirectoryIterator::UNIX_PATHS
+ ),
+ RecursiveIteratorIterator::LEAVES_ONLY
+ ) as $path
+ ) {
+ unset($pkg->files[$path->getPathname()]);
+ }
+ }
+ $extrafiles[] = $pkg;
+}
View
310 package.xml
@@ -1,175 +1,137 @@
<?xml version="1.0" encoding="UTF-8"?>
-<package
- version="2.0"
- xmlns="http://pear.php.net/dtd/package-2.0"
- 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.0 http://pear.php.net/dtd/package-2.0.xsd
- "
->
- <name>PEAR2_Net_Transmitter</name>
- <channel>pear2.php.net</channel>
- <summary>Wrapper for stream functionality.</summary>
- <description>This package provides data integrity to stream functionality, particularly useful for sockets.</description>
- <lead>
- <name>Vasil Rangelov</name>
- <user>boen_robot</user>
- <email>boen.robot@gmail.com</email>
- <active>yes</active>
- </lead>
- <date>2011-09-26</date>
- <version>
- <release>1.0.0a1</release>
- <api>1.0.0</api>
- </version>
- <stability>
- <release>beta</release>
- <api>beta</api>
- </stability>
- <license uri="http://www.gnu.org/copyleft/lesser.html">LGPL License 2.1</license>
- <notes>First PEAR2 compatible release.</notes>
- <contents>
- <dir name="/">
- <dir name="src" baseinstalldir="/">
- <file name="PEAR2/Net/Transmitter/Autoload.php" role="php">
- <tasks:replace type="package-info" from="~~summary~~" to="summary"/>
- <tasks:replace type="package-info" from="~~description~~" to="description"/>
- <tasks:replace type="package-info" from="GIT: $Id$" to="version"/>
- </file>
- <file name="PEAR2/Net/Transmitter/Exception.php" role="php">
- <tasks:replace type="package-info" from="~~summary~~" to="summary"/>
- <tasks:replace type="package-info" from="~~description~~" to="description"/>
- <tasks:replace type="package-info" from="GIT: $Id$" to="version"/>
- </file>
- <file name="PEAR2/Net/Transmitter/NetworkStream.php" role="php">
- <tasks:replace type="package-info" from="~~summary~~" to="summary"/>
- <tasks:replace type="package-info" from="~~description~~" to="description"/>
- <tasks:replace type="package-info" from="GIT: $Id$" to="version"/>
- </file>
- <file name="PEAR2/Net/Transmitter/SocketException.php" role="php">
- <tasks:replace type="package-info" from="~~summary~~" to="summary"/>
- <tasks:replace type="package-info" from="~~description~~" to="description"/>
- <tasks:replace type="package-info" from="GIT: $Id$" to="version"/>
- </file>
- <file name="PEAR2/Net/Transmitter/Stream.php" role="php">
- <tasks:replace type="package-info" from="~~summary~~" to="summary"/>
- <tasks:replace type="package-info" from="~~description~~" to="description"/>
- <tasks:replace type="package-info" from="GIT: $Id$" to="version"/>
- </file>
- <file name="PEAR2/Net/Transmitter/TcpClient.php" role="php">
- <tasks:replace type="package-info" from="~~summary~~" to="summary"/>
- <tasks:replace type="package-info" from="~~description~~" to="description"/>
- <tasks:replace type="package-info" from="GIT: $Id$" to="version"/>
- </file>
- <file name="PEAR2/Net/Transmitter/TcpServerConnection.php" role="php">
- <tasks:replace type="package-info" from="~~summary~~" to="summary"/>
- <tasks:replace type="package-info" from="~~description~~" to="description"/>
- <tasks:replace type="package-info" from="GIT: $Id$" to="version"/>
- </file>
- </dir>
- <dir name="tests">
- <file name="ClientTest.php" role="test" />
- <file name="ServerTest.php" role="test" />
- <file name="UnconnectedTest.php" role="test" />
- <file name="bootstrap.php" role="test">
- <tasks:replace type="pear-config" from="../src" to="php_dir" />
- </file>
- <file name="phpunit.xml" role="test" />
- <file name="secondaryPeer.bat" role="test" />
- <file name="secondaryPeer.xml" role="test" />
- </dir>
- <dir name="docs">
- <file name="doxygen.ini" role="doc">
- <tasks:replace type="package-info" from="GIT: $Id$" to="version" />
- <tasks:replace type="pear-config" from="../src" to="php_dir" />
- </file>
- <file name="docblox.xml" role="doc">
- <tasks:replace type="pear-config" from="../src" to="php_dir" />
- </file>
- </dir>
- </dir>
- </contents>
- <dependencies>
- <required>
- <php>
- <min>5.3.0</min>
- </php>
- <pearinstaller>
- <min>1.4.0</min>
- </pearinstaller>
- </required>
- </dependencies>
- <phprelease>
- <filelist>
- <install
- name="src/PEAR2/Net/Transmitter/Autoload.php"
- as="PEAR2/Net/Transmitter/Autoload.php"
- />
- <install
- name="src/PEAR2/Net/Transmitter/Exception.php"
- as="PEAR2/Net/Transmitter/Exception.php"
- />
- <install
- name="src/PEAR2/Net/Transmitter/NetworkStream.php"
- as="PEAR2/Net/Transmitter/NetworkStream.php"
- />
- <install
- name="src/PEAR2/Net/Transmitter/SocketException.php"
- as="PEAR2/Net/Transmitter/SocketException.php"
- />
- <install
- name="src/PEAR2/Net/Transmitter/Stream.php"
- as="PEAR2/Net/Transmitter/Stream.php"
- />
- <install
- name="src/PEAR2/Net/Transmitter/TcpClient.php"
- as="PEAR2/Net/Transmitter/TcpClient.php"
- />
- <install
- name="src/PEAR2/Net/Transmitter/TcpServerConnection.php"
- as="PEAR2/Net/Transmitter/TcpServerConnection.php"
- />
-
-
- <install
- name="tests/ClientTest.php"
- as="ClientTest.php"
- />
- <install
- name="tests/ServerTest.php"
- as="ServerTest.php"
- />
- <install
- name="tests/UnconnectedTest.php"
- as="UnconnectedTest.php"
- />
- <install
- name="tests/bootstrap.php"
- as="bootstrap.php"
- />
- <install
- name="tests/phpunit.xml"
- as="phpunit.xml"
- />
- <install
- name="tests/secondaryPeer.bat"
- as="secondaryPeer.bat"
- />
- <install
- name="tests/secondaryPeer.xml"
- as="secondaryPeer.xml"
- />
-
- <install
- name="docs/doxygen.ini"
- as="doxygen.ini"
- />
- <install
- name="docs/docblox.xml"
- as="docblox.xml"
- />
- </filelist>
- </phprelease>
-</package>
+<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">
+ <name>PEAR2_Net_Transmitter</name>
+ <channel>pear2.php.net</channel>
+ <summary>Wrapper for network stream functionality.
+</summary>
+ <description>PHP has built in support for various types of network streams, such as HTTP and TCP sockets. One problem that arises with them is the fact that a single fread/fwrite call might not read/write all the data you intended, regardless of whether you're in blocking mode or not. While the PHP manual offers a workaround in the form of a loop with a few variables, using it every single time you want to read/write can be tedious.
+
+This package abstracts this away, so that when you want to get exactly N amount of bytes, you can be sure the upper levels of your app will be dealing with N bytes. Oh, and the functionality is nicely wrapped in an object (but that's just the icing on the cake).</description>
+ <lead>
+ <name>Vasil Rangelov</name>
+ <user>boen_robot</user>
+ <email>boen.robot@gmail.com</email>
+ <active>yes</active>
+ </lead>
+ <date>2012-07-11</date>
+ <time>00:15:41</time>
+ <version>
+ <release>1.0.0a3</release>
+ <api>1.0.0</api>
+ </version>
+ <stability>
+ <release>alpha</release>
+ <api>alpha</api>
+ </stability>
+ <license uri="http://www.gnu.org/copyleft/lesser.html">LGPL License 2.1</license>
+ <notes>Added locking support at TcpClient, particularly for persistent connections. Also some doc fixes.</notes>
+ <contents>
+ <dir name="/">
+ <dir name="docs" baseinstalldir="/">
+ <file role="doc" name="doxygen.ini">
+ <tasks:replace from="../src" to="php_dir" type="pear-config"/>
+ <tasks:replace from="GIT: $Id$" to="version" type="package-info"/>
+ </file>
+ <file role="doc" name="phpdoc.dist.xml">
+ <tasks:replace from="../src" to="php_dir" type="pear-config"/>
+ </file>
+ </dir>
+ <dir name="src" baseinstalldir="/">
+ <dir name="PEAR2">
+ <dir name="Net">
+ <dir name="Transmitter">
+ <file role="php" name="Exception.php">
+ <tasks:replace from="~~summary~~" to="summary" type="package-info"/>
+ <tasks:replace from="~~description~~" to="description" type="package-info"/>
+ <tasks:replace from="GIT: $Id$" to="version" type="package-info"/>
+ </file>
+ <file role="php" name="FilterCollection.php">
+ <tasks:replace from="~~summary~~" to="summary" type="package-info"/>
+ <tasks:replace from="~~description~~" to="description" type="package-info"/>
+ <tasks:replace from="GIT: $Id$" to="version" type="package-info"/>
+ </file>
+ <file role="php" name="LockException.php">
+ <tasks:replace from="~~summary~~" to="summary" type="package-info"/>
+ <tasks:replace from="~~description~~" to="description" type="package-info"/>
+ <tasks:replace from="GIT: $Id$" to="version" type="package-info"/>
+ </file>
+ <file role="php" name="NetworkStream.php">
+ <tasks:replace from="~~summary~~" to="summary" type="package-info"/>
+ <tasks:replace from="~~description~~" to="description" type="package-info"/>
+ <tasks:replace from="GIT: $Id$" to="version" type="package-info"/>
+ </file>
+ <file role="php" name="SocketException.php">
+ <tasks:replace from="~~summary~~" to="summary" type="package-info"/>
+ <tasks:replace from="~~description~~" to="description" type="package-info"/>
+ <tasks:replace from="GIT: $Id$" to="version" type="package-info"/>
+ </file>
+ <file role="php" name="Stream.php">
+ <tasks:replace from="~~summary~~" to="summary" type="package-info"/>
+ <tasks:replace from="~~description~~" to="description" type="package-info"/>
+ <tasks:replace from="GIT: $Id$" to="version" type="package-info"/>
+ </file>
+ <file role="php" name="StreamException.php">
+ <tasks:replace from="~~summary~~" to="summary" type="package-info"/>
+ <tasks:replace from="~~description~~" to="description" type="package-info"/>
+ <tasks:replace from="GIT: $Id$" to="version" type="package-info"/>
+ </file>
+ <file role="php" name="TcpClient.php">
+ <tasks:replace from="~~summary~~" to="summary" type="package-info"/>
+ <tasks:replace from="~~description~~" to="description" type="package-info"/>
+ <tasks:replace from="GIT: $Id$" to="version" type="package-info"/>
+ </file>
+ <file role="php" name="TcpServerConnection.php">
+ <tasks:replace from="~~summary~~" to="summary" type="package-info"/>
+ <tasks:replace from="~~description~~" to="description" type="package-info"/>
+ <tasks:replace from="GIT: $Id$" to="version" type="package-info"/>
+ </file>
+ </dir>
+ </dir>
+ </dir>
+ </dir>
+ <dir name="tests" baseinstalldir="/">
+ <dir name="PHPT">
+ <file role="test" name="testNormalPersistentConnection.phpt"/>
+ </dir>
+ <file role="test" name="bootstrap.php">
+ <tasks:replace from="../src" to="php_dir" type="pear-config"/>
+ </file>
+ <file role="test" name="ClientTest.php"/>
+ <file role="test" name="phpunit.xml"/>
+ <file role="test" name="secondaryPeer.bat"/>
+ <file role="test" name="secondaryPeer.xml"/>
+ <file role="test" name="ServerTest.php"/>
+ <file role="test" name="UnconnectedTest.php"/>
+ </dir>
+ </dir>
+ </contents>
+ <dependencies>
+ <required>
+ <php>
+ <min>5.3.0</min>
+ </php>
+ <pearinstaller>
+ <min>1.4.0</min>
+ </pearinstaller>
+ </required>
+ </dependencies>
+ <phprelease>
+ <filelist>
+ <install name="docs/doxygen.ini" as="doxygen.ini"/>
+ <install name="docs/phpdoc.dist.xml" as="phpdoc.dist.xml"/>
+ <install name="src/PEAR2/Net/Transmitter/Exception.php" as="PEAR2/Net/Transmitter/Exception.php"/>
+ <install name="src/PEAR2/Net/Transmitter/NetworkStream.php" as="PEAR2/Net/Transmitter/NetworkStream.php"/>
+ <install name="src/PEAR2/Net/Transmitter/SocketException.php" as="PEAR2/Net/Transmitter/SocketException.php"/>
+ <install name="src/PEAR2/Net/Transmitter/Stream.php" as="PEAR2/Net/Transmitter/Stream.php"/>
+ <install name="src/PEAR2/Net/Transmitter/TcpClient.php" as="PEAR2/Net/Transmitter/TcpClient.php"/>
+ <install name="src/PEAR2/Net/Transmitter/TcpServerConnection.php" as="PEAR2/Net/Transmitter/TcpServerConnection.php"/>
+ <install name="tests/bootstrap.php" as="bootstrap.php"/>
+ <install name="tests/ClientTest.php" as="ClientTest.php"/>
+ <install name="tests/phpunit.xml" as="phpunit.xml"/>
+ <install name="tests/secondaryPeer.bat" as="secondaryPeer.bat"/>
+ <install name="tests/secondaryPeer.xml" as="secondaryPeer.xml"/>
+ <install name="tests/ServerTest.php" as="ServerTest.php"/>
+ <install name="tests/UnconnectedTest.php" as="UnconnectedTest.php"/>
+ </filelist>
+ </phprelease>
+</package>
View
72 packagexmlsetup.php
@@ -44,8 +44,8 @@
$package->files['tests/bootstrap.php']->getArrayCopy(), $srcDirTask
);
-$package->files['docs/docblox.xml'] = array_merge_recursive(
- $package->files['docs/docblox.xml']->getArrayCopy(), $srcDirTask
+$package->files['docs/phpdoc.dist.xml'] = array_merge_recursive(
+ $package->files['docs/phpdoc.dist.xml']->getArrayCopy(), $srcDirTask
);
$package->files['docs/doxygen.ini'] = array_merge_recursive(
@@ -63,38 +63,38 @@
)
);
-$compatible->files[
- "test/{$package->channel}/{$package->name}/bootstrap.php"
- ] = array_merge_recursive(
- $compatible->files[
- "test/{$package->channel}/{$package->name}/bootstrap.php"
- ]->getArrayCopy(), $srcDirTask
-);
-
-$compatible->files["doc/{$package->channel}/{$package->name}/docblox.xml"]
- = array_merge_recursive(
- $compatible->files[
- "doc/{$package->channel}/{$package->name}/docblox.xml"
- ]->getArrayCopy(), $srcDirTask
-);
-
-$compatible->files["doc/{$package->channel}/{$package->name}/doxygen.ini"]
- = array_merge_recursive(
- $compatible->files[
- "doc/{$package->channel}/{$package->name}/doxygen.ini"
- ]->getArrayCopy(), $srcDirTask,
- array(
- 'tasks:replace' => array(
- array(
- 'attribs' => array(
- 'from' => 'GIT: $Id$',
- 'to' => 'version',
- 'type' => 'package-info'
- )
- )
- )
- )
-);
+//$compatible->files[
+// "test/{$package->channel}/{$package->name}/bootstrap.php"
+// ] = array_merge_recursive(
+// $compatible->files[
+// "test/{$package->channel}/{$package->name}/bootstrap.php"
+// ]->getArrayCopy(), $srcDirTask
+//);
+//
+//$compatible->files["doc/{$package->channel}/{$package->name}/phpdoc.dist.xml"]
+// = array_merge_recursive(
+// $compatible->files[
+// "doc/{$package->channel}/{$package->name}/phpdoc.dist.xml"
+// ]->getArrayCopy(), $srcDirTask
+//);
+//
+//$compatible->files["doc/{$package->channel}/{$package->name}/doxygen.ini"]
+// = array_merge_recursive(
+// $compatible->files[
+// "doc/{$package->channel}/{$package->name}/doxygen.ini"
+// ]->getArrayCopy(), $srcDirTask,
+// array(
+// 'tasks:replace' => array(
+// array(
+// 'attribs' => array(
+// 'from' => 'GIT: $Id$',
+// 'to' => 'version',
+// 'type' => 'package-info'
+// )
+// )
+// )
+// )
+//);
$oldCwd = getcwd();
chdir(__DIR__);
@@ -118,6 +118,4 @@
$srcFileTasks
);
}
-chdir($oldCwd);
-
-?>
+chdir($oldCwd);
View
47 src/PEAR2/Net/Transmitter/Autoload.php
@@ -1,47 +0,0 @@
-<?php
-
-/**
- * ~~summary~~
- *
- * ~~description~~
- *
- * PHP version 5
- *
- * @category Net
- * @package PEAR2_Net_Transmitter
- * @author Vasil Rangelov <boen.robot@gmail.com>
- * @copyright 2011 Vasil Rangelov
- * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
- * @version GIT: $Id$
- * @link http://pear2.php.net/PEAR2_Net_Transmitter
- */
-/**
- * The namespace declaration.
- */
-namespace PEAR2\Net\Transmitter;
-
-/**
- * Loads a specified class.
- *
- * Loads a specified class from the namespace.
- *
- * @param string $class The classname (with namespace) to load.
- *
- * @return void
- */
-function autoload($class)
-{
- $namespace = __NAMESPACE__ . '\\';
- if (strpos($class, $namespace) === 0) {
- $path = __DIR__ . DIRECTORY_SEPARATOR .
- strtr(
- substr($class, strlen($namespace)), '\\', DIRECTORY_SEPARATOR
- ) . '.php';
- $file = realpath($path);
- if (is_string($file) && strpos($file, __DIR__) === 0) {
- include_once $file;
- }
- }
-}
-
-spl_autoload_register(__NAMESPACE__ . '\autoload', true);
View
1  src/PEAR2/Net/Transmitter/TcpClient.php
@@ -304,5 +304,4 @@ public function receiveStream(
$this->lock($previousState, true);
return $result;
}
-
}
Please sign in to comment.
Something went wrong with that request. Please try again.