todo:ext:wddx

This is an old revision of the document!


Value types

The main problem for packets generation is the values types. Wddx supports a range of types including common types also found in PHP (array, struct, string, boolean, number, null, and binary with PHP 6), but also some types specific to Wddx, including dateTime and recordSet.

dateTime

The new DateTime php object could be automatically serialized.

NB: Wddx is missing a “timezone” in the specs, however other implementation seems to implement it with “+00:00” (like DATE_ATOM)

Problems:

  • The object can't be converted to string, returning it for DateTime value when unserializing would break code currently using wddx

Advantages:

  • Already existing :)

recordSet

A recordSet is like a table (ie. a numerically-indexed array containing in each row arrays with always the same columns).

The implementation currently converts everything to arrays.

Binary data

WDDX offers the ability to transfer binary data (base64 encoded). There is currently no way to encode data in this format.

Solutions for PHP <6 includes:

  • Autodetecting invalid UTF-8 sequences, and treat them as binary data
  • Finding a way to force a value to binary
todo/ext/wddx.1228214509.txt.gz · Last modified: 2017/09/22 13:28 (external edit)