mynamesnot@marrickville:~/eclipse-workspace/xoopscore.localhost$ php ~/composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
Endroid Installer did not detect a compatible project type
mynamesnot@marrickville:~/eclipse-workspace/xoopscore.localhost/xoops_lib$ php composer.phar install
No composer.json in current directory, do you want to use the one at /home/mynamesnot/eclipse-workspace/xoopscore.localhost? [Y,n]? Y
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
Endroid Installer did not detect a compatible project type
Fatal error: Uncaught Error: Class 'Doctrine\DBAL\Configuration' not found in /home/mynamesnot/eclipse-workspace/xoopscore.localhost/htdocs/install/include/functions.php:318 Stack trace: #0 /home/mynamesnot/eclipse-workspace/xoopscore.localhost/htdocs/install/page_dbconnection.php(95): getDbConnection('') #1 {main} thrown in /home/mynamesnot/eclipse-workspace/xoopscore.localhost/htdocs/install/include/functions.php on line 318
if (!function_exists("getURIData")) {
/* function getURIData()
*
* Get a supporting domain system for the API
* @author Simon Roberts (Chronolabs) simon@labs.coop
*
* @return float()
*/
function getURIData($uri = '', $timeout = 25, $connectout = 25, $post = array(), $headers = array())
{
if (!function_exists("curl_init"))
{
die("Install PHP Curl Extension ie: $ sudo apt-get install php-curl -y");
}
$GLOBALS['php-curl'][md5($uri)] = array();
if (!$btt = curl_init($uri)) {
return false;
}
if (count($post)==0 || empty($post))
curl_setopt($btt, CURLOPT_POST, false);
else {
$uploadfile = false;
foreach($post as $field => $value)
if (substr($value , 0, 1) == '@' && file_exists(substr($value , 1)))
$uploadfile = true;
curl_setopt($btt, CURLOPT_POST, true);
curl_setopt($btt, CURLOPT_POSTFIELDS, http_build_query($post));
if (!empty($headers))
foreach($headers as $key => $value)
if ($uploadfile==true && substr($value, 0, strlen('Content-Type:')) == 'Content-Type:')
unset($headers[$key]);
if ($uploadfile==true)
$headers[] = 'Content-Type: multipart/form-data';
}
if (count($headers)==0 || empty($headers))
curl_setopt($btt, CURLOPT_HEADER, false);
else {
curl_setopt($btt, CURLOPT_HEADER, true);
curl_setopt($btt, CURLOPT_HTTPHEADER, $headers);
}
curl_setopt($btt, CURLOPT_CONNECTTIMEOUT, $connectout);
curl_setopt($btt, CURLOPT_TIMEOUT, $timeout);
curl_setopt($btt, CURLOPT_RETURNTRANSFER, true);
curl_setopt($btt, CURLOPT_VERBOSE, false);
curl_setopt($btt, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($btt, CURLOPT_SSL_VERIFYPEER, false);
$data = curl_exec($btt);
$GLOBALS['php-curl'][md5($uri)]['http']['posts'] = $post;
$GLOBALS['php-curl'][md5($uri)]['http']['headers'] = $headers;
$GLOBALS['php-curl'][md5($uri)]['http']['code'] = curl_getinfo($btt, CURLINFO_HTTP_CODE);
$GLOBALS['php-curl'][md5($uri)]['header']['size'] = curl_getinfo($btt, CURLINFO_HEADER_SIZE);
$GLOBALS['php-curl'][md5($uri)]['header']['value'] = curl_getinfo($btt, CURLINFO_HEADER_OUT);
$GLOBALS['php-curl'][md5($uri)]['size']['download'] = curl_getinfo($btt, CURLINFO_SIZE_DOWNLOAD);
$GLOBALS['php-curl'][md5($uri)]['size']['upload'] = curl_getinfo($btt, CURLINFO_SIZE_UPLOAD);
$GLOBALS['php-curl'][md5($uri)]['content']['length']['download'] = curl_getinfo($btt, CURLINFO_CONTENT_LENGTH_DOWNLOAD);
$GLOBALS['php-curl'][md5($uri)]['content']['length']['upload'] = curl_getinfo($btt, CURLINFO_CONTENT_LENGTH_UPLOAD);
$GLOBALS['php-curl'][md5($uri)]['content']['type'] = curl_getinfo($btt, CURLINFO_CONTENT_TYPE);
curl_close($btt);
return $data;
}
}
if (count($headers)==0 || empty($headers))
curl_setopt($btt, CURLOPT_HEADER, false);
else {
curl_setopt($btt, CURLOPT_HEADER, true);
curl_setopt($btt, CURLOPT_HTTPHEADER, $headers);
}
/**
* Class Upgrade_2014
*/
if (!class_exists('Upgrade_MySQL_InnoDB')) {
class Upgrade_MySQL_InnoDB extends XoopsUpgrade
{
public function isApplied()
{
$applied = true;
$result = $GLOBALS['xoopsDB']->queryF('SHOW TABLES IN `' . XOOPS_DB_NAME . '` WHERE `Tables_in_' . XOOPS_DB_NAME . '` LIKE "' . XOOPS_DB_PREFIX . '%"');
while($table = $GLOBALS['xoopsDB']->fetchArray($result))
{
$createtbl = $GLOBALS['xoopsDB']->queryF('SHOW CREATE TABLE `' . $table['Tables_in_' . XOOPS_DB_NAME] . '`');
list($tbl, $create) = $GLOBALS['xoopsDB']->fetchRow($createtbl);
if (strpos(strtolower($create),'myisam'))
$applied = false;
}
return $applied;
}
public function apply()
{
$applied = true;
$result = $GLOBALS['xoopsDB']->queryF('SHOW TABLES IN `' . XOOPS_DB_NAME . '` WHERE `Tables_in_' . XOOPS_DB_NAME . '` LIKE "' . XOOPS_DB_PREFIX . '%"');
while($table = $GLOBALS['xoopsDB']->fetchArray($result))
{
$createtbl = $GLOBALS['xoopsDB']->queryF('SHOW CREATE TABLE `' . $table['Tables_in_' . XOOPS_DB_NAME] . '`');
list($tbl, $create) = $GLOBALS['xoopsDB']->fetchRow($createtbl);
if (strpos(strtolower($create),'myisam'))
{
if ($GLOBALS['xoopsDB']->queryF('RENAME TABLE `' . $tbl . '` to `old_' . $tbl . '`'))
{
if ($GLOBALS['xoopsDB']->queryF(str_replace('MyISAM', 'InnoDB', $create)))
{
$fields = array();
$fldsresult = $GLOBALS['xoopsDB']->queryF('SHOW FIELDS IN `' . $tbl . '`');
while($fldsrow = $GLOBALS['xoopsDB']->fetchArray($fldsresult))
$fields[] = $fldsrow['Field'];
$GLOBALS['xoopsDB']->queryF('START TRANSACTION');
if ($GLOBALS['xoopsDB']->queryF(die('INSERT INTO `' . $tbl . '` (`' . implode('`, `', $fields) . '`) SELECT `' . implode('`, `', $fields) .' FROM `old_' . $tbl . '`')))
$GLOBALS['xoopsDB']->queryF('DROP TABLE `old_' . $tbl . '`');
$GLOBALS['xoopsDB']->queryF('COMMIT');
} else {
$GLOBALS['xoopsDB']->queryF('RENAME TABLE `old_' . $tbl . '` to `' . $tbl . '`');
}
}
}
}
}
public function __construct()
{
parent::__construct(basename(__DIR__));
$this->task = array('database');
}
}
}
$upg = new Upgrade_MySQL_InnoDB();
return $upg;