#26091 closed defect (bug) (fixed)
Infinite loop in WP_FIlesystem_MockFS->mkdir()
| Reported by: | p_enrique | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.8 |
| Component: | Unit Tests | Version: | 3.7 |
| Severity: | major | Keywords: | has-patch commit |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.