[wp-trac] [WordPress Trac] #26091: Infinite loop in WP_FIlesystem_MockFS->mkdir()

WordPress Trac noreply at wordpress.org
Mon Nov 18 15:20:35 UTC 2013


#26091: Infinite loop in WP_FIlesystem_MockFS->mkdir()
------------------------------+------------------
 Reporter:  p_enrique         |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.8
Component:  Unit Tests        |     Version:  3.7
 Severity:  major             |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------
Changes (by SergeyBiryukov):

 * keywords:   => has-patch commit
 * version:  3.7.1 => 3.7
 * milestone:  Awaiting Review => 3.8


Comment:

 Related: [25053]

 Confirmed, the tests were failing for me too on Windows. Added some logs:
 {{{
 Iteration 1
 $path: /var/www/wordpress/
 dirname( $path ): /var/www
 Iteration 2
 $path: /var/www/
 dirname( $path ): /var
 Iteration 3
 $path: /var/
 dirname( $path ): \
 Iteration 4
 $path: \/
 dirname( $path ): \
 Iteration 5
 $path: \/
 dirname( $path ): \
 ...
 }}}
 [attachment:26091.patch] normalizes `dirname()` to prevent the infinite
 loop. Makes the filesystem tests pass on Windows.

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


More information about the wp-trac mailing list