Hello,
I am currently developing a test suite for the XML dumps, and I am curious about the
specification of text.old_flags in MediaWiki's maintainance/tables.sql.
The file describes the 'object' flag as
text field contained a serialized PHP object.
object either contains multiple versions compressed
to achieve a better compression ratio, or it refers
to another row where the text can be found.
Is the „multiple versions” part still used in some project?
If so, how should this be set up [1]?
Kind regards,
Christian
P.S.: In #wikimedia-dev I was told, to bring up the question on this list. If there are
further lists, where I should ask, please let me know.
[1] Before r6138 (back then still in Article.php not Revision.php), it seems the text was
obtained by
$object = unserialize( $text );
$text = $object->getItem( $hash );
. There it is somewhat obvious how a single object may return different texts. However,
beginning with p6138 it seems the text is simply fetched by
$obj = unserialize( $text );
[...]
$text = $obj->getText();
. If a single object should return different texts, how does it determine, which text to
return?
--
---- quelltextlich e.U. ---- \\ ---- Christian Aistleitner ----
Companies' registry: 360296y in Linz
Christian Aistleitner
Gruendbergstrasze 65a Email: christian(a)quelltextlich.at
4040 Linz, Austria Phone: +43 732 / 26 95 63
Fax: +43 732 / 26 95 63
Homepage:
http://quelltextlich.at/
---------------------------------------------------------------