[wp-trac] [WordPress Trac] #31600: WP_Object_Cache incr & decr can use a more strict type checking on offset

WordPress Trac noreply at wordpress.org
Thu Mar 12 09:34:54 UTC 2015


#31600: WP_Object_Cache incr & decr can use a more strict type checking on offset
--------------------------+-----------------------------
 Reporter:  jipmoors      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Cache API     |     Version:  3.3
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by jipmoors):

 Test increment with an array with entries.

 wp_cache_set( $key, 2 );
 $this->assertEquals( 2, wp_cache_incr( $key, array('') ) );

 Results in 3 instead of 2.

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


More information about the wp-trac mailing list