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

 ID:                 53729
 Updated by:         [email protected]
 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] [email protected]

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 [email protected])

------------------------------------------------------------------------
[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

Reply via email to