Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007740TestLinkInstallerpublic2016-11-12 22:062016-11-17 12:33
Reportermeknassy 
Assigned To 
PriorityurgentSeverityblockReproducibilityalways
StatusnewResolutionopen 
PlatformpcOSwindowsOS Version7
Product Version1.9.15 (2015 Q4) 
Fixed in Version 
Summary0007740: http://localhost/testlink-1.9.15/install/installNewDB.php [^]
DescriptionHi
When I click Process TestLink Setup, I have th

e following messages:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in C:\xampp\htdocs\testlink-1.9.15\third_party\adodb\adodb.inc.php on line 263

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in C:\xampp\htdocs\testlink-1.9.15\third_party\adodb\adodb.inc.php on line 357

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in C:\xampp\htdocs\testlink-1.9.15\third_party\adodb\adodb.inc.php on line 2893

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in C:\xampp\htdocs\testlink-1.9.15\third_party\adodb\adodb.inc.php on line 3911




The code of adodb.inc.php for the error of line 263 for example.

// class for caching
    class ADODB_Cache_File {
    
        var $createdir = true; // requires creation of temp dirs
        
         function ADODB_Cache_File()
        {
        global $ADODB_INCLUDED_CSV;
            if (empty($ADODB_INCLUDED_CSV)) include_once(ADODB_DIR.'/adodb-csvlib.inc.php');
        }
        
        // write serialised recordset to cache item/file
         function writecache($filename, $contents, $debug, $secs2cache)
        {
            return adodb_write_file($filename, $contents,$debug);
        }
        
        // load serialised recordset and unserialise it
        function &readcache($filename, &$err, $secs2cache, $rsClass)
        {
            $rs = csv2rs($filename,$err,$secs2cache,$rsClass);
            return $rs;
        }
        
        // flush all items in cache
         function flushall($debug=false)
        {
        global $ADODB_CACHE_DIR;

        $rez = false;
        
            if (strlen($ADODB_CACHE_DIR) > 1) {
                $rez = $this->_dirFlush($ADODB_CACHE_DIR);
                 if ($debug) ADOConnection::outp( "flushall: $dir
\n". $rez."
");
               }
            return $rez;
        }
        
        // flush one file in cache
         function flushcache($f, $debug=false)
        {
            if (!@unlink($f)) {
                   if ($debug) ADOConnection::outp( "flushcache: failed for $f");
            }
        }
        
         function getdirname($hash)
        {
        global $ADODB_CACHE_DIR;
            if (!isset($this->notSafeMode)) $this->notSafeMode = !ini_get('safe_mode');
            return ($this->notSafeMode) ? $ADODB_CACHE_DIR.'/'.substr($hash,0,2) : $ADODB_CACHE_DIR;
        }
        
        // create temp directories
         function createdir($hash, $debug)
        {
            $dir = $this->getdirname($hash);
            if ($this->notSafeMode && !file_exists($dir)) {
                $oldu = umask(0);
                if (!@mkdir($dir,0771)) if(!is_dir($dir) && $debug) ADOConnection::outp("Cannot create $dir");
                umask($oldu);
            }
        
            return $dir;
        }


Additional InformationI changed the rights to public
TagsNo tags attached.
Database (MySQL,Postgres,etc)libmysql - mysqlnd 5.0.12-dev - 20150407
BrowserPHP/7.0.9
PHP Version
TestCaseID
QA Team - Task Workflow Status
Attached Files

- Relationships

-  Notes
(0025571)
DierickxD71 (reporter)
2016-11-16 10:23

If there are issues with third_party plugins (that should have been your first guess), then please first check the website of that plugin.

Concerning PHP 7 support, you can read this on their website: http://adodb.org/dokuwiki/doku.php?id=v5:php7_status [^]

I suggest either downgrading your PHP installation (the easy way), or checking out all the individual hotfixes available via adodb.org (the hard way).
(0025580)
fman (administrator)
2016-11-17 12:33

thanks to DierickxD71 for helping

- Issue History
Date Modified Username Field Change
2016-11-12 22:06 meknassy New Issue
2016-11-16 10:23 DierickxD71 Note Added: 0025571
2016-11-17 12:33 fman Note Added: 0025580



Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker