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

WordPress Trac noreply at wordpress.org
Sun Nov 17 20:27:24 UTC 2013


#26091: Infinite loop in WP_FIlesystem_MockFS->mkdir()
--------------------------+-----------------------------
 Reporter:  p_enrique     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Unit Tests    |    Version:  3.7.1
 Severity:  major         |   Keywords:
--------------------------+-----------------------------
 When running the unit tests under Windows/WampServer with command
 `phpunit` (no parameters): `Fatal error: Maximum function nesting level of
 '100' reached, aborting! in C:\wamp\www\wordpress-svn\src\wp-
 includes\formatting.php on line 1413`

 The error stops the tests.

 The PhpUnit output seems to point to an infinite loop in this code:
 {{{
 function mkdir( $path, /* Optional args are ignored */ $chmod = false,
 $chown = false, $chgrp = false ) {
         $path = trailingslashit( $path );

         $parent_node = $this->locate_parent_node( $path );
         if ( ! $parent_node ) {
                 $this->mkdir( dirname( $path ) );
         [...]
 }}}

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


More information about the wp-trac mailing list