Re: [PHP-CVS] cvs: php4 /win32 README.txt
shouldn't that be php-windows-subscribe? On Thu, 8 Mar 2001, Zeev Suraski wrote: zeev Thu Mar 8 02:43:52 2001 EDT Modified files: /php4/win32 README.txt Log: Point people to the Windows mailing list... Index: php4/win32/README.txt diff -u php4/win32/README.txt:1.4 php4/win32/README.txt:1.5 --- php4/win32/README.txt:1.4 Fri Jul 14 12:42:59 2000 +++ php4/win32/README.txt Thu Mar 8 02:43:52 2001 @@ -31,6 +31,14 @@ http://download.microsoft.com/msdownload/dcom/95/x86/en/dcom95.exe +Support +--- + +For questions and help with PHP under Windows, your best bet would be the +PHP-Windows mailing list ([EMAIL PROTECTED]). To subscribe, send +an empty message to [EMAIL PROTECTED] + + Installation -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-CVS] cvs: php4 /ext/vpopmail .cvsignore CREDITS Makefile.inconfig.m4 php_vpopmail.c php_vpopmail.h
On Tue, 16 Jan 2001, Andrei Zmievski wrote: PHP_FE(vpopmail_passwd, NULL) PHP_FE(vpopmail_setuserquota, NULL) [snip] Didn't we agree to put underscores between words in function names, i.e. vpopmail_del_user? At the expense of losing compatability with the library's existing naming convention? David -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 / header
david Sun Feb 18 01:21:57 2001 EDT Modified files: /php4 header Log: add year 2001 to header Index: php4/header diff -u php4/header:1.5 php4/header:1.6 --- php4/header:1.5 Sun May 28 12:17:59 2000 +++ php4/header Sun Feb 18 01:21:57 2001 @@ -2,7 +2,7 @@ +--+ | PHP version 4.0 | +--+ - | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group | + | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group | +--+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is| -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 / TODO
david Mon Feb 5 06:29:21 2001 EDT Modified files: /php4 TODO Log: 2 things to do Index: php4/TODO diff -u php4/TODO:1.112 php4/TODO:1.113 --- php4/TODO:1.112 Mon Feb 5 06:27:10 2001 +++ php4/TODO Mon Feb 5 06:29:21 2001 @@ -5,12 +5,15 @@ * allow foreach ($array as $k = $val) syntax. right now we cannot traverse an array without copying each element. +* allow foreach ($array as $k = list($a, $b)) syntax for multi + dimensional arrays. * look at replacing c-lib call tolower(). * make hash API functions work with HASH_OF() to save time. * native large number support (probably with GNU GMP) * Const'ify APIs. Right now, many functions leave parameters untouched, but don't declare those as const. This makes interaction with other interfaces difficult which pass const parameters to us. +* add try..catch/throw exception handling global -- -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /ext/vpopmail .cvsignore CREDITS Makefile.in config.m4 php_vpopmail.c php_vpopmail.h
david Sun Jan 14 00:54:00 2001 EDT Added files: /php4/ext/vpopmail .cvsignore CREDITS Makefile.in config.m4 php_vpopmail.c php_vpopmail.h Log: vpopmail extension Index: php4/ext/vpopmail/.cvsignore +++ php4/ext/vpopmail/.cvsignore Makefile *.lo *.la libs deps libs.mk Index: php4/ext/vpopmail/Makefile.in +++ php4/ext/vpopmail/Makefile.in # $Id: Makefile.in,v 1.1 2001/01/14 08:54:00 david Exp $ LTLIBRARY_NAME= libvpopmail.la LTLIBRARY_SOURCES = php_vpopmail.c LTLIBRARY_SHARED_NAME = vpopmail.la LTLIBRARY_SHARED_LIBADD = $(VPOPMAIL_SHARED_LIBADD) include $(top_srcdir)/build/dynlib.mk Index: php4/ext/vpopmail/config.m4 +++ php4/ext/vpopmail/config.m4 dnl $Id: config.m4,v 1.1 2001/01/14 08:54:00 david Exp $ dnl config.m4 for extension vpopmail PHP_ARG_WITH(vpopmail, whether to include vpopmail support, [ --with-vpopmail[=DIR] Include vpopmail support]) if test "$PHP_VPOPMAIL" != "no"; then for i in /home/vpopmail /home/popmail /var/qmail/vpopmail /var/qmail/popmail $PHP_VPOPMAIL; do if test -r $i/vpopmail.h; then VPOPMAIL_INC_DIR=$i elif test -r $i/include/vpopmail.h; then VPOPMAIL_INC_DIR=$i/include fi if test -r $i/libvpopmail.a; then VPOPMAIL_LIB_DIR=$i elif test -r $i/lib/libvpopmail.a; then VPOPMAIL_LIB_DIR=$i/lib fi done if test -z "$VPOPMAIL_INC_DIR"; then AC_MSG_ERROR(Could not find vpopmail.h. Please make sure you have vpopmail installed. Use ./configure --with-vpopmail=vpopmail-home-dir if necessary) fi if test -z "$VPOPMAIL_LIB_DIR"; then AC_MSG_ERROR(Could not find libvpopmail.a. Please make sure you have vpopmail installed. Use ./configure --with-vpopmail=vpopmail-home-dir if necessary) fi AC_MSG_RESULT(found in $VPOPMAIL_LIB_DIR) AC_ADD_INCLUDE($VPOPMAIL_INC_DIR) PHP_SUBST(VPOPMAIL_SHARED_LIBADD) AC_ADD_LIBRARY_WITH_PATH(vpopmail, $VPOPMAIL_LIB_DIR, VPOPMAIL_SHARED_LIBADD) AC_DEFINE(HAVE_VPOPMAIL, 1, [ ]) PHP_EXTENSION(vpopmail, $ext_shared) fi Index: php4/ext/vpopmail/php_vpopmail.c +++ php4/ext/vpopmail/php_vpopmail.c /* +--+ | PHP version 4.0 | +--+ | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group | +--+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is| | available at through the world-wide-web at | | http://www.php.net/license/2_02.txt. | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +------+ | Author: David Croft [EMAIL PROTECTED] | +--+ */ /* $Id: php_vpopmail.c,v 1.1 2001/01/14 08:54:00 david Exp $ */ #include "php.h" #include "php_ini.h" #include "php_vpopmail.h" #include "vpopmail.h" #include "ext/standard/php_string.h" #ifdef ZTS int vpopmail_globals_id; #else php_vpopmail_globals vpopmail_globals; #endif /* Function table */ function_entry vpopmail_functions[] = { PHP_FE(vpopmail_auth_user, NULL) PHP_FE(vpopmail_adddomain, NULL) PHP_FE(vpopmail_deldomain, NULL) PHP_FE(vpopmail_adduser, NULL) PHP_FE(vpopmail_deluser, NULL) PHP_FE(vpopmail_passwd, NULL) PHP_FE(vpopmail_setuserquota, NULL) {NULL, NULL, NULL} }; zend_module_entry vpopmail_module_entry = { "vpopmail", vpopmail_functions, PHP_MINIT(vpopmail), PHP_MSHUTDOWN(vpopmail), NULL, NULL, PHP_MINFO(vpopmail), STANDARD_MODULE_PROPERTIES }; #ifdef COMPILE_DL_VPOPMAIL ZEND_GET_MODULE(vpopmail) #endif PHP_INI_BEGIN() /* STD_PHP_INI_ENTRY("pfpro.proxypassword","", PHP_INI_ALL, OnUpdateString,proxypassword, php_pfpro_globals, pfpro_globals) */ PHP_INI_END() PHP_MINIT_FUNCTION(vpopmail) { REGISTER_INI_ENTRIES(); return SUCCESS; } PHP_MSHUTDOWN_FUNCTION(vpopmail) { UNREGISTER_INI_ENTRIES(); return SUCCESS; } PHP_MINFO_FUNCTION(vpopmail) { php_info_print_table_start(); php_info_print_ta
[PHP-CVS] cvs: php4 /ext/vpopmail config.m4
david Sun Jan 14 14:21:15 2001 EDT Modified files: /php4/ext/vpopmail config.m4 Log: vpopmail's bin dir is unnecessary as the library exports these functions Index: php4/ext/vpopmail/config.m4 diff -u php4/ext/vpopmail/config.m4:1.2 php4/ext/vpopmail/config.m4:1.3 --- php4/ext/vpopmail/config.m4:1.2 Sun Jan 14 08:40:25 2001 +++ php4/ext/vpopmail/config.m4 Sun Jan 14 14:21:15 2001 @@ -1,50 +1,45 @@ -dnl $Id: config.m4,v 1.2 2001/01/14 16:40:25 bbonev Exp $ +dnl $Id: config.m4,v 1.3 2001/01/14 22:21:15 david Exp $ dnl config.m4 for extension vpopmail -PHP_ARG_WITH(vpopmail, for vpopmail support, -[ --with-vpopmail[=DIR] Include vpopmail support.]) +PHP_ARG_WITH(vpopmail, whether to include vpopmail support, +[ --with-vpopmail[=DIR] Include vpopmail support]) if test "$PHP_VPOPMAIL" != "no"; then - AC_MSG_CHECKING(for vpopmail install directory) - for i in ~vpopmail /home/vpopmail /home/popmail /var/qmail/vpopmail /var/qmail/popmail $PHP_VPOPMAIL; do - if test -r $i/vpopmail.h; then - VPOPMAIL_INC_DIR=$i - VPOPMAIL_DIR=$i - elif test -r $i/include/vpopmail.h; then - VPOPMAIL_INC_DIR=$i/include - VPOPMAIL_DIR=$i - fi - - if test -r $i/libvpopmail.a; then - VPOPMAIL_LIB_DIR=$i - elif test -r $i/lib/libvpopmail.a; then - VPOPMAIL_LIB_DIR=$i/lib - fi - - if test -r $i/vadddomain; then - VPOPMAIL_BIN_DIR=$i - elif test -r $i/bin/vadddomain; then - VPOPMAIL_BIN_DIR=$i/bin - fi - done - - for i in "$VPOPMAIL_INC_DIR/vpopmail.h" "$VPOPMAIL_INC_DIR/vpopmail_config.h" "$VPOPMAIL_LIB_DIR/libvpopmail.a" "$VPOPMAIL_BIN_DIR/vadddomain" "$VPOPMAIL_BIN_DIR/vaddaliasdomain" "$VPOPMAIL_BIN_DIR/vdeldomain" ; do - if test ! -r "$i"; then - AC_MSG_ERROR(Could not find '$i'. Please make sure you have - vpopmail installed. Use - ./configure --with-vpopmail=vpopmail-home-dir if necessary) - fi - done - - AC_MSG_RESULT($VPOPMAIL_DIR) - - AC_ADD_INCLUDE($VPOPMAIL_INC_DIR) - PHP_SUBST(VPOPMAIL_SHARED_LIBADD) - AC_ADD_LIBRARY_WITH_PATH(vpopmail, $VPOPMAIL_LIB_DIR, VPOPMAIL_SHARED_LIBADD) + for i in /home/vpopmail /home/popmail /var/qmail/vpopmail /var/qmail/popmail +$PHP_VPOPMAIL; do +if test -r $i/vpopmail.h; then + VPOPMAIL_INC_DIR=$i +elif test -r $i/include/vpopmail.h; then + VPOPMAIL_INC_DIR=$i/include +fi + +if test -r $i/libvpopmail.a; then + VPOPMAIL_LIB_DIR=$i +elif test -r $i/lib/libvpopmail.a; then + VPOPMAIL_LIB_DIR=$i/lib +fi + done + + if test -z "$VPOPMAIL_INC_DIR"; then +AC_MSG_ERROR(Could not find vpopmail.h. Please make sure you have + vpopmail installed. Use + ./configure --with-vpopmail=vpopmail-home-dir if necessary) + fi + + if test -z "$VPOPMAIL_LIB_DIR"; then +AC_MSG_ERROR(Could not find libvpopmail.a. Please make sure you have + vpopmail installed. Use + ./configure --with-vpopmail=vpopmail-home-dir if necessary) + fi + + AC_MSG_RESULT(found in $VPOPMAIL_LIB_DIR) - AC_DEFINE(HAVE_VPOPMAIL,1,[Whether you have vpopmail]) - AC_DEFINE_UNQUOTED(VPOPMAIL_BIN_DIR,"$VPOPMAIL_BIN_DIR",[vpopmail bin path]) + AC_ADD_INCLUDE($VPOPMAIL_INC_DIR) - PHP_EXTENSION(vpopmail, $ext_shared) + PHP_SUBST(VPOPMAIL_SHARED_LIBADD) + AC_ADD_LIBRARY_WITH_PATH(vpopmail, $VPOPMAIL_LIB_DIR, VPOPMAIL_SHARED_LIBADD) + + AC_DEFINE(HAVE_VPOPMAIL, 1, [ ]) + + PHP_EXTENSION(vpopmail, $ext_shared) fi -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-CVS] cvs: php4 /ext/vpopmail php_vpopmail.c php_vpopmail.h
david Sun Jan 14 18:14:12 2001 EDT Modified files: /php4/ext/vpopmail php_vpopmail.c php_vpopmail.h Log: restored vadddomain/vdeldomain to use library functions rather than invoking vpopmail executables implemented vaddaliasdomain natively global variable to store whether vpopmail was used and only vclose() if necessary return the functions to returning true/false for success/failure rather than some arbitrary vpopmail return value return the functions to not doing everything at once as you then lose fine-grain control over its operation change C++ comments to C Index: php4/ext/vpopmail/php_vpopmail.c diff -u php4/ext/vpopmail/php_vpopmail.c:1.3 php4/ext/vpopmail/php_vpopmail.c:1.4 --- php4/ext/vpopmail/php_vpopmail.c:1.3Sun Jan 14 09:04:21 2001 +++ php4/ext/vpopmail/php_vpopmail.cSun Jan 14 18:14:12 2001 @@ -17,51 +17,42 @@ +--+ */ -/* $Id: php_vpopmail.c,v 1.3 2001/01/14 17:04:21 bbonev Exp $ */ +/* $Id: php_vpopmail.c,v 1.4 2001/01/15 02:14:12 david Exp $ */ -// TODO: move to config.m4 when support for old versions is ready or just don't support rather old vpopmail -// current version must bail out if incompat option is specified and work for minimal params -//#undef VPOPMAIL_IS_REALLY_OLD +/* TODO: move to config.m4 when support for old versions is ready or just + * don't support rather old vpopmail. current version must bail out if + * incompat option is specified and work for minimal params + */ + +#undef VPOPMAIL_IS_REALLY_OLD +#include errno.h +#include signal.h #include "php.h" #include "php_ini.h" #include "php_vpopmail.h" -#if HAVE_SYS_WAIT_H -#include sys/wait.h -#endif - -#if HAVE_VPOPMAIL - #include "vpopmail.h" -#include "ext/standard/exec.h" #include "ext/standard/php_string.h" + +ZEND_DECLARE_MODULE_GLOBALS(vpopmail) -// keep this as the last include in order to destroy VERSION/PACKAGE only for the rest of the code +/* keep this as the last include in order to destroy VERSION/PACKAGE only for the +rest of the code */ + #undef VERSION #undef PACKAGE #include "vpopmail_config.h" #undef PACKAGE #include "vpopmail.h" -// vpopmail does not export this, argh! -#define MAX_BUFF 500 - -#define VPOPSTR(x) #x - -/* removed by intent - will add when need to -ZEND_DECLARE_MODULE_GLOBALS(vpop) -*/ - /* Function table */ function_entry vpopmail_functions[] = { - // domain management + /* domain management */ PHP_FE(vpopmail_adddomain, NULL) PHP_FE(vpopmail_deldomain, NULL) - PHP_FE(vpopmail_addaliasdomain, NULL) - // user management + /* user management */ PHP_FE(vpopmail_adduser, NULL) PHP_FE(vpopmail_deluser, NULL) PHP_FE(vpopmail_passwd, NULL) @@ -73,10 +64,10 @@ zend_module_entry vpopmail_module_entry = { "vpopmail", vpopmail_functions, - NULL, //PHP_MINIT(vpopmail),// do nothing upon - NULL, //PHP_MSHUTDOWN(vpopmail),// these - NULL, //PHP_RINIT(vpopmail),// events - PHP_RSHUTDOWN(vpopmail),// close vpopmail lib upon request shutdown + PHP_MINIT(vpopmail), + PHP_MSHUTDOWN(vpopmail), + PHP_RINIT(vpopmail), + PHP_RSHUTDOWN(vpopmail), PHP_MINFO(vpopmail), STANDARD_MODULE_PROPERTIES }; @@ -85,429 +76,385 @@ ZEND_GET_MODULE(vpopmail) #endif -// removed by intent - will add when needed -//PHP_INI_BEGIN() -/* STD_PHP_INI_ENTRY("pfpro.proxypassword","", PHP_INI_ALL, OnUpdateString,proxypassword, php_pfpro_globals, pfpro_globals) */ -//PHP_INI_END() +PHP_INI_BEGIN() + /* STD_PHP_INI_ENTRY("vpopmail.directory", "", + PHP_INI_ALL, OnUpdateString,directory, +php_vpopmail_globals, vpopmail_globals) */ +PHP_INI_END() -// removed by intent - will add when needed -/*PHP_MINIT_FUNCTION(vpopmail) { + +PHP_MINIT_FUNCTION(vpopmail) +{ REGISTER_INI_ENTRIES(); return SUCCESS; -}*/ +} -// removed by intent - will add when needed -/*PHP_MSHUTDOWN_FUNCTION(vpopmail) +PHP_MSHUTDOWN_FUNCTION(vpopmail) { UNREGISTER_INI_ENTRIES(); return SUCCESS; -}*/ +} -/* at request end we close the connection to any databases open by the lib */ -PHP_RSHUTDOWN_FUNCTION(vpopmail) { - vclose(); +PHP_RINIT_FUNCTION(vpopmail) +{ + VPOPMAILLS_FETCH(); + + VPOPMAILG(vpopmail_open) = 0; + + return SUCCESS; +} + +PHP_RSHUTDOWN_FUNCTION(vpopmail) +{ + VPOPMAILLS_FETCH(); + + if (VPOPMAILG(vpopmail_open) != 0) { + vclose(); + } + return SUCCESS; } + +PHP_MINFO_FUNCTION(vpopmail) +{ + char ids[64]; -PHP_MINFO_FUNCTION(vpopmail) { - char g[64],u[64]; + sprintf(ids, "%d/%d", VPOPMAILUID,
[PHP-CVS] cvs: php4 /ext/standard datetime.c
david Tue Jan 9 20:01:02 2001 EDT Modified files: /php4/ext/standard datetime.c Log: Allocate buffer in date() for the actual length of the timezone (bug#8292) Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.60 php4/ext/standard/datetime.c:1.61 --- php4/ext/standard/datetime.c:1.60 Fri Jan 5 09:34:47 2001 +++ php4/ext/standard/datetime.cTue Jan 9 20:01:02 2001 @@ -19,7 +19,7 @@ */ -/* $Id: datetime.c,v 1.60 2001/01/05 17:34:47 dbeu Exp $ */ +/* $Id: datetime.c,v 1.61 2001/01/10 04:01:02 david Exp $ */ #include "php.h" @@ -255,8 +255,14 @@ break; case 'F': /* month, textual, full */ case 'l': /* day (of the week), textual */ - case 'T': /* timezone name */ size += 28; + break; + case 'T': /* timezone name */ +#if HAVE_TM_ZONE + size += strlen(ta-tm_zone); +#else + size += strlen(tzname[0]); +#endif break; case 'Z': /* timezone offset in seconds */ size += 6; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]