Compare commits

...

3 Commits

Author SHA1 Message Date
Clemens Schwaighofer
d9d5400498 Add Test for get run times for unrun queryies 2022-12-28 11:31:39 +09:00
Clemens Schwaighofer
b1be681afb Bug fix in DB\IO for wrong array check
Did not use empty to check if query called hash entry exists
2022-12-28 11:26:56 +09:00
Clemens Schwaighofer
8ef309d479 PHP unit 8.2, cel builder br/input fix, doctype add, sync .user.ini
- do not sync .user.ini file in sync template
- add PHP 8.2 for test target phpunit
- cel/phfo builder update to not close br or img tags (besides input)
- psalm settings update
- add doctype to all base templates
2022-12-27 16:58:51 +09:00
9 changed files with 20 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ if [ ! -z "${1}" ]; then
"7.4") php_bin="/usr/bin/php7.4 "; ;;
"8.0") php_bin="/usr/bin/php8.0 "; ;;
"8.1") php_bin="/usr/bin/php8.1 "; ;;
"8.2") php_bin="/usr/bin/php8.2 "; ;;
*) echo "Not support PHP: ${1}"; exit; ;;
esac;
fi;
@@ -25,6 +26,7 @@ if [ ! -z "${2}" ] && [ -z "${php_bin}" ]; then
"7.4") php_bin="/usr/bin/php7.4 "; ;;
"8.0") php_bin="/usr/bin/php8.0 "; ;;
"8.1") php_bin="/usr/bin/php8.1 "; ;;
"8.2") php_bin="/usr/bin/php8.2 "; ;;
*) echo "Not support PHP: ${1}"; exit; ;;
esac;
fi;

View File

@@ -18,6 +18,7 @@ rm -f $tmpf_web;
echo ".*.swp" >> $tmpf_web;
echo "._*" >> $tmpf_web;
echo ".DS_Store" >> $tmpf_web;
echo ".user.ini" >> $tmpf_web;
echo ".svn" >> $tmpf_web;
echo ".svnignore" >> $tmpf_web;
echo ".git" >> $tmpf_web;

View File

@@ -1576,6 +1576,13 @@ final class CoreLibsDBIOTest extends TestCase
// clear any current query
// $db->dbResetQuery();
// assert never called query is 0
$this->assertEquals(
0,
$db->dbGetQueryCalled($query),
'Assert never called query is null'
);
// if expected result is not a bool
// for PHP 8.1 or higher it has to be an object
// for anything before PHP 8.1 this has to be a resource

View File

@@ -8,6 +8,7 @@
********************************************************************
*}
<!doctype html>
<html>
<head>
<title>{$HTML_TITLE}</title>

View File

@@ -8,6 +8,7 @@
********************************************************************
*}
<!doctype html>
<html>
<head>
<title>{$HTML_TITLE}</title>

View File

@@ -8,6 +8,7 @@
********************************************************************
*}
<!doctype html>
<html>
<head>
<title>{$HTML_TITLE}</title>

View File

@@ -1014,8 +1014,12 @@ function phfo(tree)
} else if (tree.content) {
content.push(tree.content);
}
// if not input close
if (tree.tag != 'input') {
// if not input, image or br, then close
if (
tree.tag != 'input' ||
tree.tag != 'img' ||
tree.tag != 'br'
) {
content.push('</' + tree.tag + '>');
}
// combine to string

View File

@@ -2206,7 +2206,7 @@ class IO
public function dbGetQueryCalled(string $query): int
{
$query_hash = $this->dbGetQueryHash($query);
if ($this->query_called[$query_hash]) {
if (!empty($this->query_called[$query_hash])) {
return $this->query_called[$query_hash];
} else {
return 0;

View File

@@ -28,7 +28,6 @@
<directory name="lib/FileUpload" />
<directory name="lib/Smarty" />
<directory name="lib/smarty-4.1.0" />
<file name="lib/smarty-4.1.0/SmartyBC.class.php" />
<file name="lib/Smarty/Smarty.class.php" />
<file name="lib/CoreLibs/Template/SmartyExtend.php" />
</ignoreFiles>