]> granicus.if.org Git - php/commitdiff
- SplFileInfo::getRealPath() is not always present
authorMarcus Boerger <helly@php.net>
Sat, 3 Mar 2007 14:51:40 +0000 (14:51 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 3 Mar 2007 14:51:40 +0000 (14:51 +0000)
ext/spl/spl_directory.c

index 00da33b936d74f6742aa513f35d20de48039a58e..c1059dfebe1fe5b888799cd5915d27470fa075c0 100755 (executable)
@@ -1540,7 +1540,9 @@ static zend_function_entry spl_SplFileInfo_functions[] = {
        SPL_ME(SplFileInfo,       isDir,         NULL, ZEND_ACC_PUBLIC)
        SPL_ME(SplFileInfo,       isLink,        NULL, ZEND_ACC_PUBLIC)
        SPL_ME(SplFileInfo,       getLinkTarget, NULL, ZEND_ACC_PUBLIC)
+#if (!defined(__BEOS__) && !defined(NETWARE) && HAVE_REALPATH) || defined(ZTS)
        SPL_ME(SplFileInfo,       getRealPath,   NULL, ZEND_ACC_PUBLIC)
+#endif
        SPL_ME(SplFileInfo,       getFileInfo,   arginfo_info_optinalFileClass, ZEND_ACC_PUBLIC)
        SPL_ME(SplFileInfo,       getPathInfo,   arginfo_info_optinalFileClass, ZEND_ACC_PUBLIC)
        SPL_ME(SplFileInfo,       openFile,      arginfo_info_openFile,         ZEND_ACC_PUBLIC)