]> granicus.if.org Git - php/commitdiff
fix win32 build
authorAntony Dovgal <tony2001@php.net>
Thu, 18 Jan 2007 22:52:32 +0000 (22:52 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 18 Jan 2007 22:52:32 +0000 (22:52 +0000)
ext/spl/spl_directory.c

index 3c72b2f57b6a16d65566650b02e0b513cbbb9b66..94199ec4e74a6d68cb6ac7fe914a82b01dc124be 100755 (executable)
@@ -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, '\\');