[drupal-devel] [bug] XMLRPC array vs. struct type-checking

walkah drupal-devel at drupal.org
Mon Aug 8 18:04:44 UTC 2005

Issue status update for 
Post a follow up: 

 Project:      Drupal
 Version:      4.6.2
 Component:    base system
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  jvandyk
 Updated by:   walkah
 Status:       patch (ready to be committed)

+1 - verified.


Previous comments:

Mon, 08 Aug 2005 17:56:47 +0000 : jvandyk

Attachment: http://drupal.org/files/issues/tripleequals.diff (712 bytes)

In the new xmlrpc libraries, when encoding values a check is made as to
whether the current value is an array or a struct. The test uses the ==
operator but should use the === operator to allow structs with numeric
keys that are strings to be distinguished from arrays, which have
PHP-autogenerated numeric indices.

More information about the drupal-devel mailing list