Ticket #1057 (closed bug: fixed)

Opened 4 weeks ago

Last modified 4 weeks ago

Dao storage for jSession doesn't support very well serialized objects

Reported by: laurentj Owned by:
Priority: normal Milestone: Jelix 1.1.6
Component: jelix:dao Version: 1.1.4
Severity: normal Keywords:
Cc: Php version:
Review: Hosting Provider:
Blocked By: Documentation needed: yes
Blocking:

Description

The problem of the serialization, is that the resulting string could contain binary data. For protected method, PHP serialized the name, by prepending it with a null char + "*" + null char.

To fix this issue :

  • we should add the support of binary field in jDao
  • we should add the support of binary values in jDbConnection::quote

Change History

Changed 4 weeks ago by laurentj

  • status changed from new to closed
  • resolution set to fixed
  • docneeded set

fixed in the trunk and 1.1.x branch:

Added the support of a "varbinary" datatype in jDao, and with the jDbConnection::quote(). Added also a support of "modifier" on jDbResultSet, wich allow to provides a callback function which could modify some field on records during the fetch.

Note: See TracTickets for help on using tickets.