ID: 35751
Updated by: [EMAIL PROTECTED]
Reported By: lehmann at ans-netz dot de
-Status: Open
+Status: Feedback
Bug Type: Date/time related
Operating System: FreeBSD 6.0/alpha
PHP Version: 5.1.1
New Comment:
This only means that you're on your own with the rare platform you
have.
I guess the only solution is to try to debug it and tell us what's the
problem, since it works fine for us.
Previous Comments:
------------------------------------------------------------------------
[2005-12-21 22:50:00] lehmann at ans-netz dot de
As far as I could checked, it also works with FreeBSD/i386 and
FreeBSD/amd64, but not with FreeBSD/alpha. Since 5.0.5 worked with the
ext/standard/datetime.[ch] code on FreeBSD/alpha before I doubt that
this is a problem with my OS
------------------------------------------------------------------------
[2005-12-21 15:12:22] [EMAIL PROTECTED]
Works perfectly fine on Linux, both i386 and x86_64.
------------------------------------------------------------------------
[2005-12-21 15:04:27] lehmann at ans-netz dot de
here is the backtrace from the latest cvs snapshot (please don't be
iretated by the path i renamed php5-CVS... to php-5.1.1)
#0 0x0000000120029ce8 in php_format_date (
format=0x2 <Address 0x2 out of bounds>, format_len=1, ts=10000,
localtime=1)
at
/usr/obj/alpha-ev56-6.0/usr/ports/lang/php5/work/php-5.1.1/ext/date/php_date.c:465
465 switch (format[i]) {
(gdb) bt
#0 0x0000000120029ce8 in php_format_date (
format=0x2 <Address 0x2 out of bounds>, format_len=1, ts=10000,
localtime=1)
at
/usr/obj/alpha-ev56-6.0/usr/ports/lang/php5/work/php-5.1.1/ext/date/php_date.c:465
#1 0x0000000000000002 in ?? ()
Cannot access memory at address 0xfffffffffffffffe
(gdb) up 0
#0 0x0000000120029ce8 in php_format_date (
format=0x2 <Address 0x2 out of bounds>, format_len=1, ts=10000,
localtime=1)
at
/usr/obj/alpha-ev56-6.0/usr/ports/lang/php5/work/php-5.1.1/ext/date/php_date.c:465
465 switch (format[i]) {
(gdb) list
460 }
461 buffer[32] = '\0';
462 timelib_isoweek_from_date(t->y, t->m, t->d, &isoweek,
&isoyear);
463
464 for (i = 0; i < format_len; i++) {
465 switch (format[i]) {
466 /* day */
467 case 'd': snprintf(buffer, 32, "%02d",
(int) t->d); break;
468 case 'D': snprintf(buffer, 32, "%s",
day_short_names[timelib_day_of_week(t->y, t->m, t->d)]); break;
469 case 'j': snprintf(buffer, 32, "%d",
(int) t->d); break;
(gdb)
------------------------------------------------------------------------
[2005-12-20 23:00:28] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2005-12-20 20:53:59] lehmann at ans-netz dot de
here is the backtrace:
(gdb) bt
#0 0x00000001200297c8 in php_format_date (format=0x120132fd8 "\036",
format_len=540212224, ts=10000, localtime=46)
at
/usr/obj/alpha-ev56-6.0/usr/ports/lang/php5/work/php-5.1.1/ext/date/php_date.c:467
#1 0x0000000000000000 in ?? ()
Previous frame identical to this frame (corrupt stack?)
(gdb) up 0
#0 0x00000001200297c8 in php_format_date (format=0x120132fd8 "\036",
format_len=540212224, ts=10000, localtime=46)
at
/usr/obj/alpha-ev56-6.0/usr/ports/lang/php5/work/php-5.1.1/ext/date/php_date.c:467
467 switch (format[i]) {
(gdb) list
462 }
463 buffer[32] = '\0';
464 timelib_isoweek_from_date(t->y, t->m, t->d, &isoweek,
&isoyear);
465
466 for (i = 0; i < format_len; i++) {
467 switch (format[i]) {
468 /* day */
469 case 'd': snprintf(buffer, 32, "%02d",
(int) t->d); break;
470 case 'D': snprintf(buffer, 32, "%s",
day_short_names[timelib_day_of_week(t->y, t->m, t->d)]); break;
471 case 'j': snprintf(buffer, 32, "%d",
(int) t->d); break;
(gdb)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/35751
--
Edit this bug report at http://bugs.php.net/?id=35751&edit=1