]> granicus.if.org Git - php/commitdiff
fix function protos and is_link() wrapper
authorAntony Dovgal <tony2001@php.net>
Fri, 11 Jul 2008 08:53:43 +0000 (08:53 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 11 Jul 2008 08:53:43 +0000 (08:53 +0000)
ext/phar/func_interceptors.c

index aa39b0a5f515f1ad835e98cedfa2bbf25c4f4316..efc07dc4bb92c28c7ad29fbe45c3779c163989e9 100644 (file)
@@ -883,13 +883,13 @@ PharFileFunction(phar_is_readable, FS_IS_R, orig_is_readable)
 PharFileFunction(phar_is_executable, FS_IS_X, orig_is_executable)
 /* }}} */
 
-/* {{{ proto bool is_executable(string filename)
-   Returns true if file is executable */
+/* {{{ proto bool file_exists(string filename)
+   Returns true if filename exists */
 PharFileFunction(phar_file_exists, FS_EXISTS, orig_file_exists)
 /* }}} */
 
-/* {{{ proto bool is_executable(string filename)
-   Returns true if file is executable */
+/* {{{ proto bool is_dir(string filename)
+   Returns true if file is directory */
 PharFileFunction(phar_is_dir, FS_IS_DIR, orig_is_dir)
 /* }}} */
 
@@ -1018,7 +1018,7 @@ found_it:
                }
        }
 skip_phar:
-       PHAR_G(orig_file_exists)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
+       PHAR_G(orig_is_link)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
        return;
 }
 /* }}} */