Bug #53729 [Opn->Csd]: DatePeriod fails to initialize recurrences s on 64bit big-endian systems
| From: | derick@php.net | Date: | Wed, 12 Jan 2011 19:50:19 +0000 |
| Subject: | Bug #53729 [Opn->Csd]: DatePeriod fails to initialize recurrences s on 64bit big-endian systems | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157866@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53729&edit=1
ID: 53729
Updated by: derick@php.net
Reported by: rein at basefarm dot no
Summary: DatePeriod fails to initialize recurrences s on
64bit big-endian systems
-Status: Open
+Status: Closed
Type: Bug
Package: Date/time related
Operating System: Solaris10 on sparc
PHP Version: 5.3.5
-Assigned To:
+Assigned To: derick
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Thanks for your patch!
Previous Comments:
------------------------------------------------------------------------
[2011-01-12 20:50:11] derick@php.net
Automatic comment from SVN on behalf of derick
Revision: http://svn.php.net/viewvc/?view=revision&revision=307416
Log: - Fixed bug #53729 (DatePeriod fails to initialize recurrences on
64bit
big-endian systems). (Patch by rein@basefarm.no)
------------------------------------------------------------------------
[2011-01-12 20:43:05] rein at basefarm dot no
Description:
------------
In date_period_initialize(), the recurrences argument is an int*, but it
is passed a long*. This causing the wrong value to be returned on 64bit
big-endian systems.
A patch that fixes this is attached, Without this patch,
ext/date/tests/bug46874.phpt fails on 64 solaris sparc systems, it only
prints the first period.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53729&edit=1