File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 5
5
This version of the PHP driver is compatible with PHP versions 7.4 and 8.0.
6
6
Older versions of PHP are not supported.
7
7
8
+ It is recommended to install the ` php-intl ` module so the PHP driver can access
9
+ the ` Normalizer ` class of that module. This is needed to create databases with
10
+ the extended database naming convention that can be enabled in ArangoDB 3.9.
11
+
8
12
This version of the PHP driver removes the following functionality, which was deprecated
9
13
in a previous release and is not available in ArangoDB 3.9 anymore:
10
14
Original file line number Diff line number Diff line change @@ -58,6 +58,14 @@ class Database
58
58
*/
59
59
public static function create (Connection $ connection , $ name , array $ options = [])
60
60
{
61
+ try {
62
+ // NFC-normalize the database name, as this is required
63
+ // by the server
64
+ $ name = \Normalizer::normalize ($ name , \Normalizer::FORM_C );
65
+ } catch (\Exception $ e ) {
66
+ // don't fail if Unicode normalization doesn't work.
67
+ // probably it is not installed.
68
+ }
61
69
$ payload = [
62
70
self ::ENTRY_DATABASE_NAME => $ name ,
63
71
self ::ENTRY_DATABASE_USERS => [
You can’t perform that action at this time.
0 commit comments