Skip to content

Commit

Permalink
Merge pull request #78 from mjrider/release-prep-93
Browse files Browse the repository at this point in the history
Release prep 9.3
  • Loading branch information
mjrider committed Dec 4, 2015
2 parents b6dbeeb + 1f42327 commit 323036d
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 34 deletions.
26 changes: 26 additions & 0 deletions docs/CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
========================
Changes Ariadne 9.3
========================
This release is mainly targeted on bug fixes and performance improvements

Bug fixes
- fix various issues in cache validity calculation
- bug fixes in the workspace store
- fixes mod_captcha gd detection
- specify MySQL database engine instead of letting MySQL pick one
- on store upgrade, also add/modify indexes
- windows compatibility in the default settings for ariadne
- offset calculations in the backend when there is a scroll offset
- pinp parser bug

performance improvements:
- speed up password check for the user public by hardcoding the result
- make find work with large result sets, switch export to use this new behaviour
- specify MySQL database engine instead of letting MySQL decide

========================
Changes Ariadne 9.2
========================

- fix for call_super and ar::callSuper()

========================
Changes Ariadne 9.1
========================
Expand Down
8 changes: 4 additions & 4 deletions lib/modules/mod_filestore.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -440,18 +440,18 @@
public function make_path($id, $name="", $write=false) {
// calculate path based on $id and $name
$path=$this->root;
if (!file_exists($path) && $write) {
if ($write && !file_exists($path) ) {
@mkdir($path, DIRMODE); // Supress error, can trigger with race condition.
}
while ($id) {
$next=floor($id/PATHTICLESIZE);
$part=$id%PATHTICLESIZE;
$path.="/$part";
if (!file_exists($path) && $write) {
@mkdir($path, DIRMODE); // Supress error, can trigger with race condition.
}
$id=$next;
}
if ($write && !file_exists($path)) {
@mkdir($path, DIRMODE, true); // Supress error, can trigger with race condition.
}
$path.="/";
if ($name) {
$path.="_$name";
Expand Down
1 change: 1 addition & 0 deletions lib/modules/mod_wkhtmltopdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public function setOption($name, $value = null) {
case 'ignore-load-errors':
case 'lowquality':
case 'no-background':
case 'print-media-type':
$this->options[ $name ] = true;
break;
case 'copies':
Expand Down
21 changes: 4 additions & 17 deletions lib/stores/axstore.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,8 @@ class axstore {
$this->ofile=fopen($this->tempdir."/objects.data", "rb");
if ($this->ofile) {
$currentoffset=ftell($this->ofile);
while ($rline=fgets($this->ofile, 8192)) {
while ($rline=fgets($this->ofile)) {
$line=trim($rline);
while (strlen($rline)==8192-1) {
$rline=fgets($this->ofile, 8192);
$line.=trim($rline);
}
$data=explode("&", $line);
if (sizeof($data)>=7) {
$class = $data[1];
Expand Down Expand Up @@ -110,7 +106,7 @@ class axstore {
// read nodes data
$fp_nodes=fopen($this->tempdir."/nodes.data", "rb");
if ($fp_nodes) {
while ($data=fgets($fp_nodes, 3000)) {
while ($data=fgets($fp_nodes)) {
$data=explode("&", $data);
$node=new object;
$node->path=$data[0];
Expand Down Expand Up @@ -731,11 +727,7 @@ class axstore {
function _load_object_data($object) {
if ($object && !$object->data) {
fseek($object->storage->fp, $object->storage->offset);
$rline=fgets($object->storage->fp, 3000);
while (strlen($rline)==3000-1) {
$line.=$rline;
$rline=fgets($object->storage->fp, 3000);
}
$rline=fgets($object->storage->fp);
$line.=$rline;

if ($line && sizeof($fdata=explode("&", $line))) {
Expand Down Expand Up @@ -792,13 +784,8 @@ class axstore {
while (list($path, $node)=each($this->nodes)) {
if (!$node->object->written_to_file) {
fseek($node->object->storage->fp, $node->object->storage->offset);
$temp_line=fgets($node->object->storage->fp, 3000);
$temp_line=fgets($node->object->storage->fp);
$object_line=trim($temp_line);
while (strlen($temp_line)==3000-1) {
$temp_line=fgets($node->object->storage->fp, 3000);
$object_line.=trim($temp_line);
}

$object_line.="\n";

$node->object->written_to_file=true;
Expand Down
4 changes: 2 additions & 2 deletions lib/version.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
$ARversion = array();
$ARversion['version'] = '9.1';
$ARversion['date'] = strtotime('2015-09-01');
$ARversion['version'] = '9.3';
$ARversion['date'] = strtotime('2015-12-04');
$ARversion['year'] = strftime('%G', $ARversion['date']);
Binary file modified www/install/packages/lib.ax
Binary file not shown.
3 changes: 1 addition & 2 deletions www/install/upgrade/all/upgrade.templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ function recompile($path) {
if ($compiler->error) {
showCompilerError($compiler, $path.$file);
} else {
$templateStore->write($pinp_code_compiled_new,$objectID,$templateName);
$templateCode = $templateStore->templateCodeFunction($objectID, $templateName);
$templateCode = $templateStore->templateCodeFunction($pinp_code_compiled_new);
$optimized = '<?php $arTemplateFunction = function(&$AR_this) { '.$templateCode.' }; ?>';
$templateStore->write($optimized, $objectID, $templateName.".inc");
}
Expand Down
22 changes: 13 additions & 9 deletions www/install/upgrade/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,30 +208,34 @@
"newversion" => "9.0"
));
case '9.0-rc2.1':
array_push($todo, array(
"description" => "Bumping revision to 9.0",
"operation" => "all/dummy.php",
"newversion" => "9.0"
));
case '9.0':
array_push($todo, array(
"description" => "Updating properties with scope, adding new properties",
"operation" => "9.1/upgrade.database.php",
"newversion" => "9.1-rc1.1"
));
case '9.1-rc1.1':
case '9.1-rc1.2':
case '9.1':
case '9.2':
array_push($todo, array(
"description" => "Updating properties, adding new properties",
"operation" => "9.1/upgrade.database.php",
"newversion" => "9.3-rc1"
));
case '9.3-rc1':
array_push($todo, array(
"description" => "Update libraries for muze and vedor",
"operation" => "all/upgrade.muze.libs.php",
"newversion" => "9.2"
"newversion" => "9.3"
));
case '9.1-rc1.2':
case '9.1':
/* for future use
array_push($todo, array(
"description" => "Bumping revision to 9.2",
"operation" => "all/dummy.php",
"newversion" => "9.2"
));
));
*/

}

Expand Down

0 comments on commit 323036d

Please sign in to comment.