]> granicus.if.org Git - php/commitdiff
- Fix oversight
authorMarcus Boerger <helly@php.net>
Thu, 2 Feb 2006 19:02:05 +0000 (19:02 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 2 Feb 2006 19:02:05 +0000 (19:02 +0000)
ext/spl/spl_directory.c

index 9e24aeb0430c1e0bced9cddbcb56ebcb1ed04577..6cfa182a2c3b1208ce20c4d24df5fcbdaefe1ba3 100755 (executable)
@@ -1402,7 +1402,7 @@ SPL_METHOD(SplFileObject, __construct)
        if (spl_filesystem_file_open(intern, use_include_path, 0 TSRMLS_CC) == SUCCESS) {
                p1 = strrchr(intern->file_name, '/');
 #if defined(PHP_WIN32) || defined(NETWARE)
-               p2 = strrchr(path, '\\');
+               p2 = strrchr(intern->file_name, '\\');
 #else
                p2 = 0;
 #endif