Even some more... :-(
authorRoland Häder <roland@mxchange.org>
Sat, 26 Jun 2010 16:49:45 +0000 (16:49 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 26 Jun 2010 16:49:45 +0000 (16:49 +0000)
inc/functions.php

index f303ce5c685ca3ce250ce42d5c270a661dd21dab..7838ec88620947b87d2cc7c6bb17e64386358bf7 100644 (file)
@@ -2757,12 +2757,12 @@ function changeDataInFile ($FQFN, $comment, $prefix, $suffix, $DATA, $seek=0) {
                $tmp = $FQFN . '.tmp';
 
                // Open the source file
                $tmp = $FQFN . '.tmp';
 
                // Open the source file
-               $fp = fopen($FQFN, 'r') or debug_report_bug('Cannot read. file=' . basename($FQFN));
+               $fp = fopen($FQFN, 'r') or debug_report_bug(__FUNCTION__, __LINE__, 'Cannot read. file=' . basename($FQFN));
 
                // Is the resource valid?
                if (is_resource($fp)) {
                        // Open temporary file
 
                // Is the resource valid?
                if (is_resource($fp)) {
                        // Open temporary file
-                       $fp_tmp = fopen($tmp, 'w') or debug_report_bug('Cannot write. tmp=' . basename($tmp) . ',file=' . $FQFN);
+                       $fp_tmp = fopen($tmp, 'w') or debug_report_bug(__FUNCTION__, __LINE__, 'Cannot write. tmp=' . basename($tmp) . ',file=' . $FQFN);
 
                        // Is the resource again valid?
                        if (is_resource($fp_tmp)) {
 
                        // Is the resource again valid?
                        if (is_resource($fp_tmp)) {
@@ -2811,7 +2811,7 @@ function changeDataInFile ($FQFN, $comment, $prefix, $suffix, $DATA, $seek=0) {
                }
        } else {
                // File not found, not readable or writeable
                }
        } else {
                // File not found, not readable or writeable
-               debug_report_bug('File not readable/writeable. file=' . basename($FQFN));
+               debug_report_bug(__FUNCTION__, __LINE__, 'File not readable/writeable. file=' . basename($FQFN));
        }
 
        // An error was detected!
        }
 
        // An error was detected!