Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop php 7.3 support #130

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"issues": "https://github.com/sifophp/SIFO/issues"
},
"require": {
"php": ">=7.2",
"php": "^7.4",
"geoip/geoip": "^1.17",
"neutron/sphinxsearch-api": "^2.0",
"phpmailer/phpmailer": "^6.0",
Expand All @@ -34,7 +34,10 @@
},
"require-dev": {
"phpcompatibility/php-compatibility": "^9.3",
"phpstan/phpstan": "^1.3",
"phpunit/phpunit": "^5.0",
"predis/predis": "^1.1",
"rector/rector": "^0.12.9",
"symfony/var-dumper": "^3.2"
},
"scripts": {
Expand Down
55 changes: 55 additions & 0 deletions constants.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php

define('ROOT_PATH', __DIR__);
define('ADODB_DIR', __DIR__ . '/src/adodb5');
define('ADODB_BAD_RS', '<p>Bad $rs in %s. Connection or SQL invalid. Try using $connection->debug=true;</p>');
define('ADODB_FETCH_NUM', 1);
define('ADODB_FETCH_ASSOC', 2);
define('ADODB_FETCH_BOTH', 3);
define('ADODB_FETCH_DEFAULT', 0);
define('ADODB_OPT_HIGH', 2);
define('ADODB_OPT_LOW', 1);
define('ADODB_ASSOC_CASE',0);
define('ADODB_PHPVER',74000);
define('ADODB_EXTENSION', '.php');
define('ADODB_TABLE_REGEX','([]0-9a-z_\:\"\`\.\@\[-]*)');


define('PEAR_ERROR_RETURN', 1);
define('SMARTY_RESOURCE_CHAR_SET', 'utf-8');

define('IFX_SCROLL',1);

define('TIMESTAMP_FIRST_YEAR',0);

define("DB_ERROR", -1);
define("DB_ERROR_SYNTAX", -2);
define("DB_ERROR_CONSTRAINT", -3);
define("DB_ERROR_NOT_FOUND", -4);
define("DB_ERROR_ALREADY_EXISTS", -5);
define("DB_ERROR_UNSUPPORTED", -6);
define("DB_ERROR_MISMATCH", -7);
define("DB_ERROR_INVALID", -8);
define("DB_ERROR_NOT_CAPABLE", -9);
define("DB_ERROR_TRUNCATED", -10);
define("DB_ERROR_INVALID_NUMBER", -11);
define("DB_ERROR_INVALID_DATE", -12);
define("DB_ERROR_DIVZERO", -13);
define("DB_ERROR_NODBSELECTED", -14);
define("DB_ERROR_CANNOT_CREATE", -15);
define("DB_ERROR_CANNOT_DELETE", -16);
define("DB_ERROR_CANNOT_DROP", -17);
define("DB_ERROR_NOSUCHTABLE", -18);
define("DB_ERROR_NOSUCHFIELD", -19);
define("DB_ERROR_NEED_MORE_DATA", -20);
define("DB_ERROR_NOT_LOCKED", -21);
define("DB_ERROR_VALUE_COUNT_ON_ROW", -22);
define("DB_ERROR_INVALID_DSN", -23);
define("DB_ERROR_CONNECT_FAILED", -24);
define("DB_ERROR_EXTENSION_NOT_FOUND", -25);
define("DB_ERROR_NOSUCHDB", -30);
define("DB_ERROR_ACCESS_VIOLATION", -26);
define("DB_ERROR_DEADLOCK", -27);
define("DB_ERROR_STATEMENT_TIMEOUT", -28);
define("DB_ERROR_SERIALIZATION_FAILURE", -29);
define('DB_FETCHMODE_ASSOC', 2);
3 changes: 3 additions & 0 deletions instances/default/config/configuration_files.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

include ROOT_PATH . '/vendor/sifophp/sifo-common-instance/config/configuration_files.config.php';
4 changes: 2 additions & 2 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Pheature coding standard">
<description>Pheature coding standard</description>
<ruleset name="SifoPHP coding standard">
<description>SifoPHP coding standard</description>

<!-- display progress -->
<arg value="p"/>
Expand Down
Loading