[PHP-DEV] PHP 4.0 Bug #10168: openssl.c function uses an undeclared variable From: martin <email protected>
Date: 04/04/01

From: martin <email protected>
Operating system: Solaris
PHP version: 4.0 Latest CVS (04/04/2001)
PHP Bug Type: Compile Failure
Bug description: openssl.c function uses an undeclared variable

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.

-- 
Edit Bug report at: http://bugs.php.net/?id=10168&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>