[wp-trac] [WordPress Trac] #51466: Site Health: don't give a warning when post_max_size is set to 0 (unlimited)

WordPress Trac noreply at wordpress.org
Tue Feb 9 12:04:16 UTC 2021


#51466: Site Health: don't give a warning when post_max_size is set to 0
(unlimited)
---------------------------------------+-----------------------------
 Reporter:  pixolin                    |       Owner:  SergeyBiryukov
     Type:  defect (bug)               |      Status:  closed
 Priority:  normal                     |   Milestone:  5.7
Component:  Site Health                |     Version:  5.5.1
 Severity:  normal                     |  Resolution:  fixed
 Keywords:  has-patch has-screenshots  |     Focuses:
---------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50263" 50263]:
 {{{
 #!CommitTicketReference repository="" revision="50263"
 Site Health: Clarify the recommendation in file uploads test when
 `post_max_size` is defined as `0`.

 This adds a more descriptive text in scenarios where `post_max_size` and
 `upload_max_filesize` differ, and `post_max_size` is set to a value of
 `0`.

 In some scenarios, PHP may read `0` as a literal zero size, and not as
 unlimited, which it also means in other scenarios.

 See https://www.php.net/manual/en/ini.core.php#ini.post-max-size for
 details, as PHP 5.3.4 introduced this behavior for literal zero
 interpretation when the content type of a request is `application/x-www-
 form-urlencoded` or is not registered with PHP.

 Props Clorith, pixolin, helen, ratneshk.
 Fixes #51466.
 }}}

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


More information about the wp-trac mailing list