StringEpsilon / PhpSerializerNET

A .NET library for working with the PHP serialization format

Repository from Github https://github.comStringEpsilon/PhpSerializerNETRepository from Github https://github.comStringEpsilon/PhpSerializerNET

Support arrays

StringEpsilon opened this issue · comments

Failing test:

[TestMethod]
public void ExplicitToArray() {
	var result = PhpSerialization.Deserialize<string[]>("a:3:{i:0;s:5:\"Hello\";i:1;s:5:\"World\";i:2;i:12345;}");

	CollectionAssert.AreEqual(new string[]{ "Hello", "World", "12345" }, result);
}

Basically: Support object[] and so on.