SOAP tests: fix issue with testProjectAttachmentIsAdded()

The assertions for the project attachments are incorrect, as the rely on
there being no existing files, consequently the test fails if there are
any existing documents attached.

Added messages on assertions to facilitate troubleshooting.
Fix errors in mc_file_add()

SYSTEM NOTICE errors were detected by phpunit tests.
Remove calls to deprecated functions db_prepare* in "Docs" update page

Those calls cause the strings to be escaped twice : by db_prepare* and
then by db_query_bound, which leads to backslashes apparing in the
database.

All c_ prefixed variables have been removed as well, as there is no need
anymore for SQL cleaned variables.

Fixes #14541

Signed-off-by: Damien Regad <damien.regad@merckgroup.com>
UserTest: preferences should compare against default value

Previously the test was comparing the retrieved user preference
'bugnote_order' with a hardcoded value, so the test would fail if the
config_inc settings were different.

Fixes #16204
IssueHistoryTest: Fix Whitespace
IssueHistoryTest: use MantisBT constants
IssueHistoryTest: fix failure when using descending order

Tests would incorrectly be marked as failure when $g_history_order is
set to DESC, as the cases assume the default of ASC.

Fixes #16205
IssueHistoryTest: fix random failure with simultaneous entries

This happens when history entries are created in rapid sequence (i.e.
within the same second), and the RDBMS then returns the records in
random order. Since the tests rely on a fixed order of the entries, this
occasionally causes failures.

Fixes #16203
Tests: move include of constant_inc.php to SoapBase.php
Remove useless variable initialization

Follow up fix on commit ec5397514cd2e96eb8dfba4b9940ab8c0cde1d49
Fix #16187: error caused by array_combine() with PHP<5.4

array_combine() function behavior was changed in PHP 5.4 [1]; in earlier
versions it would issue a warning and return false when working with
empty arrays, which then causes Mantis to trigger an application error.

This is a regression introduced by cc7703acc8d05f253d52a152a7d8cd0c1c43815d

[1] http://php.net/function.array-combine.php
Fix #16158: mc_filter_get_issues does not populate monitors fiels for
retrieved issues
soap api: make sure we have a compatible soap extension installed

Even though the soap extension is installed, versions of PHP older than
5.2.2 do not support all the features we need. To guard against
unexpected errors, we now enable the soap extension if the
SOAP_USE_XSI_ARRAY_TYPE constant is defined. This constant is used at
runtime by the SOAP extension and is a good indicator of a recent enough
soap extension.

Fixes #16252: API SOAP provides no answer after MantisBT upgrade
Merge branch 'adodb-upg-master' into 13x
Remove library/adodb
ADOdb library is now a git submodule

A new 'mantis-1.3' branch was created from upstream's master, which is
currently just before release of V5.19, and will be used to track
MantisBT-specific changes for 1.3.x.

Fixes #14458
Remove library/phpmailer
PHPMailer library is now a git submodule

A new 'mantis' branch was created from upstream's v5.2.6 tag, which will
be used to track MantisBT-specific changes to the library.

Fixes #14458
Revised README.libs after adding git submodules
Doc: updated URL to git web site