]> granicus.if.org Git - php/commitdiff
# restored code for latest vpopmail version
authorDavid Croft <david@php.net>
Sun, 14 Jan 2001 09:01:26 +0000 (09:01 +0000)
committerDavid Croft <david@php.net>
Sun, 14 Jan 2001 09:01:26 +0000 (09:01 +0000)
@ New extension for vpopmail - http://www.inter7.com/vpopmail (David Croft)

ext/vpopmail/php_vpopmail.c

index 81bd105c069cfaf2b05352a1474ea35f0c999144..da8b20708c99db6a44f969f47ec380667fcfb827 100644 (file)
@@ -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;