Skip to content

Commit fa5815e

Browse files
committed
Use string UTCDateTime argument for 32 and 64-bit compatibility
1 parent f8398b4 commit fa5815e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/bson/bug0631.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PHPC-631: UTCDateTime::toDateTime() may return object that cannot be serialized
55

66
require_once __DIR__ . '/../utils/tools.php';
77

8-
$utcdatetime = new MongoDB\BSON\UTCDateTime(1466540755123);
8+
$utcdatetime = new MongoDB\BSON\UTCDateTime('1466540755123');
99
$datetime = $utcdatetime->toDateTime();
1010
$s = serialize($datetime);
1111

0 commit comments

Comments
 (0)