PHP 4.0 Bug #3948: php-4.0beta_PL_1 - Compile failure at parsedate.y
| From: | kannan_narayanan at hotmail dot com | Date: | Tue, 28 Mar 2000 17:47:56 +0000 |
| Subject: | PHP 4.0 Bug #3948: php-4.0beta_PL_1 - Compile failure at parsedate.y | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17329@lists.php.net to get a copy of this message | ||
From: kannan_narayanan@hotmail.com
Operating system: HP-UX10.20
PHP version: 4.0 Beta 4 Patch Level 1
PHP Bug Type: Compile Failure
Bug description: php-4.0beta_PL_1 - Compile failure at parsedate.y
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.