[Tickets #6628] Re: PHP Fatal error: Cannot use string offset as an array in ./lib/Horde/Crypt/smime.php on line 830

bugs at horde.org bugs at horde.org
Wed Jul 16 05:39:50 UTC 2008


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

Ticket URL: http://bugs.horde.org/ticket/6628
------------------------------------------------------------------------------
  Ticket             | 6628
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | PHP Fatal error:  Cannot use string offset as an array
                     | in ./lib/Horde/Crypt/smime.php on line 830
  Queue              | Horde Framework Packages
  Version            | HEAD
  Type               | Bug
-State              | Assigned
+State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             | Horde Developers, Michael Slusarz
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2008-07-16 01:39) wrote:

I didn't write any of this code (sorry) - but mucking through the  
attached data, looks like this is the difference between the two  
pertinent data objects is as follows:

Bad data:
[9] => Array
                                 (
                                     [0] => bit string
                                     [1] => +
                                 )

Good data:
                             [9] => Array
                                 (
                                     [0] => sequence
                                     [1] => Array
                                         (
                                             [0] => Array
                                                 (
                                                     [0] => oid
                                                     [1] =>  
id-ce-basicConstraints
                                                 )

                                             [1] => Array
                                                 (
                                                     [0] => boolean
                                                     [1] => 1
                                                 )

                                             [2] => Array
                                                 (
                                                     [0] => octet string
                                                     [1] => 0&#65533;
                                                 )

                                         )

                                 )

The code has something to do with determining certificate extensions I  
guess, so I just ignored data formatted as the former to fix the  
error.  Others who know more about S/MIME can feel free to fix  
properly, as necessary.





More information about the bugs mailing list