[wp-trac] [WordPress Trac] #54166: Updating errors due to PHP timeouts

WordPress Trac noreply at wordpress.org
Sat Oct 9 03:37:56 UTC 2021


#54166: Updating errors due to PHP timeouts
-------------------------------------------------+-------------------------
 Reporter:  aristath                             |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.9
Component:  Upgrade/Install                      |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch early dev-feedback needs-  |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51899" 51899]:
 {{{
 #!CommitTicketReference repository="" revision="51899"
 Upgrade/Install: Introduce a `move_dir()` function.

 This replaces the `copy_dir()` usage in `WP_Upgrader::install_package()`
 and aims to avoid PHP timeout issues when installing or updating large
 plugins on slower systems like Vagrant or the WP Docker test environment.

 The new function attempts a native PHP `rename()` function first and falls
 back to the previous `copy_dir()`.

 Follow-up to [51815], [51898].

 Props afragen, aristath, peterwilsoncc, galbaras, noisysocks, pbiron.
 Fixes #54166. See #51857.
 }}}

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


More information about the wp-trac mailing list