[Tickets #5582] Need to replace sscanf() in Turba_Driver

bugs at bugs.horde.org bugs at bugs.horde.org
Thu Jul 26 00:32:35 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://dev.horde.org/horde/whups/ticket/?id=5582
-----------------------------------------------------------------------
 Ticket             | 5582
 Created By         | Michael Rubinsky <mrubinsk at horde.org>
 Summary            | Need to replace sscanf() in Turba_Driver
 Queue              | Turba
 Version            | HEAD
 Type               | Bug
 State              | Accepted
 Priority           | 2. Medium
 Owners             | 
-----------------------------------------------------------------------


Michael Rubinsky <mrubinsk at horde.org> (2007-07-25 17:32) wrote:

Due to a bug in PHP (both 4 and 5) we need to change the sscanf() call in
Turba_Driver::toDriverKeys to some other inplementation.

The bug causes problems when using positioned parameters in the format
string (inserts extra array elements in the results as well as confusing
the order of the results in some cases) thus causing the composite fields
to break....and possibly preventing the creation of new contact lists.

Example:

$test = sscanf('hello world, '%2$s %1$s');
print_r($test);

produces:

Array
(
    [0] => 
    [1] => 
    [3] => hello
    [2] => world
)






More information about the bugs mailing list