mirror of
https://github.com/php-win-ext/pecl-expect.git
synced 2026-03-24 13:02:07 +01:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ff8bd236f | ||
|
|
962f488073 | ||
|
|
7e6b652293 | ||
|
|
6fafe17e77 | ||
|
|
18ea03b802 |
68
LICENSE
Normal file
68
LICENSE
Normal file
@@ -0,0 +1,68 @@
|
||||
--------------------------------------------------------------------
|
||||
The PHP License, version 3.01
|
||||
Copyright (c) 1999 - 2014 The PHP Group. All rights reserved.
|
||||
--------------------------------------------------------------------
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, is permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in
|
||||
the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
|
||||
3. The name "PHP" must not be used to endorse or promote products
|
||||
derived from this software without prior written permission. For
|
||||
written permission, please contact group@php.net.
|
||||
|
||||
4. Products derived from this software may not be called "PHP", nor
|
||||
may "PHP" appear in their name, without prior written permission
|
||||
from group@php.net. You may indicate that your software works in
|
||||
conjunction with PHP by saying "Foo for PHP" instead of calling
|
||||
it "PHP Foo" or "phpfoo"
|
||||
|
||||
5. The PHP Group may publish revised and/or new versions of the
|
||||
license from time to time. Each version will be given a
|
||||
distinguishing version number.
|
||||
Once covered code has been published under a particular version
|
||||
of the license, you may always continue to use it under the terms
|
||||
of that version. You may also choose to use such covered code
|
||||
under the terms of any subsequent version of the license
|
||||
published by the PHP Group. No one other than the PHP Group has
|
||||
the right to modify the terms applicable to covered code created
|
||||
under this License.
|
||||
|
||||
6. Redistributions of any form whatsoever must retain the following
|
||||
acknowledgment:
|
||||
"This product includes PHP software, freely available from
|
||||
<http://www.php.net/software/>".
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
|
||||
ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
|
||||
DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
--------------------------------------------------------------------
|
||||
|
||||
This software consists of voluntary contributions made by many
|
||||
individuals on behalf of the PHP Group.
|
||||
|
||||
The PHP Group can be contacted via Email at group@php.net.
|
||||
|
||||
For more information on the PHP Group and the PHP project,
|
||||
please see <http://www.php.net>.
|
||||
|
||||
PHP includes the Zend Engine, freely available at
|
||||
<http://www.zend.com>.
|
||||
11
config.m4
11
config.m4
@@ -21,7 +21,9 @@ if test "$PHP_EXPECT" != "no"; then
|
||||
fi
|
||||
done
|
||||
|
||||
AC_MSG_CHECKING(for tcl version)
|
||||
for i in $PHP_TCLDIR/tclConfig.sh /usr/lib/tcl*/tclConfig.sh \
|
||||
/usr/$PHP_LIBDIR/tcl*/tclConfig.sh \
|
||||
/usr/local/lib/tcl*/tclConfig.sh \
|
||||
/System/Library/Frameworks/Tcl.framework/Versions/Current/tclConfig.sh;
|
||||
do
|
||||
@@ -30,9 +32,14 @@ if test "$PHP_EXPECT" != "no"; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -n "$TCL_VERSION" ; then
|
||||
AC_MSG_RESULT($TCL_VERSION in $TCL_PREFIX)
|
||||
else
|
||||
AC_MSG_ERROR([not found])
|
||||
fi
|
||||
|
||||
PHP_ADD_LIBRARY_WITH_PATH(tcl$TCL_VERSION, $TCL_PREFIX/lib, EXPECT_SHARED_LIBADD)
|
||||
PHP_ADD_LIBRARY_WITH_PATH(expect, $LIBEXPECT_DIR/lib, EXPECT_SHARED_LIBADD)
|
||||
PHP_ADD_LIBRARY_WITH_PATH(tcl$TCL_VERSION, $TCL_PREFIX/$PHP_LIBDIR, EXPECT_SHARED_LIBADD)
|
||||
PHP_ADD_LIBRARY_WITH_PATH(expect, $LIBEXPECT_DIR/$PHP_LIBDIR, EXPECT_SHARED_LIBADD)
|
||||
PHP_ADD_INCLUDE($LIBEXPECT_INCLUDE_DIR)
|
||||
|
||||
PHP_NEW_EXTENSION(expect, expect.c expect_fopen_wrapper.c, $ext_shared)
|
||||
|
||||
22
expect.c
22
expect.c
@@ -41,6 +41,10 @@ zend_function_entry expect_functions[] = {
|
||||
/* }}} */
|
||||
|
||||
|
||||
ZEND_DECLARE_MODULE_GLOBALS(expect)
|
||||
static PHP_GINIT_FUNCTION(expect);
|
||||
static PHP_GSHUTDOWN_FUNCTION(expect);
|
||||
|
||||
/* {{{ expect_module_entry
|
||||
*/
|
||||
zend_module_entry expect_module_entry = {
|
||||
@@ -53,7 +57,11 @@ zend_module_entry expect_module_entry = {
|
||||
NULL,
|
||||
PHP_MINFO(expect),
|
||||
PHP_EXPECT_VERSION,
|
||||
STANDARD_MODULE_PROPERTIES
|
||||
PHP_MODULE_GLOBALS(expect),
|
||||
PHP_GINIT(expect),
|
||||
PHP_GSHUTDOWN(expect),
|
||||
NULL,
|
||||
STANDARD_MODULE_PROPERTIES_EX
|
||||
};
|
||||
/* }}} */
|
||||
|
||||
@@ -61,22 +69,20 @@ zend_module_entry expect_module_entry = {
|
||||
ZEND_GET_MODULE(expect)
|
||||
#endif
|
||||
|
||||
ZEND_DECLARE_MODULE_GLOBALS(expect)
|
||||
|
||||
/* {{{ php_expect_init_globals
|
||||
*/
|
||||
static void php_expect_init_globals (zend_expect_globals *globals TSRMLS_DC)
|
||||
static PHP_GINIT_FUNCTION(expect)
|
||||
{
|
||||
globals->logfile_stream = NULL;
|
||||
expect_globals->logfile_stream = NULL;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ php_expect_destroy_globals
|
||||
*/
|
||||
static void php_expect_destroy_globals(zend_expect_globals *globals TSRMLS_DC)
|
||||
static PHP_GSHUTDOWN_FUNCTION(expect)
|
||||
{
|
||||
if (globals->logfile_stream) {
|
||||
php_stream_close(globals->logfile_stream);
|
||||
if (expect_globals->logfile_stream) {
|
||||
php_stream_close(expect_globals->logfile_stream);
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
16
package.xml
16
package.xml
@@ -17,8 +17,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
|
||||
<date>2015-09-11</date>
|
||||
<time>15:25:00</time>
|
||||
<version>
|
||||
<release>0.3.2</release>
|
||||
<api>0.3.2</api>
|
||||
<release>0.3.3</release>
|
||||
<api>0.3.3</api>
|
||||
</version>
|
||||
<stability>
|
||||
<release>stable</release>
|
||||
@@ -26,7 +26,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
|
||||
</stability>
|
||||
<license uri="http://www.php.net/license">PHP License</license>
|
||||
<notes>
|
||||
Fixed #70458
|
||||
Added LICENSE. Fixed RPM build for 64bit.
|
||||
</notes>
|
||||
<contents>
|
||||
<dir name="/">
|
||||
@@ -36,12 +36,22 @@ http://pear.php.net/dtd/package-2.0.xsd">
|
||||
<file name="expect.dsp" role="src" />
|
||||
<file name="expect_fopen_wrapper.c" role="src" />
|
||||
<file name="php_expect.h" role="src" />
|
||||
<file name="LICENSE" role="doc" />
|
||||
<dir name="tests">
|
||||
<file name="bug12268.phpt" role="test" />
|
||||
<file name="bug22566.phpt" role="test" />
|
||||
<file name="bug6996.phpt" role="test" />
|
||||
<file name="expect_expectl.phpt" role="test" />
|
||||
<file name="expect_popen.phpt" role="test" />
|
||||
<file name="expect_wrapper.phpt" role="test" />
|
||||
</dir>
|
||||
</dir> <!-- / -->
|
||||
</contents>
|
||||
<dependencies>
|
||||
<required>
|
||||
<php>
|
||||
<min>4.0.0</min>
|
||||
<max>5.99.99</max>
|
||||
</php>
|
||||
<pearinstaller>
|
||||
<min>1.4.0b1</min>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
extern zend_module_entry expect_module_entry;
|
||||
#define phpext_expect_ptr &expect_module_entry
|
||||
|
||||
#define PHP_EXPECT_VERSION "0.3.2"
|
||||
#define PHP_EXPECT_VERSION "0.3.3"
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
#define PHP_EXPECT_API __declspec(dllexport)
|
||||
|
||||
Reference in New Issue
Block a user