#18924 [Opn]: cc: toofewargs Error when building with imap-2002.RC2 support

From: Date: Thu, 15 Aug 2002 20:53:19 +0000
Subject: #18924 [Opn]: cc: toofewargs Error when building with imap-2002.RC2 support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16937@lists.php.net to get a copy of this message
ID: 18924 User updated by: vlb@gene.com Reported By: vlb@gene.com Status: Open Bug Type: Compile Failure Operating System: Tru64 Unix PHP Version: 4.2.2 New Comment: Note that the same header file, env_unix.h, has this line #define myusername() \ myusername_full (NIL) I see no reason why php shouldn't use the same args to call myusername_full Previous Comments: ------------------------------------------------------------------------ [2002-08-15 16:50:43] vlb@gene.com I don't really consider it appropriate to test against an old, no longer supported, relewase of IMAP except as an academic exercise. If PHP supports IMAP it should support the most recent release of IMAP based on PHP, therefore this _is_ a bug. That said, the function declaration has not changed since at least 2000 (the version of imap currently installed on this system is Copyright 2000 University of Washington.). I have been trying to use a more recent version of imap in order to avoid several errors from the php build (errors that the 2001 IMP may very well address as well). However, the toofewargs error referenced in this bug report is not one I seem to be able to avoid. The OSF/1 compiler may be overly picky, but php_imap.c really shouldn't be calling myusername_full() with no args whenn the function expects one. See c-client/env_unix.h in (whatever?) IMAP distribution: ... char *myusername_full (unsigned long *flags); ------------------------------------------------------------------------ [2002-08-15 15:58:28] kalowsky@php.net can you please try IMAP 2001 as that is a released verison that is known to work. ------------------------------------------------------------------------ [2002-08-15 15:55:38] vlb@gene.com I have configured php4.2.2 to builde --with-imap and have imap-2002.RC2 downloaded and the c-client library installed. The php build proecess gets this error: cc: Error: php_imap.c, line 719: In this statement, "myusername_full" expects 1 arguments, but 0 are supplied. (toofewargs) (void) myusername_full(); -----------------------^ I have found myusername_full defined under the imap build tree as: char *myusername_full (unsigned long *flags) Perhaps php_imap.c was written to support an earlier version of imap? Or perhaps other compilers are less picky if a function wants an arg and isn't given one; I do note that myusernaame_full() checks if(flags). But the error is a blocker for me nonetheless. If someone would investigate. Hand in NIL? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18924&edit=1

« previous php.bugs (#16937) next »