# TSRM windows bugs

- Thread: https://externals.io/message/21273
- Original archive: https://news-web.php.net/php.internals/21273
- Started by Nuno Lopes on 2005-12-18T22:54:31+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #21273 — Nuno Lopes — 2005-12-18T22:54:31+00:00

URL: https://externals.io/message/21273#21273

Hi,

I've made a patch to fix some problems in TSRM on windows:
http://mega.ist.utl.pt/~ncpl/php_tsrm.txt

fixes:
 * #31347 - is_dir and is_file (incorrectly) return true for any string > 
255 characters - the bug is caused because the return value of 
virtual_file_ex() isn't tested
 * save one byte and 1 sum operation :)
 * make virtual_file_ex() fail earlier (and save one malloc) if the path 
doesn't exist.


Nuno
