php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8118 error in much warnings in session.c
Submitted: 2000-12-05 09:56 UTC Modified: 2001-09-09 05:21 UTC
From: stefan dot marquardt at hagebau dot de Assigned: sas (profile)
Status: Closed Package: Session related
PHP Version: 4.0.3pl1 OS: MIPS V4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stefan dot marquardt at hagebau dot de
New email:
PHP Version: OS:

 

 [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)      
   

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-05 10:01 UTC] stefan dot marquardt at hagebau dot de
here is the man gettimeofday:
#include <sys/time.h>                               
                                                    
int gettimeofday(struct timeval *tp, void *tzp);    
                                                    
int settimeofday(struct timeval *tp);               
 [2000-12-05 10:06 UTC] stefan dot marquardt at hagebau dot de
This is in the time.h:
#if defined(_XPG_IV)                           
int gettimeofday(struct timeval *, void *);    
#else                                          
int gettimeofday(struct timeval *);            


 [2000-12-05 10:10 UTC] stefan dot marquardt at hagebau dot de
Last update from me:
At which place can i set _XPG_IV ?

Stefan
 [2000-12-05 10:16 UTC] stefan dot marquardt at hagebau dot de
Is there the problem in configure ?
checking whether struct tm is in sys/time.h or time.h... time.h    

 [2000-12-05 10:25 UTC] stefan dot marquardt at hagebau dot de
Is there the problem in configure ?
checking whether struct tm is in sys/time.h or time.h... time.h    

 [2001-05-23 06:18 UTC] sniper@php.net
Does this happen with PHP 4.0.5 ??

--Jani

 [2001-05-23 11:27 UTC] stefan dot marquardt at hagebau dot de
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          
 [2001-09-09 05:21 UTC] sterling@php.net
Fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 10:01:26 2024 UTC