mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-03 14:31:53 +00:00
Adapt var_dump test new php versions.
Newer versions of PHP in 5.4 and 5.5 line add micro seconds precision to datetime representations. This adds a regular expression to ignore the .000000 suffix.
This commit is contained in:
parent
ab5b0ae7bf
commit
edb4679223
@ -88,7 +88,7 @@ array(11) {
|
|||||||
["date"]=>
|
["date"]=>
|
||||||
object(DateTime)#%d (3) {
|
object(DateTime)#%d (3) {
|
||||||
["date"]=>
|
["date"]=>
|
||||||
string(19) "1976-09-27 09:00:00"
|
string(%d) "1976-09-27 09:00:00%r(\.0+)?%r"
|
||||||
["timezone_type"]=>
|
["timezone_type"]=>
|
||||||
int(3)
|
int(3)
|
||||||
["timezone"]=>
|
["timezone"]=>
|
||||||
@ -199,7 +199,7 @@ array (11) {
|
|||||||
function () { [native code] }
|
function () { [native code] }
|
||||||
}
|
}
|
||||||
["$date"] =>
|
["$date"] =>
|
||||||
string(19) "1976-09-27 09:00:00"
|
string(%d) "1976-09-27 09:00:00%r(\.0+)?%r"
|
||||||
["$timezone_type"] =>
|
["$timezone_type"] =>
|
||||||
int(3)
|
int(3)
|
||||||
["$timezone"] =>
|
["$timezone"] =>
|
||||||
|
Loading…
Reference in New Issue
Block a user