diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-05-10 15:49:53 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-05-10 15:49:53 +0200 |
commit | 1419a485e3ac0c507ef073f0b816bd41f7e4a5cd (patch) | |
tree | 4f3980583bb25a521b44fdd758d60309fd5df477 /inc/TarLib.class.php | |
parent | 811653d71565cce94ca1b27f4cdebc60769e2d11 (diff) | |
download | rpg-1419a485e3ac0c507ef073f0b816bd41f7e4a5cd.tar.gz rpg-1419a485e3ac0c507ef073f0b816bd41f7e4a5cd.tar.bz2 |
log deprecated function calls FS#2399
This introduces a new dbg_deprecated() function which allows for easy
marking of deprecated functions. Each call is logged to the debuglog
when debuggin is enabled.
Diffstat (limited to 'inc/TarLib.class.php')
-rw-r--r-- | inc/TarLib.class.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/TarLib.class.php b/inc/TarLib.class.php index ae08039ec..dd319a79a 100644 --- a/inc/TarLib.class.php +++ b/inc/TarLib.class.php @@ -26,6 +26,8 @@ class TarLib { public $_result = true; function __construct($file, $comptype = TarLib::COMPRESS_AUTO, $complevel = 9) { + dbg_deprecated('class Tar'); + if(!$file) $this->error('__construct', '$file'); $this->file = $file; |