Re: [PATCH] unix path separators in spl
| From: | Steph Fox | Date: | Thu, 19 Jun 2008 19:13:47 +0000 |
| Subject: | Re: [PATCH] unix path separators in spl | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38432@lists.php.net to get a copy of this message | ||
Hi Stas,
Bleh, must be nearly switching-off timeDoesn't PATH_SEPARATOR use DEFAULT_SLASH?Should be DIRECTORY_SEPARATOR
and it's "\" on windows (PATH_SEPARATOR is ";" ). Do you propose to change it to "/"?dirsep_str[0] = DEFAULT_SLASH; dirsep_str[1] = '\0'; REGISTER_STRING_CONSTANT("DIRECTORY_SEPARATOR", dirsep_str, CONST_CS|CONST_PERSISTENT);
Fair point. I like Marcus' idea tho'. - StephWith all due respect to phpt, these are very primitive code samples testing very narrow functional areas. They do not come anywhere near the stuff people do in real-life apps, combining different functions and extensions.Path comparison is important.I thought so too until I couldn't find any broken tests.
-- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php