php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3392 compilation error on parsedate.y
Submitted: 2000-02-03 04:23 UTC Modified: 2000-06-11 19:14 UTC
From: petr dot husak at meiller dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Latest CVS (03/02/2000) OS: hpux 10.20
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: petr dot husak at meiller dot com
New email:
PHP Version: OS:

 

 [2000-02-03 04:23 UTC] petr dot husak at meiller dot com
There are assigments like this:

struct tm *X;
X = localtime_r(&a,&b);

But return type of localtime_r function is declared as int.
I replaced localtime_r(&a,&b) with localtime(&a) (&b was not used) and it seems it will work.

Similar problem appears in files:

ext/standard/parsedate.y
ext/standard/datetime.c
main.c

Yours Sincerely Petr Husak

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-06 06:33 UTC] sas at cvs dot php dot net
Please clarify:

On HPUX localtime_r is prototyped as

int localtime_r(const time_t *, struct tm *);

Correct?

If yes, we need to provide a wrapper on this OS.
 [2000-02-23 13:31 UTC] sas at cvs dot php dot net
Status change.
 [2000-06-11 19:14 UTC] zeev at cvs dot php dot net
This appears to be addressed in PHP 4.0.0.  If you're still experiencing problems - please submit a new bug report.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 22:00:02 2026 UTC