Bug #10168 Updated: openssl.c function uses an undeclared variable
| From: | jmoore@php.net | Date: | Sun, 06 May 2001 12:18:56 +0000 |
| Subject: | Bug #10168 Updated: openssl.c function uses an undeclared variable | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-54091@lists.php.net to get a copy of this message | ||
ID: 10168
Updated by: jmoore
Reported By: martin@bugs.unl.edu.ar
Old-Status: Feedback
Status: Closed
Bug Type: Compile Failure
Operating system:
PHP Version: 4.0 Latest CVS (04/04/2001)
Assigned To:
Comments:
Fixed && no Feedback
Previous Comments:
---------------------------------------------------------------------------
[2001-04-05 04:48:26] 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-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