correct copy/paste problem
authorUwe Schindler <thetaphi@php.net>
Fri, 15 Apr 2005 09:24:45 +0000 (09:24 +0000)
committerUwe Schindler <thetaphi@php.net>
Fri, 15 Apr 2005 09:24:45 +0000 (09:24 +0000)
ext/standard/md5.c
ext/standard/sha1.c

index 5e2410331f20588f06e9121dfc88ee262ce58274..08c10e3a9a994869aaa4004a7c9fdac7565ec887 100644 (file)
@@ -89,7 +89,7 @@ PHP_NAMED_FUNCTION(php_if_md5_file)
                RETURN_FALSE;
        }
 
-       if ((fd = VCWD_OPEN(arg, O_RDONLY)) == -1) {
+       if ((fd = VCWD_OPEN(Z_STRVAL_PP(arg), O_RDONLY)) == -1) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to open file");
                RETURN_FALSE;
        }
index a586afe0597b8cce79a91f70dc3359e81c1c8b36..8734083fcc83e14f2b68d5abcc64330fa743b109 100644 (file)
@@ -88,7 +88,7 @@ PHP_FUNCTION(sha1_file)
                RETURN_FALSE;
        }
 
-       if ((fd = VCWD_OPEN(arg, O_RDONLY)) == -1) {
+       if ((fd = VCWD_OPEN(Z_STRVAL_PP(arg), O_RDONLY)) == -1) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to open file");
                RETURN_FALSE;
        }