diff options
| author | Ondřej Surý <ondrej@sury.org> | 2013-02-25 16:11:05 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2013-02-25 16:11:05 +0100 |
| commit | c8013604b48675ec2b266aa186bb6c3126c47cca (patch) | |
| tree | de627cca2457af7c3c0a6498906ff49b4d2f722d /ext/date/tests/bug55397.phpt | |
| parent | 28f17d3b49950d50f3900f84d74d7cc0822b123d (diff) | |
| download | php-upstream/5.4.12.tar.gz | |
Imported Upstream version 5.4.12upstream/5.4.12
Diffstat (limited to 'ext/date/tests/bug55397.phpt')
| -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 000000000..efc09b504 --- /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) |
