#26091 closed defect (bug) (fixed)
Infinite loop in WP_FIlesystem_MockFS->mkdir()
Reported by: | p_enrique | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.8 | Priority: | normal |
Severity: | major | Version: | 3.7 |
Component: | Unit Tests | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
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 ) ); [...]
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Related: [25053]
Confirmed, the tests were failing for me too on Windows. Added some logs:
26091.patch normalizes
dirname()
to prevent the infinite loop. Makes the filesystem tests pass on Windows.