cvs: pecl /tcpwrap package.xml tcpwrap.c tcpwrap.php /tcpwrap/tests 001.phpt 002.phpt

From: Date: Wed, 07 Jan 2004 22:01:33 +0000
Subject: cvs: pecl /tcpwrap package.xml tcpwrap.c tcpwrap.php /tcpwrap/tests 001.phpt 002.phpt
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-665@lists.php.net to get a copy of this message
mg Wed Jan 7 17:01:33 2004 EDT Added files: /pecl/tcpwrap/tests 002.phpt Removed files: /pecl/tcpwrap tcpwrap.php Modified files: /pecl/tcpwrap/tests 001.phpt /pecl/tcpwrap package.xml tcpwrap.c Log: Added test file. Index: pecl/tcpwrap/tests/001.phpt diff -u pecl/tcpwrap/tests/001.phpt:1.1 pecl/tcpwrap/tests/001.phpt:1.2 --- pecl/tcpwrap/tests/001.phpt:1.1 Sun Oct 19 17:22:37 2003 +++ pecl/tcpwrap/tests/001.phpt Wed Jan 7 17:01:33 2004 @@ -8,17 +8,6 @@ --FILE-- <?php echo "tcpwrap extension is available"; -/* - you can add regression tests for your extension here - - the output of your test code has to be equal to the - text in the --EXPECT-- section below for the tests - to pass, differences between the output and the - expected text are interpreted as failure - - see php4/README.TESTING for further information on - writing regression tests -*/ ?> --EXPECT-- tcpwrap extension is available Index: pecl/tcpwrap/package.xml diff -u pecl/tcpwrap/package.xml:1.3 pecl/tcpwrap/package.xml:1.4 --- pecl/tcpwrap/package.xml:1.3 Fri Oct 24 14:11:53 2003 +++ pecl/tcpwrap/package.xml Wed Jan 7 17:01:33 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE package SYSTEM "../package.dtd"> -<package version="1.0"> +<package> <name>tcpwrap</name> <summary>tcpwrappers binding.</summary> <description> @@ -17,20 +17,23 @@ </maintainers> <release> - <version>1.0</version> - <date>2003-10-24</date> + <version>1.1</version> + <date>2004-01-07</date> <state>stable</state> <notes> - This is the first release of tcpwrap extension. + This release adds extra parameter to tcpwrap_check function to avoid dns lookups. </notes> <filelist> - <dir role="src" name="/"> - <file role="doc">CREDITS</file> - <file role="doc">EXPERIMENTAL</file> - <file role="src">config.m4</file> - <file role="src">php_tcpwrap.h</file> - <file role="src">tcpwrap.c</file> - </dir> + <dir role="src" name="/"> + <file role="doc">CREDITS</file> + <file role="doc">EXPERIMENTAL</file> + <file role="src">config.m4</file> + <file role="src">php_tcpwrap.h</file> + <file role="src">tcpwrap.c</file> + + <file role="test" name="tests/001.phpt"/> + <file role="test" name="tests/002.phpt"/> + </dir> </filelist> </release> </package> Index: pecl/tcpwrap/tcpwrap.c diff -u pecl/tcpwrap/tcpwrap.c:1.2 pecl/tcpwrap/tcpwrap.c:1.3 --- pecl/tcpwrap/tcpwrap.c:1.2 Fri Oct 24 14:11:53 2003 +++ pecl/tcpwrap/tcpwrap.c Wed Jan 7 17:01:33 2004 @@ -15,7 +15,7 @@ | Author: | +----------------------------------------------------------------------+ - $Id: tcpwrap.c,v 1.2 2003/10/24 18:11:53 mg Exp $ + $Id: tcpwrap.c,v 1.3 2004/01/07 22:01:33 mg Exp $ */ #ifdef HAVE_CONFIG_H @@ -59,7 +59,7 @@ NULL, PHP_MINFO(tcpwrap), #if ZEND_MODULE_API_NO >= 20010901 - "0.1", /* Replace with version number for your extension */ + "1.1", /* Replace with version number for your extension */ #endif STANDARD_MODULE_PROPERTIES }; Index: pecl/tcpwrap/tests/002.phpt +++ pecl/tcpwrap/tests/002.phpt --TEST-- tcpwrap_check() --SKIPIF-- <?php if (!extension_loaded("tcpwrap")) print "skip"; ?> --POST-- --GET-- --INI-- --FILE-- <?php $r = tcpwrap_check('foo', '127.0.0.1'); echo gettype($r); ?> --EXPECT-- boolean

« previous php.pecl.cvs (#665) next »