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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: laurinkus at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 15:01:34 2025 UTC