|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-12-05 09:56 UTC] stefan dot marquardt at hagebau dot de
session.c:
510 gettimeofday(&tv, NULL);
error: too much arguments
if tried do delete NULL and it seems to work.
All the time i get warnings like:
math.c 718: ?warning?: CFE1111 Anweisung unerreichbar
break;
gettomeofday seems to have the wrong syntax for MIPS or my cc is bad ??
microtime.c 57: ?error?: CFE1140 Zuviel Argumente im Funktionsaufruf
if (gettimeofday((struct timeval *) &tp, (NUL)) == 0) ?
It is a C Compiler on a Reliant Unix 5.43 RM400 machine(Sinix)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
here is the man gettimeofday: #include <sys/time.h> int gettimeofday(struct timeval *tp, void *tzp); int settimeofday(struct timeval *tp);The error is still in 4.0.5: cc -I. -I/home4/src/php-4.0.5/ext/session -I/home4/src/php-4.0.5/main - I/home4/src/php-4.0.5 -I/home4/src/apache_1.3.14/src/include -I/home4/src/apache _1.3.14/src/os/unix -I/home4/src/php-4.0.5/Zend -I/home4/src/php-4.0.5/ext/xml/e xpat/xmltok -I/home4/src/php-4.0.5/ext/xml/expat/xmlparse -I/home4/src/php-4.0.5 /TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -c session.c && touch session.lo session.c 533: [error]: CFE1140 Zuviel Argumente im Funktionsaufruf gettimeofday(&tv, NULL); ^ session.c 537: [warning]: CFE1167 Argument des Typs "char *" ist unvertraegl ich mit Parameter des Typs "const unsigned char *" PHP_MD5Update(&context, buf, strlen(buf)); Workaround in time.h: add: #ifndef _XPG_IV #define _XPG_IV #endif