ID:               32425
 User updated by:  dsacchet at kikamedical dot com
 Reported By:      dsacchet at kikamedical dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Date/time related
 Operating System: Linux 2.4.27
 PHP Version:      4.3.10
 New Comment:

# ./configure --disable-all --disable-cgi && make
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu

...

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

venus php4-STABLE-200503240730 # sapi/cli/php -r \
> 'echo date("M-d-Y H:i:s", mktime(8, 0, 60, 12, 31, 1997))."\n\n";'
Dec-31-1997 08:00:59

venus php4-STABLE-200503240730 # 

So ... same result ... I become crazy ! :)

Do you want some output from the ./configure ?


Previous Comments:
------------------------------------------------------------------------

[2005-03-23 23:42:18] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

And do exactly this:

# ./configure --disable-all --disable-cgi && make
# sapi/cli/php -r \
'echo date("M-d-Y H:i:s", mktime(8, 0, 60, 12, 31, 1997));'

------------------------------------------------------------------------

[2005-03-23 14:09:56] dsacchet at kikamedical dot com

Here the complete description of my system :

Gentoo Linux stable branch updated to latest version
of portage.

uname -a :

Linux venus.kika.loc 2.4.27 #2 SMP Thu Nov 25 15:22:28 CET 2004 i686
Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux

Glibc version :

sys-libs/glibc-2.3.4.20041102-r1

GCC :

i686-pc-linux-gnu-3.3.5

If you know the gentoo system, here is my USE flags :

USE="apache2 expat gd java mng mpeg4 native oci8 pcre pear-db php \
     plotutils regexp speedo sse type1 X509 -oss -apm -arts -avi -cups
\
     -encode -foomaticdb -fortran -gnome -gpm -gtk -gtk2 -imlib -kde
-libg \
     -mad -mikmod -motif -oggvorbis -opengl -qt -quicktime -sdl -X
-xmms \
     -xv"

And finally, I can paste you the configure line from the
phpinfo :

'./configure' '--prefix=/usr' '--host=i686-pc-linux-gnu'
'--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib'
'--with-apxs2=/usr/sbin/apxs2' '--with-ndbm=/usr' '--with-db4=/usr'
'--with-mcrypt=/usr' '--with-mhash=/usr' '--without-interbase'
'--without-ming' '--without-swf' '--without-sybase' '--with-gdbm=/usr'
'--without-fdftk' '--with-java=/opt/sun-jdk-1.4.2.07' '--without-mcal'
'--with-oci8=/u01/app/oracle/product/9.2.0.4.0' '--with-unixODBC=/usr'
'--without-pgsql' '--with-snmp=/usr' '--enable-ucd-snmp-hack'
'--without-gmp' '--without-mssql' '--with-pdflib=/usr' '--with-gd'
'--enable-gd-native-ttf' '--with-png=/usr' '--with-png-dir=/usr'
'--with-jpeg=/usr' '--with-jpeg-dir=/usr' '--enable-exif'
'--with-tiff=/usr' '--with-tiff-dir=/usr' '--without-mysql'
'--with-freetype-dir=/usr' '--with-ttf=/usr' '--with-t1lib=/usr'
'--with-gettext' '--without-qtdom' '--with-pspell=/usr'
'--with-openssl=/usr' '--without-imap' '--with-ldap=/usr'
'--with-dom=/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr'
'--without-kerberos' '--with-pam' '--disable-memory-limit'
'--enable-ipv6' '--without-yaz' '--disable-debug' '--with-curlwrappers'
'--with-curl=/usr' '--enable-dbx' '--with-zlib=/usr'
'--with-zlib-dir=/usr' '--with-sablot=/usr' '--enable-xslt'
'--with-xslt-sablot' '--with-xmlrpc' '--enable-wddx' '--with-xml'
'--enable-mbstring=all' '--enable-mbregex' '--with-bz2=/usr'
'--with-crack=/usr' '--with-cdb' '--enable-pcntl' '--enable-bcmath'
'--enable-calendar' '--enable-dbase' '--enable-filepro' '--enable-ftp'
'--with-mime-magic=/usr/share/misc/file/magic.mime' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-iconv'
'--enable-shmop' '--enable-dio' '--enable-yp' '--without-ncurses'
'--without-readline' '--enable-inline-optimization'
'--enable-track-vars' '--enable-trans-sid' '--enable-versioning'
'--with-config-file-path=/etc/php/apache2-php4' '--without-pear'
'--libdir=/usr/lib/php'

Thank you very much for your help. I really appreciate that.

Best regards

Denis Sacchet

------------------------------------------------------------------------

[2005-03-23 12:52:52] [EMAIL PROTECTED]

WOrks fine for me... which glibc do you use? dsitribution?

------------------------------------------------------------------------

[2005-03-23 12:08:22] dsacchet at kikamedical dot com

Description:
------------
hello,

I observed a misbehaviour with out of range value on
the mktime function. When I put a number of seconds
gretear than 59, mktime round up to 59 and don't
increment minutes ...

Best regards

Denis Sacchet


Reproduce code:
---------------
echo date("M-d-Y H:i:s", mktime(8, 0, 60, 12, 31, 1997));

Expected result:
----------------
08:01:00

Actual result:
--------------
08:00:59


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32425&edit=1

Reply via email to