Bug 1317123 - Missing microseconds to the serialised form of DateTime objects
Summary: Missing microseconds to the serialised form of DateTime objects
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: php
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Remi Collet
QA Contact: RHEL Stacks Subsystem QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-12 06:56 UTC by Remi Collet
Modified: 2021-01-14 09:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-17 10:37:33 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
PHP Bug Tracker 67308 0 None None None 2016-03-12 06:57:15 UTC

Description Remi Collet 2016-03-12 06:56:06 UTC
DateTime are not correctly serialized, resulting in a lost of precision.

This raise issue in some test suites

Ex: in php-pecl-pq

TEST 14/47 [tests/conv001.phpt]
========DIFF========
104+       string(19) "2016-03-11 00:00:00"
104-       string(26) "%d-%d-%d 00:00:00.000000"
115+       string(19) "2016-03-11 19:50:56"
115-       string(26) "%d-%d-%d %d:%d:%d.000000"
126+       string(19) "2016-03-11 18:50:56"
126-       string(26) "%d-%d-%d %d:%d:%d.000000"
137+       string(19) "2016-03-11 19:50:56"
137-       string(26) "%d-%d-%d %d:%d:%d.000000"
148+       string(19) "2016-03-11 00:00:00"
148-       string(26) "%d-%d-%d 00:00:00.000000"
159+       string(19) "2016-03-11 19:50:56"
159-       string(26) "%d-%d-%d %d:%d:%d.000000"
170+       string(19) "2016-03-11 18:50:56"
170-       string(26) "%d-%d-%d %d:%d:%d.000000"
181+       string(19) "2016-03-11 19:50:56"
181-       string(26) "%d-%d-%d %d:%d:%d.000000"
========DONE========
FAIL converter [tests/conv001.phpt]

Comment 9 Joe Orton 2020-06-17 10:37:33 UTC
Fixed in RHEL8.


Note You need to log in before you can comment on or make changes to this bug.