php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10168 openssl.c function uses an undeclared variable
Submitted: 2001-04-04 15:48 UTC Modified: 2001-05-06 14:18 UTC
From: martin at bugs dot unl dot edu dot ar Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Latest CVS (04/04/2001) OS: Solaris
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: martin at bugs dot unl dot edu dot ar
New email:
PHP Version: OS:

 

 [2001-04-04 15:48 UTC] martin at bugs dot unl dot edu dot ar
openssl.c: In function `asn1_time_to_time_t':
openssl.c:459: `is_dst' undeclared (first use in this function)
openssl.c:459: (Each undeclared identifier is reported only once
openssl.c:459: for each function it appears in.)
make[1]: *** [openssl.lo] Error 1
make[1]: Leaving directory `/space/pruebas/php4/ext/openssl'
make: *** [all-recursive] Error 1

is_dst (as I saw in some other c files) should be defined at the begining of the function `asn1_time_to_time_t', but it's not.
So I declared it as int with default value -1 and looks like that fixed it.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-05 04:48 UTC] wez@php.net
Thanks for pointing this out.

That line should read:

gmadjust = -(thetime.tm_isdst ? timezone - 3600 : timezone + 3600);

so thats thetime.tm_isdst instead of is_dst.

Sorry about that - my system has gmtoff, so I didn't catch this.

Please either update your CVS or make the change and confirm that this works correct.
 [2001-05-06 14:18 UTC] jmoore@php.net
Fixed && no Feedback
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 15:01:34 2025 UTC