[wp-trac] [WordPress Trac] #48605: add_magic_quotes() inappropriately recasts data types

WordPress Trac noreply at wordpress.org
Mon Nov 25 03:55:18 UTC 2019


#48605: add_magic_quotes() inappropriately recasts data types
--------------------------+-----------------------------
 Reporter:  Veraxus       |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  5.4
Component:  General       |     Version:  trunk
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by Rarst):

 I don't know on top of my head, but is there (significant) loss of
 precision if float is converted to string and back? Unlike integers,
 floats do not necessarily map 1:1 to string representation.

 Not touching them in first place seems to be preferable approach to me,
 over potentially lossy type juggling.

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


More information about the wp-trac mailing list