php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3948 php-4.0beta_PL_1 - Compile failure at parsedate.y
Submitted: 2000-03-28 12:47 UTC Modified: 2000-03-29 12:39 UTC
From: kannan_narayanan at hotmail dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Beta 4 Patch Level 1 OS: HP-UX10.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: kannan_narayanan at hotmail dot com
New email:
PHP Version: OS:

 

 [2000-03-28 12:47 UTC] kannan_narayanan at hotmail dot com
PHP 4.0 Beta Patch Level 1 fails to compile on HP-UX10.20. 
The failure occurs in the localtime_r function.
On HP-UX, this function is defined as follows (copied from /usr/include/time.h):

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

There are some similar warnings that appear for gmtime_r function too. 
Similar problem appears in the following files:
          ext/standard/parsedate.y
          ext/standard/datetime.c
          main.c

I was able to compile when I used the solution in  Bug id #3392.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-29 12:39 UTC] sas at cvs dot php dot net
This was fixed in 4.0 RC1. Thanks for your report.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Feb 06 17:00:02 2026 UTC