PHP 4.0 Bug #10168 Updated: openssl.c function uses an undeclared variable
| From: | wez@php.net | Date: | Thu, 05 Apr 2001 08:48:26 +0000 |
| Subject: | PHP 4.0 Bug #10168 Updated: openssl.c function uses an undeclared variable | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50915@lists.php.net to get a copy of this message | ||
ID: 10168
Updated by: wez
Reported By: martin@bugs.unl.edu.ar
Old-Status: Open
Status: Feedback
Bug Type: Compile Failure
Assigned To: wez
Comments:
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.
Previous Comments:
---------------------------------------------------------------------------
[2001-04-04 15:48:17] martin@bugs.unl.edu.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.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10168&edit=2