rasismeiro/cintient — comment on commit a409c1570864de3da1a86d4cd33503fefe0edb00
File: src/core/Framework/FilesystemFilterIterator.php line 118
By rasismeiro:

If the dir is like this c:\\\\\\dir\file3.ext ... The preg_replace works. But If You want Speed use only str_replace like You did

Ricardo Sismeiro

No dia 04/01/2012, às 01:38, Pedro Mata-Mouros escreveu:

> Why the preg_replace(), a str_replace() wouldn't suffice? Could this be replaced by
> ```php
> $this->_dir = str_replace(array('\\', '//'), array('/', '/'), $this->_dir);
> ```
> or am I missing the point?
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/rasismeiro/cintient/commit/a409c1570864de3da1a86d4cd33503fefe0edb00#commitcomment-835603