diff options
author | David Croft <david@php.net> | 2001-01-14 09:01:26 +0000 |
---|---|---|
committer | David Croft <david@php.net> | 2001-01-14 09:01:26 +0000 |
commit | d9671d5d492bf04695d3b10981cac141e12d5946 (patch) | |
tree | 61ea60149f52d2cdb7ccf3455a5b01f6386ce218 /ext | |
parent | 560e218ee6869f3797812f244bd75d92556b8f94 (diff) | |
download | php-git-d9671d5d492bf04695d3b10981cac141e12d5946.tar.gz |
# restored code for latest vpopmail version
@ New extension for vpopmail - http://www.inter7.com/vpopmail (David Croft)
Diffstat (limited to 'ext')
-rw-r--r-- | ext/vpopmail/php_vpopmail.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/ext/vpopmail/php_vpopmail.c b/ext/vpopmail/php_vpopmail.c index 81bd105c06..da8b20708c 100644 --- a/ext/vpopmail/php_vpopmail.c +++ b/ext/vpopmail/php_vpopmail.c @@ -18,6 +18,8 @@ /* $Id$ */ +#undef VPOPMAIL_IS_REALLY_OLD + #include "php.h" #include "php_ini.h" #include "php_vpopmail.h" @@ -110,9 +112,14 @@ PHP_FUNCTION(vpopmail_adddomain) convert_to_long_ex(gid); retval = vadddomain(Z_STRVAL_PP(domain), - /* Z_STRVAL_PP(dir), - Z_LVAL_PP(uid), */ - Z_LVAL_PP(gid)); +#ifdef VPOPMAIL_IS_REALLY_OLD + Z_STRVAL_PP(dir), + Z_LVAL_PP(uid), + Z_LVAL_PP(gid) +#else + 0 +#endif + ); if (retval == VA_SUCCESS) { RETURN_TRUE; |