From dc0fb7d2b4712a0d86d3904297369ad6ba35766c Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sat, 23 Jun 2007 14:05:09 +0000 Subject: [PATCH] [2.0.1] DefinitionCache related bug-fixes - Fixed bug where manually modified definitions were not saved via cache (mostly harmless, except for the fact that it would be a little slower) - Configuration objects with different serials do not clobber each others when revision numbers are unequal . DefinitionCache keys reordered to reflect precedence: version number, hash, then revision number git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1204 48356398-32a2-884e-a903-53898d9a118a --- NEWS | 6 ++++ library/HTMLPurifier/Config.php | 7 +++- library/HTMLPurifier/DefinitionCache.php | 17 ++++++---- .../DefinitionCache/Serializer.php | 11 ++++++- tests/HTMLPurifier/ConfigTest.php | 3 +- .../DefinitionCache/SerializerTest.php | 32 +++++++++++++++++-- tests/HTMLPurifier/DefinitionCacheTest.php | 22 ++++++++----- 7 files changed, 78 insertions(+), 20 deletions(-) diff --git a/NEWS b/NEWS index f97e4389..199b8cc8 100644 --- a/NEWS +++ b/NEWS @@ -13,8 +13,14 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier - Clean up special case code for