php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #56426 struct doesn't support time_t
Submitted: 2005-06-24 07:15 UTC Modified: 2017-04-01 20:08 UTC
From: laurinkus at gmail dot com Assigned:
Status: Wont fix Package: ffi (PECL)
PHP Version: 5.0.3 OS: Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-06-24 07:15 UTC] laurinkus at gmail dot com
Description:
------------
%summary%

Reproduce code:
---------------
struct Rateinfo {
time_t	ctm;            
double	open;           
double	low;            
double	high;           
double	close;          
int vol;
};


Actual result:
--------------
Crash

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-27 15:06 UTC] peter dot waller at gmail dot com
from the MSDN:

time_t long integer Represents time values in mktime and time. TIME.H 

so either redefine your struct

struct Rateinfo {
int	ctm;            
double	open;           
double	low;            
double	high;           
double	close;          
int vol;
};

or alternatively typedef int time_t; - though I have never had any luck getting typedefs to work. wez says he is working on it, maybe he might fix it?

Pete.
 [2017-04-01 20:08 UTC] tpunt@php.net
-Status: Open +Status: Wont fix
 [2017-04-01 20:08 UTC] tpunt@php.net
Due to this extension not seeing any activity since 2004, this issue will not be fixed. We are therefore closing this now.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Apr 05 20:01:28 2020 UTC