Go to file
Dylan Wagstaff 8c3ba81052
FIX PHP 8.1 support in MySQLiConnector::query errors (#10570)
* FIX PHP 8.1 support in MySQLiConnector::query errors

The default error reporting mode in PHP 8.1 has changed from using
errors reported on the connection handle to throwing
mysqli_sql_exception. query() makes no allowance for this, and
functions up the call stack expect to catch
Silverstripe\ORM\Connect\DatabaseException instead - resulting in the
MySQLi exception going all the way up to halt the system.

We can use a try, catch, and finally to retain backwards compatibility,
no matter which setting (e.g. PHP version default) someone has enabled.

* Move MySQLConnector test skip call into setUp()

As review feedback; marking the test as skipped in a private function
obfuscated where the call was happening and made it harder to skimread
the tests. Moving this into a setUp function makes it obvious the check
is run before each test case, and skipped if necessary.
2023-07-07 15:56:31 +12:00
_config API Stop using deprecated API 2022-11-15 18:20:54 +13:00
.github Fix translation key for DataObject.GENERALSEARCH (#10805) 2023-06-09 13:44:00 +12:00
.tx ENH Update translations 2023-03-06 18:17:45 +13:00
client NEW: Improved task runner UI. (#9540) 2020-08-26 11:11:13 +12:00
lang ENH Update translations 2023-06-14 18:38:19 +12:00
src FIX PHP 8.1 support in MySQLiConnector::query errors (#10570) 2023-07-07 15:56:31 +12:00
templates API Stop using deprecated API 2022-11-15 18:20:54 +13:00
tests FIX PHP 8.1 support in MySQLiConnector::query errors (#10570) 2023-07-07 15:56:31 +12:00
thirdparty API Throw deprecation warnings for bad configuration (#10702) 2023-03-01 11:36:08 +13:00
_config.php API Stop using deprecated API 2022-11-15 18:20:54 +13:00
_register_database.php Use short array syntax across the framework's codebase 2020-05-16 10:34:45 +01:00
.editorconfig Update composer.json 2017-10-12 11:53:12 +13:00
.gitattributes MNT Move docs to new repository (#10394) 2022-07-12 12:46:13 +12:00
.gitignore Ignore assets dir that can be created on dev/build 2018-09-29 22:52:08 +01:00
.upgrade.yml Merge tag '4.6.0' into 4.6 2020-07-13 12:26:06 +12:00
cli-script.php NEW NullDatabase (#10016) 2022-02-04 10:07:27 +13:00
composer.json DEP Explicitly require psr/http-message ^1 2023-05-24 12:26:48 +12:00
CONTRIBUTING.md MNT Move docs to new repository (#10394) 2022-07-12 12:46:13 +12:00
LICENSE Create licence file so that GitHub (and humans) can more easily find it 2018-02-12 11:21:03 +00:00
phpcs.xml.dist MNT Travis shared config 2020-12-22 11:43:54 +13:00
phpunit.xml.dist API Upgrade SapphireTest to work with phpunit 9 (#10028) 2021-10-27 15:39:47 +13:00
README.md Update README.md 2022-10-07 16:08:20 +13:00
sake Add check for existence of 'which' command before proceeding with the script 2019-11-26 11:24:44 +00:00
silverstripe_version API CHANGE silverstripe_version file now contains the plain version number, rather than an SVN path 2012-02-01 18:42:21 +01:00
SUPPORT.md MNT Move docs to new repository (#10394) 2022-07-12 12:46:13 +12:00

Silverstripe Framework

CI Silverstripe supported module

PHP framework forming the base for the Silverstripe CMS (https://silverstripe.org). Requires a silverstripe-installer base project. Typically used alongside the cms module.

Installation

See getting started, for instructions on how to start the installation process.

Bugtracker

Bugs are tracked on github.com. Please read our issue reporting guidelines.

Development and Contribution

If you would like to make changes to the Silverstripe core codebase, we have an extensive guide to contributing code.

Attribution