[wp-trac] [WordPress Trac] #39075: wpdb return type constants broken in 4.7 RC2 - always returns ARRAY_N

WordPress Trac noreply at wordpress.org
Sun Dec 4 21:13:12 UTC 2016


#39075: wpdb return type constants broken in 4.7 RC2 - always returns ARRAY_N
--------------------------+------------------------------
 Reporter:  sterndata     |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  trunk
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by sterndata):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Correction:  I mis-pasted. The first example should be the correct
 ouptput:

 OBJECT
 Array
 (
     [0] => stdClass Object
         (
             [ID] => 1
         )

     [1] => stdClass Object
         (
             [ID] => 2
         )

 )
 ARRAY_A
 Array
 (
     [0] => Array
         (
             [ID] => 1
         )

     [1] => Array
         (
             [ID] => 2
         )

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

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

 )

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39075#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list