>
> I don't really care what it does, it just needs to be fixed. :)
>

What is the supposed running path on make_chm.bat?
It's just looks as confusing. Is the follow patch can be safely commited?


Index: chm/common.php
===================================================================
RCS file: /repository/phpdoc/chm/common.php,v
retrieving revision 1.3
diff -u -r1.3 common.php
--- chm/common.php 12 May 2003 16:14:31 -0000 1.3
+++ chm/common.php 29 May 2003 16:39:03 -0000
@@ -9,7 +9,7 @@
 if (!function_exists("file_get_contents")) {
     function file_get_contents($file)
     {
-        $cnt = file($file);
+        $cnt = @file($file);
         if ($cnt !== false) {
             return join('', $cnt);
         }
@@ -25,7 +25,7 @@
     if ($only_tags) {
-         $buf = preg_replace("/<([a-zA-Z1-9]+)(>|[^a-zA-Z1-9][^>]*>)/Ue",
"preg_replace('/[\r\n]{1,2}/U', ' ', \"<\$1 \$2\")",
file_get_contents($filename));
+         $buf = preg_replace("/<([a-zA-Z1-9]+)(>|[^a-zA-Z1-9][^>]*>)/Ue",
"preg_replace('/[\r\n]{1,2}/U', ' ', \"<\$1 \$2\")",
@file_get_contents($filename));
     } else {
-        $buf = preg_replace("/[\r|\n]{1,2}/U", " ",
file_get_contents($filename));
+        $buf = preg_replace("/[\r|\n]{1,2}/U", " ",
@file_get_contents($filename));
     }
     $charset = detectDocumentCharset($buf);

Index: chm/make_chm_fancy.php
===================================================================
RCS file: /repository/phpdoc/chm/make_chm_fancy.php,v
retrieving revision 1.7
diff -u -r1.7 make_chm_fancy.php
--- chm/make_chm_fancy.php 12 May 2003 02:46:12 -0000 1.7
+++ chm/make_chm_fancy.php 29 May 2003 16:39:04 -0000
@@ -45,8 +45,8 @@
 fputs_wrapper($fp, $content);
 fclose($fp);

-copy("chm/make_chm_style.css", "$FANCY_PATH/style.css");
-copy("chm/make_chm_spc.gif", "$FANCY_PATH/spacer.gif");
+copy("make_chm_style.css", "$FANCY_PATH/style.css");
+copy("make_chm_spc.gif", "$FANCY_PATH/spacer.gif");

 // Three files added (fancy-index.html, style.css and spacer.gif)
 $counter += 3;


--
moshe


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to