Date: 11/26/98
- Next message: Bug Database: "[PHP-DEV] Bug #955 Updated: system() with a command containing a pipe: fails under safe mode"
- Previous message: DelislMa <email protected>: "[PHP-DEV] Bug #955: system() with a command containing a pipe: fails under safe mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 954
User Update by: tsillan <email protected>
Status: Open
Bug Type: Compile Failure
Description: datetime.c uses a struct member that doesn't exist
PHP 3.0.0 compiles okay, although the code that produces
a compilation error in datetime.c is exactly the same.
Here's the error:
gcc -g -O2 -O2 -I. -I. -I/opt/home/viinitupa/vt2/utils/apache_1.3.1/src/include -I/opt/home/viinitupa/vt2/utils/apache_1.3.1/src/os/unix -I/opt/home/viinitupa/vt2/solid/include -c functions/datetime.c -o functions/datetime.o
functions/datetime.c: In function `_php3_mktime':
functions/datetime.c:105: structure has no member named `tm_gmtoff'
make: *** [functions/datetime.o] Error 1
The code there looks like the following:
#if HAVE_TZSET
tzset();
#if HAVE_TM_ZONE
gmadjust=(tn->tm_gmtoff)/3600;
#else
gmadjust=timezone/3600;
#endif
It guess that the configuration script of PHP 3.0.0
does not define HAVE_TM_ZONE and therefore compilation
succeeds. 3.0.5 defines it and compilation fails. This
is just a guess.
My do-conf looks like the following:
./configure --with-apache=/opt/home/viinitupa/vt2/utils/apache_1.3.1 --with-gd=n
o --with-solid=/opt/home/viinitupa/vt2/solid --with-config-file-path=/opt/home/v
iinitupa/vt2/web/conf --enable-debug=no --with-exec-dir=/opt/home/viinitupa/vt2/
web/cgi-bin --enable-url-fopen-wrapper=no
Full Bug description available at: http://ca.php.net/bugs.php3?id=954
-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>
- Next message: Bug Database: "[PHP-DEV] Bug #955 Updated: system() with a command containing a pipe: fails under safe mode"
- Previous message: DelislMa <email protected>: "[PHP-DEV] Bug #955: system() with a command containing a pipe: fails under safe mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

