Fix some function definitions (they should be static)

This commit is contained in:
Bharat Mediratta
2009-12-22 15:41:47 -08:00
parent d711c5b930
commit bdd7c68ede
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class diff_Core {
public function compare($a, $b) {
static function compare($a, $b) {
fwrite(fopen($a_name = tempnam("/tmp", "test"), "w"), $a);
fwrite(fopen($b_name = tempnam("/tmp", "test"), "w"), $b);
return `diff $a_name $b_name`;