[wp-trac] [WordPress Trac] #9930: is_serialized() returns false on serialized doubles

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 18 15:23:28 UTC 2010


#9930: is_serialized() returns false on serialized doubles
---------------------------------+------------------------------------------
 Reporter:  vladimir_kolesnikov  |        Owner:  westi   
     Type:  defect (bug)         |       Status:  reopened
 Priority:  normal               |    Milestone:  3.0     
Component:  General              |      Version:          
 Severity:  minor                |   Resolution:          
 Keywords:  has-patch tested     |  
---------------------------------+------------------------------------------
Changes (by hakre):

  * keywords:  has-patch => has-patch tested


Comment:

 I put this on my list again. Uploaded patch provides a fix for the
 problem. Tested.

 This is how I tested:

 Code:
 {{{
 $value      = 1.2E+150;
 $serialized = serialize($value);
 var_dump(is_serialized($serialized), $serialized, $value);
 }}}

 Output (patched):
 {{{
 boolean true

 string
 'd:1.200000000000000013344651621705194036153934411236609269391465806550823148718924258603522328009361549E+150;'
 (length=109)

 float 1.2E+150
 }}}

 Additionally some comment and code improvements.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9930#comment:25>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list