Edit report at http://bugs.php.net/bug.php?id=50934&edit=1

 ID:               50934
 Updated by:       [email protected]
 Reported by:      draeli at draeli dot com
 Summary:          UnexpectedValueException: RecursiveDirectoryIterator
-Status:           No Feedback
+Status:           Feedback
 Type:             Bug
 Package:          SPL related
 Operating System: win32 only - Windows
 PHP Version:      5.3.1

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:
------------------------------------------------------------------------
[2010-03-05 06:01:02] php-bugs at lists dot php dot net

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

------------------------------------------------------------------------
[2010-02-26 00:19:31] [email protected]

Does this work in 5.2.x ?

------------------------------------------------------------------------
[2010-02-04 21:52:44] draeli at draeli dot com

I use the latest (I have download, install and try before report).

------------------------------------------------------------------------
[2010-02-04 20:37:05] [email protected]

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



------------------------------------------------------------------------
[2010-02-04 19:30:05] draeli at draeli dot com

Description:
------------
Under Windows (XP Sp3) I want to remove files and dir recursively.

When dir contain '-' (dash symbol), error message
"UnexpectedValueException:
RecursiveDirectoryIterator::__construct(E:\directoryTest\name - file)
[recursivedirectoryiterator.--construct]: failed to open dir: No such
file or directory in" is call and script is stop after loop
(consequently dir is really remove)

Reproduce code:
---------------
foreach (new \RecursiveIteratorIterator(new
\RecursiveDirectoryIterator('E:\directoryTest'),
\RecursiveIteratorIterator::SELF_FIRST) as $objCur) {

        if ( $objCur->isDir() ){

                rmdir($objCur->getPathname());

        }else{

                unlink($objCur->getPathname());

        }

}

Expected result:
----------------
I try to remove file and dir recurvely since one dir.

Actual result:
--------------
Actual result is file are delete, dir too but script stop after loop if
current read dir contain dash symbol.


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=50934&edit=1

Reply via email to