From: Antony Dovgal Date: Thu, 18 Jan 2007 22:52:32 +0000 (+0000) Subject: fix win32 build X-Git-Tag: RELEASE_1_0_0RC1~220 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1743344cdf0c6fb7270ac421ddbe09ce6c785041;p=php fix win32 build --- diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index 3c72b2f57b..94199ec4e7 100755 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -1628,7 +1628,7 @@ SPL_METHOD(SplFileObject, __construct) p1.s = strrchr(intern->file_name.s, '/'); } #if defined(PHP_WIN32) || defined(NETWARE) - if (type == IS_UNICODE) { + if (intern->file_name_type == IS_UNICODE) { p2.u = u_strrchr(intern->file_name.u, '\\'); } else { p2.s = strrchr(intern->file_name.s, '\\');