diff options
author | Derick Rethans <github@derickrethans.nl> | 2013-01-06 15:07:13 +0000 |
---|---|---|
committer | Derick Rethans <github@derickrethans.nl> | 2013-01-06 15:07:13 +0000 |
commit | ba35ae32b7e9858e6590a616c4d5c2f0020cc7ab (patch) | |
tree | 608594c94cfd37bf4489fc3ea9e004ab81855940 /ext/date/tests | |
parent | d7da1aa694a9a29ca7ec772e5d51d96b6dc8dda0 (diff) | |
parent | ff9c1b12ff9c9533367d0d6200eb39189ad0124c (diff) | |
download | php-git-ba35ae32b7e9858e6590a616c4d5c2f0020cc7ab.tar.gz |
Merge branch 'PHP-5.3' into PHP-5.4
Diffstat (limited to 'ext/date/tests')
-rw-r--r-- | ext/date/tests/bug55397.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/date/tests/bug55397.phpt b/ext/date/tests/bug55397.phpt new file mode 100644 index 0000000000..efc09b5047 --- /dev/null +++ b/ext/date/tests/bug55397.phpt @@ -0,0 +1,11 @@ +--TEST-- +Bug #55397 (comparsion of incomplete DateTime causes SIGSEGV) +--INI-- +--FILE-- +<?php +date_default_timezone_set('Europe/Prague'); +var_dump(unserialize('O:8:"DateTime":0:{}') == new DateTime); +?> +--EXPECTF-- +Warning: %s: Trying to compare an incomplete DateTime object in %s on line %d +bool(false) |