Branch | Commit message | Author | Age |
backport/50503/stable30 | fix(theming): Bump app version | Ferdinand Thiessen | 6 hours |
backport/50503/stable31 | fix(theming): Do not throw in background color migration | Ferdinand Thiessen | 6 hours |
master | Merge pull request #50503 from nextcloud/fix/theming-migration | Ferdinand Thiessen | 6 hours |
stable30 | Merge pull request #50539 from nextcloud/chore/phpseclib-30 | Ferdinand Thiessen | 6 hours |
chore/phpseclib-30 | chore(deps): Bump phpseclib/phpseclib from 2.0.47 to 2.0.48 | Ferdinand Thiessen | 7 hours |
perf/check-node-type | chore(assets): Recompile assets | nextcloud-command | 7 hours |
fix/30-oc-files | fixup! | Ferdinand Thiessen | 8 hours |
feat/workflow-auto-update-npm-audit-fix.yml | chore(CI): Updating npm-audit-fix.yml workflow from template | Nextcloud bot | 9 hours |
fix/noid/fix-unified-search-provider-id | fix: unified search provider id | SebastianKrupinski | 9 hours |
backport/50284/stable31 | chore: update icewind/smb to 3.7.0 | Robin Appelman | 10 hours |
backport/50129/stable31 | chore(assets): Recompile assets | nextcloud-command | 10 hours |
stable31 | Merge pull request #50537 from nextcloud/backport/50515/stable31 | Andy Scherzinger | 10 hours |
stable29 | Merge pull request #50545 from nextcloud/backport/50514/stable29 | Andy Scherzinger | 11 hours |
backport/50514/stable31 | fix(s3): treat empty sse_c_key as not set | Richard Steinmetz | 13 hours |
backport/50514/stable30 | fix(s3): treat empty sse_c_key as not set | Richard Steinmetz | 13 hours |
backport/50514/stable29 | fix(s3): treat empty sse_c_key as not set | Richard Steinmetz | 13 hours |
stable28 | Merge pull request #50521 from nextcloud/backport/50299/stable28 | Andy Scherzinger | 13 hours |
fix/50512/send-password-2-owner | WIP test(share_by_mail): Send password to owner if `send_by_mail` is disabled | nfebe | 13 hours |
artonge/fix/access_list_unaccepted_shares | fix: Exclude non accepted shares when computing access list | Louis Chemineau | 14 hours |
dependabot/composer/symfony/stable29 | build(deps): Bump symfony/* to latest 5.4 | Joas Schilling | 14 hours |
backport/50129/stable30 | fix(unified-search): Prevent multiple file picker triggers in in-folder search | nfebe | 14 hours |
fix-sharing-expiration-notify | fix(files_sharing): skip expiration notify for invalid share record | Luka Trovic | 16 hours |
backport/49004/stable29 | fix: Replace the TypeError to prevent exposing the installation path | Daniel Kesselberg | 16 hours |
fix/theming-migration | fix(theming): Do not throw in background color migration | Ferdinand Thiessen | 16 hours |
fix/show-templates-folder-default | fix: Only hide template folder creation if default was changed to empty | Julius Knorr | 16 hours |
dependabot/npm_and_yarn/testing-library/jest-dom-6.6.3 | chore(deps-dev): bump @testing-library/jest-dom from 6.5.0 to 6.6.3 | dependabot[bot] | 16 hours |
dependabot/npm_and_yarn/zip.js/zip.js-2.7.54 | chore(deps-dev): bump @zip.js/zip.js from 2.7.53 to 2.7.54 | dependabot[bot] | 16 hours |
release/31.0.0_rc2 | build(hub): 31.0.0 RC2 | Arthur Schiwon | 16 hours |
backport/50515/stable31 | fix: Show recipient email addresses in share owner notification email | nfebe | 17 hours |
backport/50501/stable31 | chore(assets): Recompile assets | nextcloud-command | 17 hours |
backport/50515/stable30 | fix: Show recipient email addresses in share owner notification email | nfebe | 17 hours |
backport/50515/stable29 | fix: Show recipient email addresses in share owner notification email | nfebe | 17 hours |
dependabot/npm_and_yarn/stable29/nextcloud/vue-8.17.1 | chore: Update HTML snapshot | Ferdinand Thiessen | 17 hours |
fix/contactsmenu/padding | fix(contactsmenu): adjust padding to new design | Richard Steinmetz | 18 hours |
fix/load-more-than-5-items-in-folder-filter | fix(unified-search): Prevent multiple file picker triggers in in-folder search | nfebe | 19 hours |
fix/show-share-recipient-in-mail | fix: Show recipient email addresses in share owner notification email | nfebe | 19 hours |
dependabot/composer/stable30/mlocati/ip-lib-1.18.1 | build(deps): Bump mlocati/ip-lib from 1.18.0 to 1.18.1 | Joas Schilling | 19 hours |
fix/convert-type | fix(ConvertType): Read hostname from arguments and not options | provokateurin | 19 hours |
backport/50494/stable31 | fix(performance): use low resolution for blurhash | Max | 20 hours |
backport/50494/stable30 | fix(performance): use low resolution for blurhash | Max | 20 hours |
checkValidEncoding | refactor(encoding): Check if strings are valid for the specified encoding | Git'Fellow | 20 hours |
backport/50437/stable29 | fix(files): Do not array access null value | Ferdinand Thiessen | 20 hours |
fix/destination-drop-check | fix(files_sharing): file request form validity check reset | skjnldsv | 20 hours |
backport/50299/stable30 | fix(files_versions): Update `unencrypted_size` during rollback | Louis Chemineau | 21 hours |
backport/50299/stable29 | fix(files_versions): Update `unencrypted_size` during rollback | Louis Chemineau | 21 hours |
backport/50299/stable28 | fix(files_versions): Update `unencrypted_size` during rollback | Louis Chemineau | 21 hours |
backport/50299/stable31 | fix(files_versions): Update `unencrypted_size` during rollback | Louis Chemineau | 21 hours |
artonge/fix/color_debounce | chore(assets): Recompile assets | nextcloud-command | 21 hours |
backport/50220/stable30 | chore(assets): Recompile assets | nextcloud-command | 21 hours |
fix/files-header-submenu | chore: compile assets | skjnldsv | 21 hours |
backport/50398/stable29 | fix: Correctly return app id and app version for `core` styles and images | Ferdinand Thiessen | 22 hours |
backport/50398/stable30 | fix(TemplateLayout): `core` is not an app but the server itself | Ferdinand Thiessen | 23 hours |
dependabot/npm_and_yarn/stable30/types/dockerode-3.3.34 | chore(deps-dev): bump @types/dockerode from 3.3.33 to 3.3.34 | dependabot[bot] | 32 hours |
backport/50494/stable29 | fix(performance): use low resolution for blurhash | Max | 32 hours |
feat/s3/sse-c | fix(s3): treat empty sse_c_key as not set | Richard Steinmetz | 32 hours |
backport/49259/stable30 | chore(assets): Recompile assets | nextcloud-command | 34 hours |
backport/50490/stable31 | fix(CalDav): Spelling | SebastianKrupinski | 35 hours |
fix/encoding-wrapper-scanner-stable30 | fix(files): Do not array access null value | Ferdinand Thiessen | 35 hours |
backport/50490/stable30 | fix(CalDav): Spelling | SebastianKrupinski | 35 hours |
backport/50436/stable31 | fix: Harden files scanner for invalid null access | Ferdinand Thiessen | 35 hours |
backport/49552/stable31 | fix: explicitly ignore nested mounts when transfering ownership | Robin Appelman | 37 hours |
backport/50270/stable30 | test: Reset sharing app config after test | Ferdinand Thiessen | 37 hours |
backport/50270/stable31 | test: Reset sharing app config after test | Ferdinand Thiessen | 37 hours |
backport/50270/stable29 | test: Reset sharing app config after test | Ferdinand Thiessen | 37 hours |
fix/share-api-create--permissions | test: Reset sharing app config after test | Ferdinand Thiessen | 39 hours |
chore/31-doctrine | build(deps): Bump doctrine/dbal from 3.9.1 to 3.9.4 | Ferdinand Thiessen | 39 hours |
fix/49887/early-check-for-overwritten-home | fix: show relative path in NotFoundException | Maksim Sukharev | 40 hours |
artonge/fix/restoring_encrypted_version | fix(files_versions): Update `unencrypted_size` during rollback | Louis Chemineau | 40 hours |
fix/low-res-for-blurhash | fix(performance): use low resolution for blurhash | Max | 40 hours |
backport/50480/stable29 | fix(user_ldap): Do not map groups we do not know if they match filter | Côme Chilliet | 41 hours |
bug/48678/restore-dav-error-response-2 | fix: Replace the TypeError to prevent exposing the installation path | Daniel Kesselberg | 43 hours |
bug/noid/log-absolute-path-for-locked-exception-through-view | fix: log absolute path for locked exception | Daniel Kesselberg | 43 hours |
feat/cardav-example-contact | feat: add example contact on first login | Hamza Mahjoubi | 43 hours |
backport/47889/stable31 | fix: `user:settings` command when user is not available | Ferdinand Thiessen | 44 hours |
enh/ldap-clearer-errors | fix(user_ldap): Check that all user and group bases are in the global one | Côme Chilliet | 44 hours |
fix/encoding-wrapper-scanner | fixup! fixup! fixup! fix: Harden files scanner for invalid null access | Ferdinand Thiessen | 45 hours |
skjnldsv-patch-1 | fix(ci): cypress container name | John Molakvoæ | 45 hours |
backport/50331/stable30 | fix(TaskProcessing\Manager): Add missing cache->get() | Marcel Klehr | 45 hours |
backport/45364/stable30 | fix(user_ldap): Do not map groups we do not know if they match filter | Côme Chilliet | 46 hours |
bug/noid/weird-ldap-caching | fix: remove caching in fetchListOfGroups | Daniel Kesselberg | 46 hours |
backport/47889/stable30 | fix: `user:settings` command when user is not available | Ferdinand Thiessen | 46 hours |
fix/noid/fifty-fifth | fix(CalDav): Spelling | SebastianKrupinski | 2 days |
enh/issues-563-calendar-import-export | feat: OCC and OCS Calendar Import/Export | SebastianKrupinski | 2 days |
fix/move-email-logic-local-user-backend | fix: Move login via email logic to local backend | Ferdinand Thiessen | 2 days |
backport/48581/stable29 | fix(preview): Filter for folders in cleanup old preview job | Dario Mehlich | 2 days |
fix/settings-command | fix: `user:settings` command when user is not available | Ferdinand Thiessen | 2 days |
chore/drop-query-string-dependency | chore: Deprecate `OC.buildQueryString` and `OC.parseQueryString` | Ferdinand Thiessen | 2 days |
backport/50293/stable30 | chore: Compile assets | Ferdinand Thiessen | 2 days |
backport/50446/stable31 | chore(assets): Recompile assets | nextcloud-command | 2 days |
backport/50293/stable29 | chore: Compile assets | Ferdinand Thiessen | 2 days |
backport/50273/stable30 | fix: Metadata field search | Louis Chemineau | 3 days |
backport/50293/stable31 | chore: Compile assets | Ferdinand Thiessen | 3 days |
backport/49645/stable31 | fix(config): drop value details | Maxence Lange | 3 days |
fix/s3/empty-sse-c-key | fix(s3): treat empty sse_c_key as not set | Richard Steinmetz | 3 days |
backport/50464/stable31 | chore(assets): Recompile assets | nextcloud-command | 3 days |
backport/45364/stable31 | fix(user_ldap): Do not map groups we do not know if they match filter | Côme Chilliet | 3 days |
backport/45364/stable29 | fix(user_ldap): Do not map groups we do not know if they match filter | Côme Chilliet | 3 days |
backport/49141/stable30 | chore: compile assets | skjnldsv | 3 days |
zorn-v-patch-1 | Merge branch 'master' into zorn-v-patch-1 | zorn-v | 3 days |
backport/48581/stable31 | fix(preview): Filter for folders in cleanup old preview job | Dario Mehlich | 3 days |
backport/48581/stable30 | fix(preview): Filter for folders in cleanup old preview job | Dario Mehlich | 3 days |
fix/50215/hideCreateTemplateFolder | chore(assets): Recompile assets | nextcloud-command | 3 days |
fix/unified-search-size | chore(assets): Recompile assets | nextcloud-command | 3 days |
fix/encryption-text | chore(assets): Recompile assets | nextcloud-command | 3 days |
fix/ldap-avoid-false-positive-mapping | fix(user_ldap): Do not map groups we do not know if they match filter | Côme Chilliet | 3 days |
fix/harden-admin-settings | chore: Compile assets | Ferdinand Thiessen | 3 days |
backport/50234/stable31 | fix(ratelimit): Allow to bypass rate-limit from bruteforce allowlist | Joas Schilling | 3 days |
add-integration-tests-for-moving-a-file-from-and-to-a-shared-folder | test: Add integration tests for moving a file from and to a shared folder | Daniel Calviño Sánchez | 3 days |
dependabot/composer/stable30/symfony-3c0242c262 | build(deps): Bump the symfony group across 1 directory with 7 updates | Joas Schilling | 3 days |
fix/collaboration/deduplicate-email-shares | fix(Collaboration): Deduplicate email shares if remote share with same label ... | provokateurin | 3 days |
backport/50353/stable30 | feat: Support X-NC-Skip-Trashbin header | Louis Chemineau | 3 days |
backport/50353/stable29 | feat: Support X-NC-Skip-Trashbin header | Louis Chemineau | 3 days |
backport/50273/stable29 | fix: Metadata field search | Louis Chemineau | 3 days |
bugfix/noid/allow-ratelimit-bypass | fix(ratelimit): Allow to bypass rate-limit from bruteforce allowlist | Joas Schilling | 3 days |
revert-49825-revert-49650-backport/49293/stable30 | Revert "Revert "[stable30] fix: Handle copy of folders containing live photos"" | Louis | 3 days |
chore/symfony-process | chore(3rdparty): Bump symfony/process from 6.4.12 to 6.4.15 | Ferdinand Thiessen | 3 days |
chore/update-symfony | chore(deps): Bump the symfony dependency group | Ferdinand Thiessen | 3 days |
backport/50455/stable31 | fix(log): Fix log level handling | Joas Schilling | 3 days |
backport/50455/stable30 | fix(log): Fix log level handling | Joas Schilling | 3 days |
backport/49887/stable29 | fix: perform check for overwritten storage before cache check | Maksim Sukharev | 3 days |
backport/50298/stable31 | fix: detect deleted items as updated for smb storage | Robin Appelman | 3 days |
dependabot/npm_and_yarn/stable31/query-string-9.1.1 | chore(assets): Recompile assets | nextcloud-command | 3 days |
fix/federated-share-opening | chore: Compile assets | provokateurin | 3 days |
backport/50077/stable30 | fix(IInitialState): Allow provideLazyInitialState() closure to return array | provokateurin | 3 days |
backport/50077/stable29 | fix(IInitialState): Allow provideLazyInitialState() closure to return array | provokateurin | 3 days |
bugfix/50443/fix-log-level-handling | fix(log): Fix log level handling | Joas Schilling | 3 days |
chore/update-stub | fix: Correctly type functions | Ferdinand Thiessen | 3 days |
backport/48672/stable31 | fix(settings): Add some context to the PHP memory limit error | Josh | 3 days |
backport/50447/stable30 | fix: Ensure `label` is always a string | Ferdinand Thiessen | 3 days |
fix/share-label | fix: Ensure `label` is always a string | Ferdinand Thiessen | 3 days |
dependabot/npm_and_yarn/stable31/wait-on-8.0.2 | chore(deps-dev): bump wait-on from 8.0.1 to 8.0.2 | dependabot[bot] | 4 days |
backport/fix-files-title | chore(assets): Recompile assets | nextcloud-command | 4 days |
jtr-settings-memory-limit-details | fix(settings): Add some context to the PHP memory limit error | Josh | 4 days |
backport/50430/stable29 | fix(files): Harden thumbnail endpoint | Ferdinand Thiessen | 4 days |
backport/50430/stable30 | fix(files): Harden thumbnail endpoint | Ferdinand Thiessen | 4 days |
jtr-docs-dispatcher-return | docs(dispatcher): Correct described return values | Josh | 4 days |
dependabot/npm_and_yarn/stable31/pinia-2.3.1 | chore(assets): Recompile assets | nextcloud-command | 4 days |
backport/50046/stable30 | chore(assets): Recompile assets | nextcloud-command | 4 days |
backport/50046/stable29 | fix(settings): Fix mail server settings form | provokateurin | 4 days |
backport/49440/stable30 | fix(SetupChecks): Pass webfinger if a handler is there | Josh | 4 days |
backport/49440/stable29 | fix(SetupChecks): Pass webfinger if a handler is there | Josh | 4 days |
backport/49440/stable31 | fix(SetupChecks): Pass webfinger if a handler is there | Josh | 4 days |
fix/noid/thudnerbird-addon-useragent | fix: Change UserAgent to *cloud | Johannes Endres | 4 days |
fix/harden-thumbnail-endpoint | chore(files): Deprecate thumbnail endpoint in favor of core preview endpoint | Ferdinand Thiessen | 4 days |
backport/48081/stable30 | chore(assets): Recompile assets | nextcloud-command | 4 days |
fix/filter-for-components-explicitly | fix(caldav): explicitly check from component types | Anna Larch | 4 days |
perf/log-high-memory-requests | perf: Log requests using high amount of memory as warning | Julius Knorr | 4 days |
fix-setupcheck-webfinger-400 | fix(SetupChecks): Pass webfinger if a handler is there | Josh | 4 days |
backport/49464/stable28 | fix(UserStoragesController) | Marcel Klehr | 4 days |
fix/noid/clean-config-code | fix(config): drop value details | Maxence Lange | 4 days |
backport/49988/stable29 | fix(settings): show the correct initial locale in Personal info | Josh | 4 days |
backport/49988/stable30 | fix(settings): show the correct initial locale in Personal info | Josh | 4 days |
automated/noid/master-fix-npm-audit | fix(deps): Fix npm audit | nextcloud-command | 4 days |
automated/noid/stable31-fix-npm-audit | fix(deps): Fix npm audit | nextcloud-command | 4 days |
automated/noid/stable30-fix-npm-audit | Fix(l10n): Update translations from Transifex | Nextcloud bot | 4 days |
dependabot/npm_and_yarn/stable31/sass-loader-16.0.4 | chore(assets): Recompile assets | nextcloud-command | 4 days |
dependabot/npm_and_yarn/webpack-cli-6.0.1 | chore(deps-dev): bump webpack-cli from 5.1.4 to 6.0.1 | dependabot[bot] | 5 days |
backport/50426/stable31 | fix(occ): hide sensitive data while config:app:set | Misha M.-Kupriyanov | 5 days |
fix/openapi/outdated-specs | fix(settings): Add back adminstration scope for LogSettingsController | provokateurin | 5 days |
fix/node-vibrant | chore(assets): Recompile assets | nextcloud-command | 5 days |
icewind-smb-3.7 | chore: update icewind/smb to 3.7.0 | Robin Appelman | 5 days |
backport/50331/stable31 | fix(TaskProcessing): Cache providersById in getPreferredProviders | Marcel Klehr | 5 days |
backport/50273/stable31 | fix: Metadata field search | Louis Chemineau | 5 days |
ehn/sharing-sidebar-hide-search-labels | chore(assets): Recompile assets | nextcloud-command | 5 days |
dependabot/npm_and_yarn/stable29/pinia-2.3.1 | chore(assets): Recompile assets | nextcloud-command | 5 days |
dependabot/npm_and_yarn/stable29/testing-library/cypress-10.0.3 | chore(deps-dev): bump @testing-library/cypress from 10.0.2 to 10.0.3 | dependabot[bot] | 5 days |
dependabot/npm_and_yarn/stable29/types/dockerode-3.3.34 | chore(deps-dev): bump @types/dockerode from 3.3.26 to 3.3.34 | dependabot[bot] | 5 days |
backport/50368/stable31 | fix: Properly read updater channel before returning version channel as a fall... | Julius Knorr | 5 days |
backport/46780/stable30 | fix(TaskProcessing): Catch JSON encode errors in Manager#setTaskResult | Marcel Klehr | 5 days |
backport/49639/stable31 | fix(TasksSearchProviderTest): adjust deep link to Tasks app | Raimund Schlüßler | 5 days |
perf/cache-file-reminders | perf(files_reminders): Wrap with local cache | Christopher Ng | 5 days |
backport/49639/stable30 | fix(TasksSearchProviderTest): adjust deep link to Tasks app | Raimund Schlüßler | 5 days |
backport/49639/stable29 | fix(TasksSearchProviderTest): adjust deep link to Tasks app | Raimund Schlüßler | 5 days |
backport/49639/stable28 | fix(TasksSearchProviderTest): adjust deep link to Tasks app | Raimund Schlüßler | 5 days |
fix/49473/task-url | fix(TasksSearchProviderTest): adjust deep link to Tasks app | Raimund Schlüßler | 5 days |
dependabot/npm_and_yarn/stable28/pinia-2.2.8 | chore(deps): bump pinia from 2.2.6 to 2.2.8 | dependabot[bot] | 5 days |
backport/46780/stable31 | fix(TaskProcessing): Catch JSON encode errors in Manager#setTaskResult | Marcel Klehr | 5 days |
dependabot/github_actions/github-actions-962ddf9a44 | chore(deps): bump the github-actions group across 1 directory with 7 updates | dependabot[bot] | 5 days |
backport/50353/stable31 | feat: Support X-NC-Skip-Trashbin header | Louis Chemineau | 6 days |
fix/noid/ldap-no-connection-reason | fix(LDAP): also log why the connection to main server failed | Arthur Schiwon | 6 days |
fix/perf/cache-avilable-taskt-types | fix(TaskProcessing): Cache providersById in getPreferredProviders | Marcel Klehr | 6 days |
fix/get-version-of-core | fix(TemplateLayout): `core` is not an app but the server itself | Ferdinand Thiessen | 6 days |
fix/version-channel | fix: Properly read updater channel before returning version channel as a fall... | Julius Knorr | 6 days |
backport/50282/stable31 | chore(assets): Recompile assets | nextcloud-command | 6 days |
backport/49552/stable28 | chore(assets): Recompile assets | nextcloud-command | 6 days |
fix/core-cachebuster | fix: Apply server version based cache buster to core assets | Julius Knorr | 6 days |
backport/50394/stable30 | ci(reuse): Fix translation reuse mapping | Joas Schilling | 6 days |
backport/50394/stable31 | ci(reuse): Fix translation reuse mapping | Joas Schilling | 6 days |
stable26 | Merge pull request #50379 from nextcloud/automated/noid/stable26-update-code-... | Joas Schilling | 6 days |
stable24 | Merge pull request #50380 from nextcloud/automated/noid/stable24-update-code-... | Joas Schilling | 6 days |
stable23 | Merge pull request #50381 from nextcloud/automated/noid/stable23-update-code-... | Joas Schilling | 6 days |
stable27 | Merge pull request #50378 from nextcloud/automated/noid/stable27-update-code-... | Joas Schilling | 6 days |
stable25 | Merge pull request #50377 from nextcloud/automated/noid/stable25-update-code-... | Joas Schilling | 6 days |
stable22 | Merge pull request #50383 from nextcloud/automated/noid/stable22-update-code-... | Joas Schilling | 6 days |
backport/50389/stable31 | Revert "fix(Share20\Manager): Ensure node is still accessible when checking s... | provokateurin | 6 days |
fix/dav/remove-object-properties-expensive | fix(dav): Mark removal of dav object properties as expensive | Christoph Wurst | 6 days |
revert/share-node-accessible | Revert "fix(Share20\Manager): Ensure node is still accessible when checking s... | provokateurin | 6 days |
automated/noid/stable29-update-code-signing-crl | fix(security): Update code signing revocation list | nextcloud-command | 6 days |
automated/noid/stable22-update-code-signing-crl | fix(security): Update code signing revocation list | nextcloud-command | 6 days |
automated/noid/stable23-update-code-signing-crl | fix(security): Update code signing revocation list | nextcloud-command | 6 days |
automated/noid/stable28-update-code-signing-crl | fix(security): Update code signing revocation list | nextcloud-command | 6 days |
automated/noid/stable30-update-code-signing-crl | fix(security): Update code signing revocation list | nextcloud-command | 6 days |
automated/noid/stable24-update-code-signing-crl | fix(security): Update code signing revocation list | nextcloud-command | 6 days |
automated/noid/stable26-update-code-signing-crl | fix(security): Update code signing revocation list | nextcloud-command | 6 days |
automated/noid/stable25-update-code-signing-crl | fix(security): Update code signing revocation list | nextcloud-command | 6 days |
automated/noid/stable27-update-code-signing-crl | fix(security): Update code signing revocation list | nextcloud-command | 6 days |
automated/noid/master-update-code-signing-crl | fix(security): Update code signing revocation list | nextcloud-command | 6 days |
backport/50369/stable31 | fix(dav): default calendar and address book not created on first login | Richard Steinmetz | 6 days |
backport/50369/stable29 | fix(dav): default calendar and address book not created on first login | Richard Steinmetz | 6 days |
backport/50369/stable30 | fix(dav): default calendar and address book not created on first login | Richard Steinmetz | 6 days |
fix/dav/first-login-listener | fix(dav): default calendar and address book not created on first login | Richard Steinmetz | 6 days |
backport/50362/stable31 | fix: remove typing and return type | Anna Larch | 6 days |
fix/noid/revert-api-breaking-return-type | fix: remove typing and return type | Anna Larch | 7 days |
fix/50363/correct-system-tags-i18n | chore(assets): Recompile assets | nextcloud-command | 7 days |
refactor/48925/sharing-sidebar-redesign | chore(assets): Recompile assets | nextcloud-command | 7 days |
backport/49631/stable29 | chore(assets): Recompile assets | nextcloud-command | 7 days |
artonge/feat/skip-trash-header | feat: Support X-NC-Skip-Trashbin header | Louis Chemineau | 7 days |
fix/files-reload | fix(files): allow triggering a Files reload directly | skjnldsv | 7 days |
dependabot/npm_and_yarn/stable29/ts-jest-29.1.5 | chore(deps-dev): bump ts-jest from 29.1.2 to 29.1.5 | dependabot[bot] | 7 days |
fix/taskprocessing-better-errors | fix(TaskProcessing): Catch JSON encode errors in Manager#setTaskResult | Marcel Klehr | 7 days |
dependabot/github_actions/github-actions-375e75ddd3 | chore(deps): bump the github-actions group with 7 updates | dependabot[bot] | 7 days |
branchoff/welcome-stable31 | fix: Adjust branch name in server files | Joas Schilling | 7 days |
dependabot/npm_and_yarn/stable29/nextcloud/calendar-availability-vue-2.2.6 | chore(deps): bump @nextcloud/calendar-availability-vue | dependabot[bot] | 7 days |
dependabot/npm_and_yarn/stable30/testing-library/cypress-10.0.3 | chore(deps-dev): bump @testing-library/cypress from 10.0.2 to 10.0.3 | dependabot[bot] | 7 days |
dependabot/npm_and_yarn/puppeteer-24.1.0 | chore(deps-dev): bump puppeteer from 23.10.4 to 24.1.0 | dependabot[bot] | 7 days |
dependabot/npm_and_yarn/stable29/ts-loader-9.5.2 | chore(deps-dev): bump ts-loader from 9.5.1 to 9.5.2 | dependabot[bot] | 7 days |
dependabot/npm_and_yarn/chenfengyuan/vue-qrcode-2.0.0 | chore(deps): bump @chenfengyuan/vue-qrcode from 1.0.2 to 2.0.0 | dependabot[bot] | 7 days |
dependabot/npm_and_yarn/stable31/jsdoc-4.0.4 | chore(deps-dev): bump jsdoc from 4.0.3 to 4.0.4 | dependabot[bot] | 7 days |
dependabot/npm_and_yarn/babel/node-7.26.0 | chore(deps-dev): bump @babel/node from 7.25.7 to 7.26.0 | dependabot[bot] | 7 days |
enhancements/files-sharing-tests | fix(files_sharing): Adjust wrong labeling identified by test | nfebe | 7 days |
backport/50333/stable29 | fix(security): Update .well-known/security.txt expiration date | Joas Schilling | 7 days |
backport/50330/stable30 | fix(security): Update .well-known/security.txt expiration date | Joas Schilling | 7 days |
backport/50330/stable31 | fix(security): Update .well-known/security.txt expiration date | Joas Schilling | 7 days |
backport/50083/stable30 | fix: Trim tags on adding or editing | Kostiantyn Miakshyn | 7 days |
shared-cache-watcher-update | fix: don't use cached root info from shared cache if the watcher has detected... | Robin Appelman | 8 days |
backport/50319/stable30 | test: fix periodic `Test\Group\DatabaseTest::testSearchGroups` failure | Josh | 8 days |
backport/50319/stable29 | test: fix periodic `Test\Group\DatabaseTest::testSearchGroups` failure | Josh | 8 days |
feat/file-conversion-provider-front | fix(files): jsunit file_conversions | skjnldsv | 8 days |
authPropertyPromotion | refactor(authentication): Use constructor property promotion | Git'Fellow | 8 days |
jtr/fix-testSearchGroups | test: fix periodic `Test\Group\DatabaseTest::testSearchGroups` failure | Josh | 8 days |
chore/stable30-doctrine | chore: Update psalm baseline | Ferdinand Thiessen | 8 days |
chore/cypress-typos | chore(tests): Make linter happy in cypress tests | Ferdinand Thiessen | 8 days |
backport/49681/stable29 | fix: add sse_c_key from S3 object storage properties config to list of sensit... | Robert Riemann | 8 days |
backport/49681/stable30 | fix: add sse_c_key from S3 object storage properties config to list of sensit... | Robert Riemann | 8 days |
chore/symfony-http | chore(3rdparty): Bump symfony/http-foundation from 6.4.12 to 6.4.14 | Ferdinand Thiessen | 8 days |
chore/first-login-hours-minutes | chore(assets): Recompile assets | nextcloud-command | 8 days |
fix/perf/cache-taskprocessing-json-parse | fix(TaskProcessing\Manager): Cache the result of parsing JSON | Marcel Klehr | 8 days |
smb-hasupdated-deleted | fix: detect deleted items as updated for smb storage | Robin Appelman | 9 days |
backport/49261/stable30 | chore: Compile assets | Ferdinand Thiessen | 9 days |
feat/restrict-tag-creation | chore(assets): Recompile assets | nextcloud-command | 9 days |
feat/sync-truncation | fixup! feat(cardav): support result truncation for addressbook federation | Hamza Mahjoubi | 9 days |
backport/50177/stable29 | chore(assets): Recompile assets | nextcloud-command | 9 days |
backport/49820/stable30 | fix(settings): Make header style inline with other pages | Git'Fellow | 9 days |
backport/50128/stable29 | feat: Adapt providers `disabled` property to match user applied filters | nfebe | 9 days |
backport/50161/stable29 | fix(files): sort not working after changing views | Richard Steinmetz | 9 days |
bugfix/trim-tags | fix: Trim tags on adding or editing | Kostiantyn Miakshyn | 10 days |
fix/password-validation | fix(sharing): Set correct password context for share password validation | Ferdinand Thiessen | 10 days |
fix/fix-email-setupcheck-with-null-smtpmode | fix(settings): Fix setup check when mail_smptmode is set to "null" | Côme Chilliet | 10 days |
feat/mountmanager/emit-events | feat(UserMountCache): Emit events for added, removed and updated mounts | provokateurin | 10 days |
artonge/fix/metadata_field_search | fix: Metadata field search | Louis Chemineau | 10 days |
backport/50193/stable29 | fixup! fix(oauth2): adjust db schemas when migrating from owncloud | Richard Steinmetz | 10 days |
fix/oauth2/owncloud-migration | fixup! fix(oauth2): adjust db schemas when migrating from owncloud | Richard Steinmetz | 10 days |
fix/stable29_share-api-create--permissions | fix(files_sharing): Respect permissions passed when creating link shares | Ferdinand Thiessen | 10 days |
fix/migrate-encryption-away-from-hooks | chore: WIP - debug for CI | Côme Chilliet | 10 days |
backport/50161/stable30 | fix(files): sort not working after changing views | Richard Steinmetz | 10 days |
dependabot/npm_and_yarn/multi-206390e743 | chore(deps): bump phin and node-vibrant | dependabot[bot] | 11 days |
dependabot/npm_and_yarn/node-vibrant-4.0.3 | build(deps): bump node-vibrant from 3.1.6 to 4.0.3 | dependabot[bot] | 11 days |
fix/proper-preview-icon | fix(files): Always show a fallback for the file preview | Ferdinand Thiessen | 11 days |
fix/issue-23666 | fix: restrict mime type list depending on check operator | Robin Windey | 11 days |
backport/50076/stable30 | fix: Apply enforce theme config for anonymous users as well | Kostiantyn Miakshyn | 11 days |
feat/add-directory-check-workflowengine | Implement Directory Check | Robin Windey | 12 days |
dependabot/npm_and_yarn/stable29/debounce-2.1.1 | build(deps): bump debounce from 2.1.0 to 2.1.1 | dependabot[bot] | 12 days |
dependabot/npm_and_yarn/stable29/nextcloud/files-3.10.1 | build(deps): bump @nextcloud/files from 3.10.0 to 3.10.1 | dependabot[bot] | 12 days |
backport/50241/stable30 | chore(assets): Recompile assets | nextcloud-command | 12 days |
dependabot/npm_and_yarn/core-js-3.40.0 | build(deps): bump core-js from 3.38.1 to 3.40.0 | dependabot[bot] | 12 days |
perf/noid/unified-search-init | chore(assets): Recompile assets | nextcloud-command | 12 days |
dependabot/npm_and_yarn/stable29/dockerode-4.0.4 | build(deps-dev): bump dockerode from 4.0.2 to 4.0.4 | dependabot[bot] | 12 days |
dependabot/npm_and_yarn/stable30/nextcloud/password-confirmation-5.3.1 | build(deps): bump @nextcloud/password-confirmation from 5.3.0 to 5.3.1 | dependabot[bot] | 12 days |
dependabot/npm_and_yarn/stable30/libphonenumber-js-1.11.18 | build(deps): bump libphonenumber-js from 1.11.16 to 1.11.18 | dependabot[bot] | 12 days |
dependabot/npm_and_yarn/stable30/ts-loader-9.5.2 | build(deps-dev): bump ts-loader from 9.5.1 to 9.5.2 | dependabot[bot] | 12 days |
dependabot/npm_and_yarn/stable30/dockerode-4.0.4 | build(deps-dev): bump dockerode from 4.0.2 to 4.0.4 | dependabot[bot] | 12 days |
fix/conversion-extension | fix: php lint extra tab fix | John Molakvoæ | 12 days |
Dennis1993-patch-1 | Fix log spamming for shares without label | Dennis1993 | 12 days |
backport/50237/stable29 | fix(files): Add empty alt text to purely decorative icons | Ferdinand Thiessen | 13 days |
feat/settings/advanced-deploy-options | feat(app_api): Advanced deploy options | Andrey Borysenko | 13 days |
fix/legacy-file-drop | fix(files): Add empty alt text to purely decorative icons | Ferdinand Thiessen | 13 days |
fix/update-notification | fix(updatenotification): Parse pre-release version of apps | Ferdinand Thiessen | 13 days |
backport/50177/stable30 | chore(assets): Recompile assets | nextcloud-command | 13 days |
stable30-fix-renaming-a-received-share-by-a-user-with-stale-shares | test: Add integration tests for renaming a share by a user with stale shares | Daniel Calviño Sánchez | 13 days |
add-integration-tests-for-renaming-a-share-by-a-user-with-stale-shares | test: Add integration tests for renaming a share by a user with stale shares | Daniel Calviño Sánchez | 13 days |
fix/convert-log | fix: Log exceptions that happen during file conversion | Julius Knorr | 13 days |
backport/50154/stable29 | chore(assets): Recompile assets | nextcloud-command | 13 days |
fix/file-type-filter-state | chore: Compile assets | Ferdinand Thiessen | 13 days |
backport/48769/stable30 | test: add test for permissions of copied share | Robin Appelman | 13 days |
dependabot/npm_and_yarn/stable30/moment-timezone-0.5.46 | chore(deps): bump moment-timezone from 0.5.45 to 0.5.46 | dependabot[bot] | 13 days |
dependabot/npm_and_yarn/stable30/dockerode-4.0.3 | build(deps-dev): bump dockerode from 4.0.2 to 4.0.3 | dependabot[bot] | 13 days |
dependabot/npm_and_yarn/stable30/nextcloud/files-3.10.1 | chore(assets): Recompile assets | nextcloud-command | 13 days |
backport/49208/stable29 | chore(assets): Recompile assets | nextcloud-command | 13 days |
fix/sidebar-favorites | chore: Compile assets | Ferdinand Thiessen | 13 days |
fix/eslint-warnings | chore: Compile assets | Ferdinand Thiessen | 13 days |
backport/50187/stable30 | fix(settings): Correctly parse and display default quota | Ferdinand Thiessen | 13 days |
backport/50152/stable29 | fix(dashboard): don't initially load items of hidden api widgets | Richard Steinmetz | 13 days |
fix/file-conversion-missing-extension | chore: remove unnecessary method | Elizabeth Danzberger | 13 days |
fix/account-mgmnt-settings | chore: Compile assets | Ferdinand Thiessen | 13 days |
feat/conversion-adjusting | chore: add file conversion integration tests | skjnldsv | 14 days |
backport/49898/stable30 | fix(sharing): send share emails for internal users too | Anna Larch | 14 days |
fix/file-list-filters-reset | chore: Compile assets | Ferdinand Thiessen | 14 days |
release/31.0.0_beta_4 | build(hub): 31.0.0 beta 4 | skjnldsv | 14 days |
feat/show-time-diff-user | feat(contacts): Show time difference for users in different timezones | Ferdinand Thiessen | 14 days |
backport/49476/stable28 | perf: use more optimized way to get user storage info in ocs user info when p... | Robin Appelman | 14 days |
backport/49476/stable29 | perf: use more optimized way to get user storage info in ocs user info when p... | Robin Appelman | 14 days |
backport/49476/stable30 | perf: use more optimized way to get user storage info in ocs user info when p... | Robin Appelman | 14 days |
ocs-user-info-quota-optimize | perf: use more optimized way to get user storage info in ocs user info when p... | Robin Appelman | 14 days |
jtr/fix-sharing-update-hints | fix(sharing): Show hint exception messages | Josh | 14 days |
feat/issue-994-two-factor-api | feat: Two Factor API | SebastianKrupinski | 14 days |
backport/50152/stable30 | chore(assets): Recompile assets | nextcloud-command | 14 days |
backport/50179/stable30 | test(dashboard): Add regression test for loading unneeded data | Ferdinand Thiessen | 14 days |
fix/session/session-passphraze-handling | fixup! fix(session): Make session encryption more robust | Christoph Wurst | 14 days |
fix/50177/movy-copy-e2e-tests | test(e2e): hide move dialog action if destination has no CREATE permission | Maksim Sukharev | 14 days |
fix/files/sort-after-view-change | fix(files): sort not working after changing views | Richard Steinmetz | 14 days |
feat/edit-share-token | chore(assets): Recompile assets | nextcloud-command | 2 weeks |
feat/file-conversion-provider | chore: update openapi spec | Elizabeth Danzberger | 2 weeks |
backport/50192/stable28 | chore: Compile assets | Ferdinand Thiessen | 2 weeks |
backport/50192/stable29 | chore: Compile assets | Ferdinand Thiessen | 2 weeks |
backport/50192/stable30 | test: Add end-to-end test for share expiration date | Ferdinand Thiessen | 2 weeks |
fix/better-drag-n-drop | fixup | Ferdinand Thiessen | 2 weeks |
fix/index-systemtags | fix(systemtags): objecttype index registration | skjnldsv | 2 weeks |
fix/files_sharing/sharing-entry-link-override-expiration-date | chore(assets): Recompile assets | nextcloud-command | 2 weeks |
fix/template-return-type | docs: Use proper return type for custom template listing | Julius Knorr | 2 weeks |
fix/49638/update-prefs-indexes | fix(missing-index): update preferences table | Maxence Lange | 2 weeks |
artonge/fix/remove_duplicate_propfind_call | chore: Compile assets | Louis Chemineau | 2 weeks |
release/30.0.5 | build(hub): 30.0.5 | skjnldsv | 2 weeks |
release/29.0.11 | build(hub): 29.0.11 | skjnldsv | 2 weeks |
fix/defaultshareprovider/filter-reshares-correctly | fix(DefaultShareProvider): Correctly filter reshares | provokateurin | 2 weeks |
fix/45982/hide-move-action | chore(assets): Recompile assets | nextcloud-command | 2 weeks |
feature/23308/create-new-favorite-dashboard-widget | chore: Compile assets | Ferdinand Thiessen | 2 weeks |
fix/template-name-overflow | fix: Show full template name | Julius Knorr | 2 weeks |
enh/limit-ldap-user-count | fix: Fix a small typing problem is user manager | Côme Chilliet | 2 weeks |
test/widget-perf | test(dashboard): Add regression test for loading unneeded data | Ferdinand Thiessen | 2 weeks |
fix/dashboard/dont-load-hidden-widgets-initially | fix(dashboard): don't initially load items of hidden api widgets | Richard Steinmetz | 2 weeks |
feat/noid/lexicon-configurable-default-value | fix(lexicon): syntax | Maxence Lange | 2 weeks |
fix/template-vue3-main | chore: Compile assets | Ferdinand Thiessen | 2 weeks |
fix/picker-tag-color | fix(systemtags): color picker open/close events | skjnldsv | 2 weeks |
mountpoint-get-numeric-storage-id-cache | test: update test for mountpoint numeric storage id | Robin Appelman | 2 weeks |
fix/improve-ldap-avatar-handling | chore(psalm): Update baseline to remove fixed errors | Côme Chilliet | 2 weeks |
backport/49552/stable30 | fix: explicitly ignore nested mounts when transfering ownership | Robin Appelman | 2 weeks |
backport/49552/stable29 | fix: explicitly ignore nested mounts when transfering ownership | Robin Appelman | 2 weeks |
fix/files_sharing/harden-api | fix(PathHelper): Remove null bytes when normalizing path | provokateurin | 2 weeks |
feat/files_trashbin/allow-preventing-trash-permanently | chore(assets): Recompile assets | nextcloud-command | 2 weeks |
backport/50128/stable30 | chore(assets): Recompile assets | nextcloud-command | 2 weeks |
fix/noid/no-emails-for-user-shares | fix(sharing): send share emails for internal users too | Anna Larch | 2 weeks |
fix/49728/adapt-search-filters-correctly | chore(assets): Recompile assets | nextcloud-command | 2 weeks |
backport/49271/stable30 | chore: Build assets | Ferdinand Thiessen | 2 weeks |
feat/ocp/attendee-availability-api | feat(ocp): add calendar api to retrieve availability of attendees | Richard Steinmetz | 2 weeks |
dependabot/npm_and_yarn/vitest/coverage-v8-2.1.8 | chore(deps-dev): bump @vitest/coverage-v8 from 2.1.5 to 2.1.8 | dependabot[bot] | 3 weeks |
backport/50034/stable30 | fix(caldav): rename default calendar to keep it in the trashbin instead of pu... | Thomas Citharel | 3 weeks |
backport/50034/stable29 | fix(caldav): rename default calendar to keep it in the trashbin instead of pu... | Thomas Citharel | 3 weeks |
dependabot/npm_and_yarn/stable30/nextcloud/calendar-availability-vue-2.2.6 | build(deps): bump @nextcloud/calendar-availability-vue | dependabot[bot] | 3 weeks |
dependabot/composer/build/integration/behat/behat-3.18.1 | build(deps-dev): bump behat/behat in /build/integration | dependabot[bot] | 3 weeks |
dependabot/npm_and_yarn/stable30/libphonenumber-js-1.11.17 | build(deps): bump libphonenumber-js from 1.11.16 to 1.11.17 | dependabot[bot] | 3 weeks |
dependabot/npm_and_yarn/stable29/dompurify-3.1.7 | build(deps): bump dompurify from 3.1.5 to 3.1.7 | dependabot[bot] | 3 weeks |
dependabot/npm_and_yarn/stable29/dockerode-4.0.3 | build(deps-dev): bump dockerode from 4.0.2 to 4.0.3 | dependabot[bot] | 3 weeks |
dependabot/npm_and_yarn/nextcloud/password-confirmation-5.3.1 | build(deps): bump @nextcloud/password-confirmation from 5.3.0 to 5.3.1 | dependabot[bot] | 3 weeks |
feat/rich-profile-biography | chore(assets): Recompile assets | nextcloud-command | 3 weeks |
backport/49887/stable30 | chore: update baseline | Robin Appelman | 3 weeks |
backport/50123/stable30 | fix(files): rename actions submenu back entry | skjnldsv | 3 weeks |
backport/50123/stable29 | fix(files): rename actions submenu back entry | skjnldsv | 3 weeks |
backport/50123/master | fix(files): rename actions submenu back entry | skjnldsv | 3 weeks |
backport/50076/stable29 | fix: Apply enforce theme config for anonymous users as well | Kostiantyn Miakshyn | 3 weeks |
backport/50111/stable30 | fix(dashboard): don't reload hidden widgets | Richard Steinmetz | 3 weeks |
backport/50111/stable29 | fix(dashboard): don't reload hidden widgets | Richard Steinmetz | 3 weeks |
fix-enforce-theme-for-public-links | fix: Apply enforce theme config for anonymous users as well | Kostiantyn Miakshyn | 3 weeks |
backport/50113/stable30 | fix(setupchecks): Binary data can have problems with serialize | Git'Fellow | 3 weeks |
backport/50113/stable29 | fix(setupchecks): Binary data can have problems with serialize | Git'Fellow | 3 weeks |
refactor/share-manager-appconfig | refactor: Use typed AppConfig getters in share manager | Christopher Ng | 3 weeks |
setupChecksMoveFromBinary | fix(setupchecks): Binary data can have problems with serialize | Git'Fellow | 3 weeks |
artonge/fix/sidebar_davpath | fix: Do not duplicate `/` in davPath | Louis Chemineau | 3 weeks |
fix/noid/discover-unique-ocmprovider | fix(ocm-discovery): do not use a global model on remote discovery | Maxence Lange | 3 weeks |
artonge/fix/displayname_in_sidebar | fix: Use `displayname` as sidebar title | Louis Chemineau | 3 weeks |
jtr/fix-appframework-server-proto | fix(AppFramework): Log malformed protocol values and unify fallback behavior | Josh | 3 weeks |
fix/dashboard/skip-hidden-widgets | fix(dashboard): don't reload hidden widgets | Richard Steinmetz | 3 weeks |
feat/auto-accept-trusted-server | chore(federation): cleanup SettingsController and legacy AddServerMiddleware | skjnldsv | 3 weeks |
feat/contacts-menu/js-hook-action | feat(contacts-menu): implement custom javascript hook action | Richard Steinmetz | 3 weeks |
artonge/feat/validate_keychecksum | Merge pull request #50095 from nextcloud/release/31.0.0_beta_2 | Arthur Schiwon | 3 weeks |
backport/50070/stable30 | docs(HTTP): Add proper docs for CORS attribute | provokateurin | 3 weeks |
backport/50070/stable29 | docs(HTTP): Add proper docs for CORS attribute | provokateurin | 3 weeks |
fix/noid/broken-taskprocessing-api | chore: generate openapi specs | Julien Veyssier | 3 weeks |
backport/49208/stable30 | chore(assets): Recompile assets | nextcloud-command | 3 weeks |
backport/48081/stable29 | chore(1i8n): Fixed grammar and improved wording | rakekniven | 3 weeks |
backport/49966/stable29 | fix: block moving files to it's own parent with dav | Robin Appelman | 3 weeks |
release/29.0.11_rc1 | build(hub): 29.0.11 RC1 | Arthur Schiwon | 3 weeks |
release/30.0.5_rc1 | build(hub): 30.0.5 RC1 | Arthur Schiwon | 3 weeks |
release/31.0.0_beta_2 | build(hub): 31.0.0 beta 2 | Arthur Schiwon | 3 weeks |
backport/49882/stable29 | fix(Http): Only allow valid HTTP status code values via template | provokateurin | 3 weeks |
backport/49882/stable28 | fix(Http): Only allow valid HTTP status code values via template | provokateurin | 3 weeks |
chore/deps/nextcloud-vue-8.22.0 | chore(deps): bump @nextcloud/vue from ^8.20.0 to ^8.22.0 | Richard Steinmetz | 3 weeks |
feat/noid/info-xml-spdx-license-ids | feat: add licenses by SPDX identifier, mark shorthand aliases as deprecated. | Andy Scherzinger | 3 weeks |
jtr/typo-accessibility-config-sample | fix: Correct typo in accessibility toggle in config.sample.php | Josh | 3 weeks |
fix/undefined-application-key | fix(core): Fix undefined "application" array key error | Christopher Ng | 3 weeks |
jtr-perf-checks-connectivity-https-proto | perf(settings): Speed up InternetConnectivity setup check | Josh | 3 weeks |
feat/maxschmi-49902 | chore: compile assets | skjnldsv | 3 weeks |
fix/49954/add-send-mail-toggle | feat(files_sharing): add send mail toggle | nfebe | 3 weeks |
enh/add-first-login-timestamp | chore(assets): Recompile assets | nextcloud-command | 3 weeks |
fix/composer/autoload-dev-deps | fix(composer): Remove dev deps from autoloader | provokateurin | 3 weeks |
fix/http/template-valid-status-codes | fix(Http): Only allow valid HTTP status code values via template | provokateurin | 3 weeks |
docs/http/cors-attribute | docs(HTTP): Add proper docs for CORS attribute | provokateurin | 3 weeks |
release/31.0.0_beta_1 | build(hub): 31.0.0 beta 1 | skjnldsv | 3 weeks |
davTagColor | feat: expose tag color via webdav | tobiasKaminsky | 3 weeks |
backport/49962/stable30 | fix(setup): clarify installation wording to be clear that it is about account... | Jan C. Borchardt | 3 weeks |
backport/49962/stable29 | fix(setup): clarify installation wording to be clear that it is about account... | Jan C. Borchardt | 3 weeks |
feat/allow-oauth-grant-bypass | fix: Rename config option to skipAuthPickerApplications to match what it does | Côme Chilliet | 3 weeks |
backport/49966/stable30 | fix: block moving files to it's own parent with dav | Robin Appelman | 3 weeks |
backport/50025/stable29 | chore: enable cypress video recording in debug mode | skjnldsv | 3 weeks |
backport/49852/stable30 | fix: change translation logic to handle plurals better | SebastianKrupinski | 3 weeks |
backport/50035/stable30 | fix(HTTP): Adjust JSONResponse data type | provokateurin | 3 weeks |
backport/50035/stable29 | fix(HTTP): Adjust JSONResponse data type | provokateurin | 3 weeks |
backport/50035/stable28 | fix(HTTP): Adjust JSONResponse data type | provokateurin | 3 weeks |
mount-move-checks | fix: explicitly ignore nested mounts when transfering ownership | Robin Appelman | 3 weeks |
chore/deps/openapi-extractor | chore(deps): Update openapi-extractor to v1.3.0 | provokateurin | 3 weeks |
Fix/mp3_regex | fix(preview): Do not try to parse M3U files as MP3 | Pauli Järvinen | 3 weeks |
rename-deleted-default-calendar-in-trashbin | fix(caldav): rename default calendar to keep it in the trashbin instead of pu... | Thomas Citharel | 3 weeks |
fix/stable30/share-types-references | chore(assets): Recompile assets | nextcloud-command | 3 weeks |
fix/issue-49756-translations | fix: change translation logic to handle plurals better | SebastianKrupinski | 3 weeks<?php
// vim: set et ts=4 sw=4 fdm=marker:
// +----------------------------------------------------------------------+
// | PHP versions 4 and 5 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1998-2007 Manuel Lemos, Tomas V.V.Cox, |
// | Stig. S. Bakken, Lukas Smith |
// | All rights reserved. |
// +----------------------------------------------------------------------+
// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB |
// | API as well as database abstraction for PHP applications. |
// | This LICENSE is in the BSD license style. |
// | |
// | Redistribution and use in source and binary forms, with or without |
// | modification, are permitted provided that the following conditions |
// | are met: |
// | |
// | Redistributions of source code must retain the above copyright |
// | notice, this list of conditions and the following disclaimer. |
// | |
// | Redistributions in binary form must reproduce the above copyright |
// | notice, this list of conditions and the following disclaimer in the |
// | documentation and/or other materials provided with the distribution. |
// | |
// | Neither the name of Manuel Lemos, Tomas V.V.Cox, Stig. S. Bakken, |
// | Lukas Smith nor the names of his contributors may be used to endorse |
// | or promote products derived from this software without specific prior|
// | written permission. |
// | |
// | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
// | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
// | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
// | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
// | REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
// | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
// | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS|
// | OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
// | AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
// | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY|
// | WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// | POSSIBILITY OF SUCH DAMAGE. |
// +----------------------------------------------------------------------+
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
// $Id: MDB2.php,v 1.335 2008/11/29 14:57:01 afz Exp $
//
/**
* @package MDB2
* @category Database
* @author Lukas Smith <smith@pooteeweet.org>
*/
require_once('PEAR.php');
// {{{ Error constants
/**
* The method mapErrorCode in each MDB2_dbtype implementation maps
* native error codes to one of these.
*
* If you add an error code here, make sure you also add a textual
* version of it in MDB2::errorMessage().
*/
define('MDB2_OK', true);
define('MDB2_ERROR', -1);
define('MDB2_ERROR_SYNTAX', -2);
define('MDB2_ERROR_CONSTRAINT', -3);
define('MDB2_ERROR_NOT_FOUND', -4);
define('MDB2_ERROR_ALREADY_EXISTS', -5);
define('MDB2_ERROR_UNSUPPORTED', -6);
define('MDB2_ERROR_MISMATCH', -7);
define('MDB2_ERROR_INVALID', -8);
define('MDB2_ERROR_NOT_CAPABLE', -9);
define('MDB2_ERROR_TRUNCATED', -10);
define('MDB2_ERROR_INVALID_NUMBER', -11);
define('MDB2_ERROR_INVALID_DATE', -12);
define('MDB2_ERROR_DIVZERO', -13);
define('MDB2_ERROR_NODBSELECTED', -14);
define('MDB2_ERROR_CANNOT_CREATE', -15);
define('MDB2_ERROR_CANNOT_DELETE', -16);
define('MDB2_ERROR_CANNOT_DROP', -17);
define('MDB2_ERROR_NOSUCHTABLE', -18);
define('MDB2_ERROR_NOSUCHFIELD', -19);
define('MDB2_ERROR_NEED_MORE_DATA', -20);
define('MDB2_ERROR_NOT_LOCKED', -21);
define('MDB2_ERROR_VALUE_COUNT_ON_ROW', -22);
define('MDB2_ERROR_INVALID_DSN', -23);
define('MDB2_ERROR_CONNECT_FAILED', -24);
define('MDB2_ERROR_EXTENSION_NOT_FOUND',-25);
define('MDB2_ERROR_NOSUCHDB', -26);
define('MDB2_ERROR_ACCESS_VIOLATION', -27);
define('MDB2_ERROR_CANNOT_REPLACE', -28);
define('MDB2_ERROR_CONSTRAINT_NOT_NULL',-29);
define('MDB2_ERROR_DEADLOCK', -30);
define('MDB2_ERROR_CANNOT_ALTER', -31);
define('MDB2_ERROR_MANAGER', -32);
define('MDB2_ERROR_MANAGER_PARSE', -33);
define('MDB2_ERROR_LOADMODULE', -34);
define('MDB2_ERROR_INSUFFICIENT_DATA', -35);
define('MDB2_ERROR_NO_PERMISSION', -36);
define('MDB2_ERROR_DISCONNECT_FAILED', -37);
// }}}
// {{{ Verbose constants
/**
* These are just helper constants to more verbosely express parameters to prepare()
*/
define('MDB2_PREPARE_MANIP', false);
define('MDB2_PREPARE_RESULT', null);
// }}}
// {{{ Fetchmode constants
/**
* This is a special constant that tells MDB2 the user hasn't specified
* any particular get mode, so the default should be used.
*/
define('MDB2_FETCHMODE_DEFAULT', 0);
/**
* Column data indexed by numbers, ordered from 0 and up
*/
define('MDB2_FETCHMODE_ORDERED', 1);
/**
* Column data indexed by column names
*/
define('MDB2_FETCHMODE_ASSOC', 2);
/**
* Column data as object properties
*/
define('MDB2_FETCHMODE_OBJECT', 3);
/**
* For multi-dimensional results: normally the first level of arrays
* is the row number, and the second level indexed by column number or name.
* MDB2_FETCHMODE_FLIPPED switches this order, so the first level of arrays
* is the column name, and the second level the row number.
*/
define('MDB2_FETCHMODE_FLIPPED', 4);
// }}}
// {{{ Portability mode constants
/**
* Portability: turn off all portability features.
* @see MDB2_Driver_Common::setOption()
*/
define('MDB2_PORTABILITY_NONE', 0);
/**
* Portability: convert names of tables and fields to case defined in the
* "field_case" option when using the query*(), fetch*() and tableInfo() methods.
* @see MDB2_Driver_Common::setOption()
*/
define('MDB2_PORTABILITY_FIX_CASE', 1);
/**
* Portability: right trim the data output by query*() and fetch*().
* @see MDB2_Driver_Common::setOption()
*/
define('MDB2_PORTABILITY_RTRIM', 2);
/**
* Portability: force reporting the number of rows deleted.
* @see MDB2_Driver_Common::setOption()
*/
define('MDB2_PORTABILITY_DELETE_COUNT', 4);
/**
* Portability: not needed in MDB2 (just left here for compatibility to DB)
* @see MDB2_Driver_Common::setOption()
*/
define('MDB2_PORTABILITY_NUMROWS', 8);
/**
* Portability: makes certain error messages in certain drivers compatible
* with those from other DBMS's.
*
* + mysql, mysqli: change unique/primary key constraints
* MDB2_ERROR_ALREADY_EXISTS -> MDB2_ERROR_CONSTRAINT
*
* + odbc(access): MS's ODBC driver reports 'no such field' as code
* 07001, which means 'too few parameters.' When this option is on
* that code gets mapped to MDB2_ERROR_NOSUCHFIELD.
*
* @see MDB2_Driver_Common::setOption()
*/
define('MDB2_PORTABILITY_ERRORS', 16);
/**
* Portability: convert empty values to null strings in data output by
* query*() and fetch*().
* @see MDB2_Driver_Common::setOption()
*/
define('MDB2_PORTABILITY_EMPTY_TO_NULL', 32);
/**
* Portability: removes database/table qualifiers from associative indexes
* @see MDB2_Driver_Common::setOption()
*/
define('MDB2_PORTABILITY_FIX_ASSOC_FIELD_NAMES', 64);
/**
* Portability: turn on all portability features.
* @see MDB2_Driver_Common::setOption()
*/
define('MDB2_PORTABILITY_ALL', 127);
// }}}
// {{{ Globals for class instance tracking
/**
* These are global variables that are used to track the various class instances
*/
$GLOBALS['_MDB2_databases'] = array();
$GLOBALS['_MDB2_dsninfo_default'] = array(
'phptype' => false,
'dbsyntax' => false,
'username' => false,
'password' => false,
'protocol' => false,
'hostspec' => false,
'port' => false,
'socket' => false,
'database' => false,
'mode' => false,
);
// }}}
// {{{ class MDB2
/**
* The main 'MDB2' class is simply a container class with some static
* methods for creating DB objects as well as some utility functions
* common to all parts of DB.
*
* The object model of MDB2 is as follows (indentation means inheritance):
*
* MDB2 The main MDB2 class. This is simply a utility class
* with some 'static' methods for creating MDB2 objects as
* well as common utility functions for other MDB2 classes.
*
* MDB2_Driver_Common The base for each MDB2 implementation. Provides default
* | implementations (in OO lingo virtual methods) for
* | the actual DB implementations as well as a bunch of
* | query utility functions.
* |
* +-MDB2_Driver_mysql The MDB2 implementation for MySQL. Inherits MDB2_Driver_Common.
* When calling MDB2::factory or MDB2::connect for MySQL
* connections, the object returned is an instance of this
* class.
* +-MDB2_Driver_pgsql The MDB2 implementation for PostGreSQL. Inherits MDB2_Driver_Common.
* When calling MDB2::factory or MDB2::connect for PostGreSQL
* connections, the object returned is an instance of this
* class.
*
* @package MDB2
* @category Database
* @author Lukas Smith <smith@pooteeweet.org>
*/
class MDB2
{
// {{{ function setOptions(&$db, $options)
/**
* set option array in an exiting database object
*
* @param MDB2_Driver_Common MDB2 object
* @param array An associative array of option names and their values.
*
* @return mixed MDB2_OK or a PEAR Error object
*
* @access public
*/
static function setOptions(&$db, $options)
{
if (is_array($options)) {
foreach ($options as $option => $value) {
$test = $db->setOption($option, $value);
if (PEAR::isError($test)) {
return $test;
}
}
}
return MDB2_OK;
}
// }}}
// {{{ function classExists($classname)
/**
* Checks if a class exists without triggering __autoload
*
* @param string classname
*
* @return bool true success and false on error
* @static
* @access public
*/
static function classExists($classname)
{
if (version_compare(phpversion(), "5.0", ">=")) {
return class_exists($classname, false);
}
return class_exists($classname);
}
// }}}
// {{{ function loadClass($class_name, $debug)
/**
* Loads a PEAR class.
*
* @param string classname to load
* @param bool if errors should be suppressed
*
* @return mixed true success or PEAR_Error on failure
*
* @access public
*/
static function loadClass($class_name, $debug)
{
if (!MDB2::classExists($class_name)) {
$file_name = str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php';
if ($debug) {
$include = include_once($file_name);
} else {
$include = include_once($file_name);
}
if (!$include) {
if (!MDB2::fileExists($file_name)) {
$msg = "unable to find package '$class_name' file '$file_name'";
} else {
$msg = "unable to load class '$class_name' from file '$file_name'";
}
$err =MDB2::raiseErrorStatic(MDB2_ERROR_NOT_FOUND, null, null, $msg);
return $err;
}
}
return MDB2_OK;
}
// }}}
// {{{ function &factory($dsn, $options = false)
/**
* Create a new MDB2 object for the specified database type
*
* IMPORTANT: In order for MDB2 to work properly it is necessary that
* you make sure that you work with a reference of the original
* object instead of a copy (this is a PHP4 quirk).
*
* For example:
* $db =& MDB2::factory($dsn);
* ^^
* And not:
* $db = MDB2::factory($dsn);
*
* @param mixed 'data source name', see the MDB2::parseDSN
* method for a description of the dsn format.
* Can also be specified as an array of the
* format returned by MDB2::parseDSN.
* @param array An associative array of option names and
* their values.
*
* @return mixed a newly created MDB2 object, or false on error
*
* @access public
*/
static function factory($dsn, $options = false)
{
$dsninfo = MDB2::parseDSN($dsn);
if (empty($dsninfo['phptype'])) {
$err =MDB2::raiseErrorStatic(MDB2_ERROR_NOT_FOUND,
null, null, 'no RDBMS driver specified');
return $err;
}
$class_name = 'MDB2_Driver_'.$dsninfo['phptype'];
$debug = (!empty($options['debug']));
$err = MDB2::loadClass($class_name, $debug);
if (PEAR::isError($err)) {
return $err;
}
$db =new $class_name();
$db->setDSN($dsninfo);
$err = MDB2::setOptions($db, $options);
if (PEAR::isError($err)) {
return $err;
}
return $db;
}
// }}}
// {{{ function &connect($dsn, $options = false)
/**
* Create a new MDB2_Driver_* connection object and connect to the specified
* database
*
* IMPORTANT: In order for MDB2 to work properly it is necessary that
* you make sure that you work with a reference of the original
* object instead of a copy (this is a PHP4 quirk).
*
* For example:
* $db =& MDB2::connect($dsn);
* ^^
* And not:
* $db = MDB2::connect($dsn);
* ^^
*
* @param mixed $dsn 'data source name', see the MDB2::parseDSN
* method for a description of the dsn format.
* Can also be specified as an array of the
* format returned by MDB2::parseDSN.
* @param array $options An associative array of option names and
* their values.
*
* @return mixed a newly created MDB2 connection object, or a MDB2
* error object on error
*
* @access public
* @see MDB2::parseDSN
*/
function &connect($dsn, $options = false)
{
$db =MDB2::factory($dsn, $options);
if (PEAR::isError($db)) {
return $db;
}
$err = $db->connect();
if (PEAR::isError($err)) {
$dsn = $db->getDSN('string', 'xxx');
$db->disconnect();
$err->addUserInfo($dsn);
return $err;
}
return $db;
}
// }}}
// {{{ function &singleton($dsn = null, $options = false)
/**
* Returns a MDB2 connection with the requested DSN.
* A new MDB2 connection object is only created if no object with the
* requested DSN exists yet.
*
* IMPORTANT: In order for MDB2 to work properly it is necessary that
* you make sure that you work with a reference of the original
* object instead of a copy (this is a PHP4 quirk).
*
* For example:
* $db =& MDB2::singleton($dsn);
* ^^
* And not:
* $db = MDB2::singleton($dsn);
* ^^
*
* @param mixed 'data source name', see the MDB2::parseDSN
* method for a description of the dsn format.
* Can also be specified as an array of the
* format returned by MDB2::parseDSN.
* @param array An associative array of option names and
* their values.
*
* @return mixed a newly created MDB2 connection object, or a MDB2
* error object on error
*
* @access public
* @see MDB2::parseDSN
*/
function &singleton($dsn = null, $options = false)
{
if ($dsn) {
$dsninfo = MDB2::parseDSN($dsn);
$dsninfo = array_merge($GLOBALS['_MDB2_dsninfo_default'], $dsninfo);
$keys = array_keys($GLOBALS['_MDB2_databases']);
for ($i=0, $j=count($keys); $i<$j; ++$i) {
if (isset($GLOBALS['_MDB2_databases'][$keys[$i]])) {
$tmp_dsn = $GLOBALS['_MDB2_databases'][$keys[$i]]->getDSN('array');
if (count(array_diff_assoc($tmp_dsn, $dsninfo)) == 0) {
MDB2::setOptions($GLOBALS['_MDB2_databases'][$keys[$i]], $options);
return $GLOBALS['_MDB2_databases'][$keys[$i]];
}
}
}
} elseif (is_array($GLOBALS['_MDB2_databases']) && reset($GLOBALS['_MDB2_databases'])) {
$db =$GLOBALS['_MDB2_databases'][key($GLOBALS['_MDB2_databases'])];
return $db;
}
$db =MDB2::factory($dsn, $options);
return $db;
}
// }}}
// {{{ function areEquals()
/**
* It looks like there's a memory leak in array_diff() in PHP 5.1.x,
* so use this method instead.
* @see http://pear.php.net/bugs/bug.php?id=11790
*
* @param array $arr1
* @param array $arr2
* @return boolean
*/
static function areEquals($arr1, $arr2)
{
if (count($arr1) != count($arr2)) {
return false;
}
foreach (array_keys($arr1) as $k) {
if (!array_key_exists($k, $arr2) || $arr1[$k] != $arr2[$k]) {
return false;
}
}
return true;
}
// }}}
// {{{ function loadFile($file)
/**
* load a file (like 'Date')
*
* @param string name of the file in the MDB2 directory (without '.php')
*
* @return string name of the file that was included
*
* @access public
*/
function loadFile($file)
{
$file_name = 'MDB2'.DIRECTORY_SEPARATOR.$file.'.php';
if (!MDB2::fileExists($file_name)) {
return $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
'unable to find: '.$file_name);
}
if (!include_once($file_name)) {
return $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
'unable to load driver class: '.$file_name);
}
return $file_name;
}
// }}}
// {{{ function apiVersion()
/**
* Return the MDB2 API version
*
* @return string the MDB2 API version number
*
* @access public
*/
function apiVersion()
{
return '2.5.0b2';
}
// }}}
// {{{ function &raiseError($code = null, $mode = null, $options = null, $userinfo = null)
/**
* This method is used to communicate an error and invoke error
* callbacks etc. Basically a wrapper for PEAR::raiseError
* without the message string.
*
* @param mixed int error code
*
* @param int error mode, see PEAR_Error docs
*
* @param mixed If error mode is PEAR_ERROR_TRIGGER, this is the
* error level (E_USER_NOTICE etc). If error mode is
* PEAR_ERROR_CALLBACK, this is the callback function,
* either as a function name, or as an array of an
* object and method name. For other error modes this
* parameter is ignored.
*
* @param string Extra debug information. Defaults to the last
* query and native error code.
*
* @return PEAR_Error instance of a PEAR Error object
*
* @access private
* @see PEAR_Error
*/
function raiseError($code = null,
$mode = null,
$options = null,
$userinfo = null,
$dummy1 = null,
$dummy2 = null,
$dummy3 = false)
{
$err =PEAR::raiseError(null, $code, $mode, $options, $userinfo, 'MDB2_Error', true);
return $err;
}
static function raiseErrorStatic($code = null,
$mode = null,
$options = null,
$userinfo = null,
$dummy1 = null,
$dummy2 = null,
$dummy3 = false)
{
$pear=new PEAR();
$err =$pear->raiseError(null, $code, $mode, $options, $userinfo, 'MDB2_Error', true);
return $err;
}
// }}}
// {{{ function isError($data, $code = null)
/**
* Tell whether a value is a MDB2 error.
*
* @param mixed the value to test
* @param int if is an error object, return true
* only if $code is a string and
* $db->getMessage() == $code or
* $code is an integer and $db->getCode() == $code
*
* @return bool true if parameter is an error
*
* @access public
*/
static function isError($data, $code = null)
{
if ($data instanceof MDB2_Error) {
if (is_null($code)) {
return true;
} elseif (is_string($code)) {
return $data->getMessage() === $code;
} else {
$code = (array)$code;
return in_array($data->getCode(), $code);
}
}
return false;
}
// }}}
// {{{ function isConnection($value)
/**
* Tell whether a value is a MDB2 connection
*
* @param mixed value to test
*
* @return bool whether $value is a MDB2 connection
*
* @access public
*/
static function isConnection($value)
{
return ($value instanceof MDB2_Driver_Common);
}
// }}}
// {{{ function isResult($value)
/**
* Tell whether a value is a MDB2 result
*
* @param mixed value to test
*
* @return bool whether $value is a MDB2 result
*
* @access public
*/
static function isResult($value)
{
return $value instanceof MDB2_Result;
}
// }}}
// {{{ function isResultCommon($value)
/**
* Tell whether a value is a MDB2 result implementing the common interface
*
* @param mixed value to test
*
* @return bool whether $value is a MDB2 result implementing the common interface
*
* @access public
*/
static function isResultCommon($value)
{
return ($value instanceof MDB2_Result_Common);
}
// }}}
// {{{ function isStatement($value)
/**
* Tell whether a value is a MDB2 statement interface
*
* @param mixed value to test
*
* @return bool whether $value is a MDB2 statement interface
*
* @access public
*/
static function isStatement($value)
{
return $value instanceof MDB2_Statement_Common;
}
// }}}
// {{{ function errorMessage($value = null)
/**
* Return a textual error message for a MDB2 error code
*
* @param int|array integer error code,
null to get the current error code-message map,
or an array with a new error code-message map
*
* @return string error message, or false if the error code was
* not recognized
*
* @access public
*/
static function errorMessage($value = null)
{
static $errorMessages;
if (is_array($value)) {
$errorMessages = $value;
return MDB2_OK;
}
if (!isset($errorMessages)) {
$errorMessages = array(
MDB2_OK => 'no error',
MDB2_ERROR => 'unknown error',
MDB2_ERROR_ALREADY_EXISTS => 'already exists',
MDB2_ERROR_CANNOT_CREATE => 'can not create',
MDB2_ERROR_CANNOT_ALTER => 'can not alter',
MDB2_ERROR_CANNOT_REPLACE => 'can not replace',
MDB2_ERROR_CANNOT_DELETE => 'can not delete',
MDB2_ERROR_CANNOT_DROP => 'can not drop',
MDB2_ERROR_CONSTRAINT => 'constraint violation',
MDB2_ERROR_CONSTRAINT_NOT_NULL=> 'null value violates not-null constraint',
MDB2_ERROR_DIVZERO => 'division by zero',
MDB2_ERROR_INVALID => 'invalid',
MDB2_ERROR_INVALID_DATE => 'invalid date or time',
MDB2_ERROR_INVALID_NUMBER => 'invalid number',
MDB2_ERROR_MISMATCH => 'mismatch',
MDB2_ERROR_NODBSELECTED => 'no database selected',
MDB2_ERROR_NOSUCHFIELD => 'no such field',
MDB2_ERROR_NOSUCHTABLE => 'no such table',
MDB2_ERROR_NOT_CAPABLE => 'MDB2 backend not capable',
MDB2_ERROR_NOT_FOUND => 'not found',
MDB2_ERROR_NOT_LOCKED => 'not locked',
MDB2_ERROR_SYNTAX => 'syntax error',
MDB2_ERROR_UNSUPPORTED => 'not supported',
MDB2_ERROR_VALUE_COUNT_ON_ROW => 'value count on row',
MDB2_ERROR_INVALID_DSN => 'invalid DSN',
MDB2_ERROR_CONNECT_FAILED => 'connect failed',
MDB2_ERROR_NEED_MORE_DATA => 'insufficient data supplied',
MDB2_ERROR_EXTENSION_NOT_FOUND=> 'extension not found',
MDB2_ERROR_NOSUCHDB => 'no such database',
MDB2_ERROR_ACCESS_VIOLATION => 'insufficient permissions',
MDB2_ERROR_LOADMODULE => 'error while including on demand module',
MDB2_ERROR_TRUNCATED => 'truncated',
MDB2_ERROR_DEADLOCK => 'deadlock detected',
MDB2_ERROR_NO_PERMISSION => 'no permission',
MDB2_ERROR_DISCONNECT_FAILED => 'disconnect failed',
);
}
if (is_null($value)) {
return $errorMessages;
}
if (PEAR::isError($value)) {
$value = $value->getCode();
}
return isset($errorMessages[$value]) ?
$errorMessages[$value] : $errorMessages[MDB2_ERROR];
}
// }}}
// {{{ function parseDSN($dsn)
/**
* Parse a data source name.
*
* Additional keys can be added by appending a URI query string to the
* end of the DSN.
*
* The format of the supplied DSN is in its fullest form:
* <code>
* phptype(dbsyntax)://username:password@protocol+hostspec/database?option=8&another=true
* </code>
*
* Most variations are allowed:
* <code>
* phptype://username:password@protocol+hostspec:110//usr/db_file.db?mode=0644
* phptype://username:password@hostspec/database_name
* phptype://username:password@hostspec
* phptype://username@hostspec
* phptype://hostspec/database
* phptype://hostspec
* phptype(dbsyntax)
* phptype
* </code>
*
* @param string Data Source Name to be parsed
*
* @return array an associative array with the following keys:
* + phptype: Database backend used in PHP (mysql, odbc etc.)
* + dbsyntax: Database used with regards to SQL syntax etc.
* + protocol: Communication protocol to use (tcp, unix etc.)
* + hostspec: Host specification (hostname[:port])
* + database: Database to use on the DBMS server
* + username: User name for login
* + password: Password for login
*
* @access public
* @author Tomas V.V.Cox <cox@idecnet.com>
*/
static function parseDSN($dsn)
{
$parsed = $GLOBALS['_MDB2_dsninfo_default'];
if (is_array($dsn)) {
$dsn = array_merge($parsed, $dsn);
if (!$dsn['dbsyntax']) {
$dsn['dbsyntax'] = $dsn['phptype'];
}
return $dsn;
}
// Find phptype and dbsyntax
if (($pos = strpos($dsn, '://')) !== false) {
$str = substr($dsn, 0, $pos);
$dsn = substr($dsn, $pos + 3);
} else {
$str = $dsn;
$dsn = null;
}
// Get phptype and dbsyntax
// $str => phptype(dbsyntax)
if (preg_match('|^(.+?)\((.*?)\)$|', $str, $arr)) {
$parsed['phptype'] = $arr[1];
$parsed['dbsyntax'] = !$arr[2] ? $arr[1] : $arr[2];
} else {
$parsed['phptype'] = $str;
$parsed['dbsyntax'] = $str;
}
if (!count($dsn)) {
return $parsed;
}
// Get (if found): username and password
// $dsn => username:password@protocol+hostspec/database
if (($at = strrpos($dsn,'@')) !== false) {
$str = substr($dsn, 0, $at);
$dsn = substr($dsn, $at + 1);
if (($pos = strpos($str, ':')) !== false) {
$parsed['username'] = rawurldecode(substr($str, 0, $pos));
$parsed['password'] = rawurldecode(substr($str, $pos + 1));
} else {
$parsed['username'] = rawurldecode($str);
}
}
// Find protocol and hostspec
// $dsn => proto(proto_opts)/database
if (preg_match('|^([^(]+)\((.*?)\)/?(.*?)$|', $dsn, $match)) {
$proto = $match[1];
$proto_opts = $match[2] ? $match[2] : false;
$dsn = $match[3];
// $dsn => protocol+hostspec/database (old format)
} else {
if (strpos($dsn, '+') !== false) {
list($proto, $dsn) = explode('+', $dsn, 2);
}
if ( strpos($dsn, '//') === 0
&& strpos($dsn, '/', 2) !== false
&& $parsed['phptype'] == 'oci8'
) {
//oracle's "Easy Connect" syntax:
//"username/password@[//]host[:port][/service_name]"
//e.g. "scott/tiger@//mymachine:1521/oracle"
$proto_opts = $dsn;
$dsn = substr($proto_opts, strrpos($proto_opts, '/') + 1);
} elseif (strpos($dsn, '/') !== false) {
list($proto_opts, $dsn) = explode('/', $dsn, 2);
} else {
$proto_opts = $dsn;
$dsn = null;
}
}
// process the different protocol options
$parsed['protocol'] = (!empty($proto)) ? $proto : 'tcp';
$proto_opts = rawurldecode($proto_opts);
if (strpos($proto_opts, ':') !== false) {
list($proto_opts, $parsed['port']) = explode(':', $proto_opts);
}
if ($parsed['protocol'] == 'tcp') {
$parsed['hostspec'] = $proto_opts;
} elseif ($parsed['protocol'] == 'unix') {
$parsed['socket'] = $proto_opts;
}
// Get dabase if any
// $dsn => database
if ($dsn) {
// /database
if (($pos = strpos($dsn, '?')) === false) {
$parsed['database'] = $dsn;
// /database?param1=value1¶m2=value2
} else {
$parsed['database'] = substr($dsn, 0, $pos);
$dsn = substr($dsn, $pos + 1);
if (strpos($dsn, '&') !== false) {
$opts = explode('&', $dsn);
} else { // database?param1=value1
$opts = array($dsn);
}
foreach ($opts as $opt) {
list($key, $value) = explode('=', $opt);
if (!isset($parsed[$key])) {
// don't allow params overwrite
$parsed[$key] = rawurldecode($value);
}
}
}
}
return $parsed;
}
// }}}
// {{{ function fileExists($file)
/**
* Checks if a file exists in the include path
*
* @param string filename
*
* @return bool true success and false on error
*
* @access public
*/
static function fileExists($file)
{
// safe_mode does notwork with is_readable()
if (!@ini_get('safe_mode')) {
$dirs = explode(PATH_SEPARATOR, ini_get('include_path'));
array_unshift($dirs,OC::$SERVERROOT);
array_unshift($dirs,OC::$SERVERROOT. DIRECTORY_SEPARATOR .'inc');
// print_r($dirs);die();
foreach ($dirs as $dir) {
if (is_readable($dir . DIRECTORY_SEPARATOR . $file)) {
return true;
}
}
} else {
$fp = @fopen($file, 'r', true);
if (is_resource($fp)) {
@fclose($fp);
return true;
}
}
return false;
}
// }}}
}
// }}}
// {{{ class MDB2_Error extends PEAR_Error
/**
* MDB2_Error implements a class for reporting portable database error
* messages.
*
* @package MDB2
* @category Database
* @author Stig Bakken <ssb@fast.no>
*/
class MDB2_Error extends PEAR_Error
{
// {{{ constructor: function MDB2_Error($code = MDB2_ERROR, $mode = PEAR_ERROR_RETURN, $level = E_USER_NOTICE, $debuginfo = null)
/**
* MDB2_Error constructor.
*
* @param mixed MDB2 error code, or string with error message.
* @param int what 'error mode' to operate in
* @param int what error level to use for $mode raPEAR_ERROR_TRIGGER
* @param mixed additional debug info, such as the last query
*/
function MDB2_Error($code = MDB2_ERROR, $mode = PEAR_ERROR_RETURN,
$level = E_USER_NOTICE, $debuginfo = null, $dummy = null)
{
if (is_null($code)) {
$code = MDB2_ERROR;
}
$this->PEAR_Error('MDB2 Error: '.MDB2::errorMessage($code), $code,
$mode, $level, $debuginfo);
}
// }}}
}
// }}}
// {{{ class MDB2_Driver_Common extends PEAR
/**
* MDB2_Driver_Common: Base class that is extended by each MDB2 driver
*
* @package MDB2
* @category Database
* @author Lukas Smith <smith@pooteeweet.org>
*/
class MDB2_Driver_Common extends PEAR
{
// {{{ Variables (Properties)
/**
* index of the MDB2 object within the $GLOBALS['_MDB2_databases'] array
* @var int
* @access public
*/
var $db_index = 0;
/**
* DSN used for the next query
* @var array
* @access protected
*/
var $dsn = array();
/**
* DSN that was used to create the current connection
* @var array
* @access protected
*/
var $connected_dsn = array();
/**
* connection resource
* @var mixed
* @access protected
*/
var $connection = 0;
/**
* if the current opened connection is a persistent connection
* @var bool
* @access protected
*/
var $opened_persistent;
/**
* the name of the database for the next query
* @var string
* @access protected
*/
var $database_name = '';
/**
* the name of the database currently selected
* @var string
* @access protected
*/
var $connected_database_name = '';
/**
* server version information
* @var string
* @access protected
*/
var $connected_server_info = '';
/**
* list of all supported features of the given driver
* @var array
* @access public
*/
var $supported = array(
'sequences' => false,
'indexes' => false,
'affected_rows' => false,
'summary_functions' => false,
'order_by_text' => false,
'transactions' => false,
'savepoints' => false,
'current_id' => false,
'limit_queries' => false,
'LOBs' => false,
'replace' => false,
'sub_selects' => false,
'triggers' => false,
'auto_increment' => false,
'primary_key' => false,
'result_introspection' => false,
'prepared_statements' => false,
'identifier_quoting' => false,
'pattern_escaping' => false,
'new_link' => false,
);
/**
* Array of supported options that can be passed to the MDB2 instance.
*
* The options can be set during object creation, using
* MDB2::connect(), MDB2::factory() or MDB2::singleton(). The options can
* also be set after the object is created, using MDB2::setOptions() or
* MDB2_Driver_Common::setOption().
* The list of available option includes:
* <ul>
* <li>$options['ssl'] -> boolean: determines if ssl should be used for connections</li>
* <li>$options['field_case'] -> CASE_LOWER|CASE_UPPER: determines what case to force on field/table names</li>
* <li>$options['disable_query'] -> boolean: determines if queries should be executed</li>
* <li>$options['result_class'] -> string: class used for result sets</li>
* <li>$options['buffered_result_class'] -> string: class used for buffered result sets</li>
* <li>$options['result_wrap_class'] -> string: class used to wrap result sets into</li>
* <li>$options['result_buffering'] -> boolean should results be buffered or not?</li>
* <li>$options['fetch_class'] -> string: class to use when fetch mode object is used</li>
* <li>$options['persistent'] -> boolean: persistent connection?</li>
* <li>$options['debug'] -> integer: numeric debug level</li>
* <li>$options['debug_handler'] -> string: function/method that captures debug messages</li>
* <li>$options['debug_expanded_output'] -> bool: BC option to determine if more context information should be send to the debug handler</li>
* <li>$options['default_text_field_length'] -> integer: default text field length to use</li>
* <li>$options['lob_buffer_length'] -> integer: LOB buffer length</li>
* <li>$options['log_line_break'] -> string: line-break format</li>
* <li>$options['idxname_format'] -> string: pattern for index name</li>
* <li>$options['seqname_format'] -> string: pattern for sequence name</li>
* <li>$options['savepoint_format'] -> string: pattern for auto generated savepoint names</li>
* <li>$options['statement_format'] -> string: pattern for prepared statement names</li>
* <li>$options['seqcol_name'] -> string: sequence column name</li>
* <li>$options['quote_identifier'] -> boolean: if identifier quoting should be done when check_option is used</li>
* <li>$options['use_transactions'] -> boolean: if transaction use should be enabled</li>
* <li>$options['decimal_places'] -> integer: number of decimal places to handle</li>
* <li>$options['portability'] -> integer: portability constant</li>
* <li>$options['modules'] -> array: short to long module name mapping for __call()</li>
* <li>$options['emulate_prepared'] -> boolean: force prepared statements to be emulated</li>
* <li>$options['datatype_map'] -> array: map user defined datatypes to other primitive datatypes</li>
* <li>$options['datatype_map_callback'] -> array: callback function/method that should be called</li>
* <li>$options['bindname_format'] -> string: regular expression pattern for named parameters</li>
* <li>$options['multi_query'] -> boolean: determines if queries returning multiple result sets should be executed</li>
* <li>$options['max_identifiers_length'] -> integer: max identifier length</li>
* <li>$options['default_fk_action_onupdate'] -> string: default FOREIGN KEY ON UPDATE action ['RESTRICT'|'NO ACTION'|'SET DEFAULT'|'SET NULL'|'CASCADE']</li>
* <li>$options['default_fk_action_ondelete'] -> string: default FOREIGN KEY ON DELETE action ['RESTRICT'|'NO ACTION'|'SET DEFAULT'|'SET NULL'|'CASCADE']</li>
* </ul>
*
* @var array
* @access public
* @see MDB2::connect()
* @see MDB2::factory()
* @see MDB2::singleton()
* @see MDB2_Driver_Common::setOption()
*/
var $options = array(
'ssl' => false,
'field_case' => CASE_LOWER,
'disable_query' => false,
'result_class' => 'MDB2_Result_%s',
'buffered_result_class' => 'MDB2_BufferedResult_%s',
'result_wrap_class' => false,
'result_buffering' => true,
'fetch_class' => 'stdClass',
'persistent' => false,
'debug' => 0,
'debug_handler' => 'MDB2_defaultDebugOutput',
'debug_expanded_output' => false,
'default_text_field_length' => 4096,
'lob_buffer_length' => 8192,
'log_line_break' => "\n",
'idxname_format' => '%s_idx',
'seqname_format' => '%s_seq',
'savepoint_format' => 'MDB2_SAVEPOINT_%s',
'statement_format' => 'MDB2_STATEMENT_%1$s_%2$s',
'seqcol_name' => 'sequence',
'quote_identifier' => false,
'use_transactions' => true,
'decimal_places' => 2,
'portability' => MDB2_PORTABILITY_ALL,
'modules' => array(
'ex' => 'Extended',
'dt' => 'Datatype',
'mg' => 'Manager',
'rv' => 'Reverse',
'na' => 'Native',
'fc' => 'Function',
),
'emulate_prepared' => false,
'datatype_map' => array(),
'datatype_map_callback' => array(),
'nativetype_map_callback' => array(),
'lob_allow_url_include' => false,
'bindname_format' => '(?:\d+)|(?:[a-zA-Z][a-zA-Z0-9_]*)',
'max_identifiers_length' => 30,
'default_fk_action_onupdate' => 'RESTRICT',
'default_fk_action_ondelete' => 'RESTRICT',
);
/**
* string array
* @var string
* @access protected
*/
var $string_quoting = array('start' => "'", 'end' => "'", 'escape' => false, 'escape_pattern' => false);
/**
* identifier quoting
* @var array
* @access protected
*/
var $identifier_quoting = array('start' => '"', 'end' => '"', 'escape' => '"');
/**
* sql comments
* @var array
* @access protected
*/
var $sql_comments = array(
array('start' => '--', 'end' => "\n", 'escape' => false),
array('start' => '/*', 'end' => '*/', 'escape' => false),
);
/**
* comparision wildcards
* @var array
* @access protected
*/
var $wildcards = array('%', '_');
/**
* column alias keyword
* @var string
* @access protected
*/
var $as_keyword = ' AS ';
/**
* warnings
* @var array
* @access protected
*/
var $warnings = array();
/**
* string with the debugging information
* @var string
* @access public
*/
var $debug_output = '';
/**
* determine if there is an open transaction
* @var bool
* @access protected
*/
var $in_transaction = false;
/**
* the smart transaction nesting depth
* @var int
* @access protected
*/
var $nested_transaction_counter = null;
/**
* the first error that occured inside a nested transaction
* @var MDB2_Error|bool
* @access protected
*/
var $has_transaction_error = false;
/**
* result offset used in the next query
* @var int
* @access protected
*/
var $offset = 0;
/**
* result limit used in the next query
* @var int
* @access protected
*/
var $limit = 0;
/**
* Database backend used in PHP (mysql, odbc etc.)
* @var string
* @access public
*/
var $phptype;
/**
* Database used with regards to SQL syntax etc.
* @var string
* @access public
*/
var $dbsyntax;
/**
* the last query sent to the driver
* @var string
* @access public
*/
var $last_query;
/**
* the default fetchmode used
* @var int
* @access protected
*/
var $fetchmode = MDB2_FETCHMODE_ORDERED;
/**
* array of module instances
* @var array
* @access protected
*/
var $modules = array();
/**
* determines of the PHP4 destructor emulation has been enabled yet
* @var array
* @access protected
*/
var $destructor_registered = true;
// }}}
// {{{ constructor: function __construct()
/**
* Constructor
*/
function __construct()
{
end($GLOBALS['_MDB2_databases']);
$db_index = key($GLOBALS['_MDB2_databases']) + 1;
$GLOBALS['_MDB2_databases'][$db_index] = &$this;
$this->db_index = $db_index;
}
// }}}
// {{{ destructor: function __destruct()
/**
* Destructor
*/
function __destruct()
{
$this->disconnect(false);
}
// }}}
// {{{ function free()
/**
* Free the internal references so that the instance can be destroyed
*
* @return bool true on success, false if result is invalid
*
* @access public
*/
function free()
{
unset($GLOBALS['_MDB2_databases'][$this->db_index]);
unset($this->db_index);
return MDB2_OK;
}
// }}}
// {{{ function __toString()
/**
* String conversation
*
* @return string representation of the object
*
* @access public
*/
function __toString()
{
$info = get_class($this);
$info.= ': (phptype = '.$this->phptype.', dbsyntax = '.$this->dbsyntax.')';
if ($this->connection) {
$info.= ' [connected]';
}
return $info;
}
// }}}
// {{{ function errorInfo($error = null)
/**
* This method is used to collect information about an error
*
* @param mixed error code or resource
*
* @return array with MDB2 errorcode, native error code, native message
*
* @access public
*/
function errorInfo($error = null)
{
return array($error, null, null);
}
// }}}
// {{{ function &raiseError($code = null, $mode = null, $options = null, $userinfo = null)
/**
* This method is used to communicate an error and invoke error
* callbacks etc. Basically a wrapper for PEAR::raiseError
* without the message string.
*
* @param mixed $code integer error code, or a PEAR error object (all
* other parameters are ignored if this parameter is
* an object
* @param int $mode error mode, see PEAR_Error docs
* @param mixed $options If error mode is PEAR_ERROR_TRIGGER, this is the
* error level (E_USER_NOTICE etc). If error mode is
* PEAR_ERROR_CALLBACK, this is the callback function,
* either as a function name, or as an array of an
* object and method name. For other error modes this
* parameter is ignored.
* @param string $userinfo Extra debug information. Defaults to the last
* query and native error code.
* @param string $method name of the method that triggered the error
* @param string $dummy1 not used
* @param bool $dummy2 not used
*
* @return PEAR_Error instance of a PEAR Error object
* @access public
* @see PEAR_Error
*/
function raiseError($code = null,
$mode = null,
$options = null,
$userinfo = null,
$method = null,
$dummy1 = null,
$dummy2 = false
) {
$userinfo = "[Error message: $userinfo]\n";
// The error is yet a MDB2 error object
if (PEAR::isError($code)) {
// because we use the static PEAR::raiseError, our global
// handler should be used if it is set
if (is_null($mode) && !empty($this->_default_error_mode)) {
$mode = $this->_default_error_mode;
$options = $this->_default_error_options;
}
if (is_null($userinfo)) {
$userinfo = $code->getUserinfo();
}
$code = $code->getCode();
} elseif ($code == MDB2_ERROR_NOT_FOUND) {
// extension not loaded: don't call $this->errorInfo() or the script
// will die
} elseif (isset($this->connection)) {
if (!empty($this->last_query)) {
$userinfo.= "[Last executed query: {$this->last_query}]\n";
}
$native_errno = $native_msg = null;
list($code, $native_errno, $native_msg) = $this->errorInfo($code);
if (!is_null($native_errno) && $native_errno !== '') {
$userinfo.= "[Native code: $native_errno]\n";
}
if (!is_null($native_msg) && $native_msg !== '') {
$userinfo.= "[Native message: ". strip_tags($native_msg) ."]\n";
}
echo $userinfo;
if (!is_null($method)) {
$userinfo = $method.': '.$userinfo;
}
}
$err = PEAR::raiseError(null, $code, $mode, $options, $userinfo, 'MDB2_Error', true);
if ($err->getMode() !== PEAR_ERROR_RETURN
&& isset($this->nested_transaction_counter) && !$this->has_transaction_error) {
$this->has_transaction_error =$err;
}
return $err;
}
// }}}
// {{{ function resetWarnings()
/**
* reset the warning array
*
* @return void
*
* @access public
*/
function resetWarnings()
{
$this->warnings = array();
}
// }}}
// {{{ function getWarnings()
/**
* Get all warnings in reverse order.
* This means that the last warning is the first element in the array
*
* @return array with warnings
*
* @access public
* @see resetWarnings()
*/
function getWarnings()
{
return array_reverse($this->warnings);
}
// }}}
// {{{ function setFetchMode($fetchmode, $object_class = 'stdClass')
/**
* Sets which fetch mode should be used by default on queries
* on this connection
*
* @param int MDB2_FETCHMODE_ORDERED, MDB2_FETCHMODE_ASSOC
* or MDB2_FETCHMODE_OBJECT
* @param string the class name of the object to be returned
* by the fetch methods when the
* MDB2_FETCHMODE_OBJECT mode is selected.
* If no class is specified by default a cast
* to object from the assoc array row will be
* done. There is also the possibility to use
* and extend the 'MDB2_row' class.
*
* @return mixed MDB2_OK or MDB2 Error Object
*
* @access public
* @see MDB2_FETCHMODE_ORDERED, MDB2_FETCHMODE_ASSOC, MDB2_FETCHMODE_OBJECT
*/
function setFetchMode($fetchmode, $object_class = 'stdClass')
{
switch ($fetchmode) {
case MDB2_FETCHMODE_OBJECT:
$this->options['fetch_class'] = $object_class;
case MDB2_FETCHMODE_ORDERED:
case MDB2_FETCHMODE_ASSOC:
$this->fetchmode = $fetchmode;
break;
default:
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'invalid fetchmode mode', __FUNCTION__);
}
return MDB2_OK;
}
// }}}
// {{{ function setOption($option, $value)
/**
* set the option for the db class
*
* @param string option name
* @param mixed value for the option
*
* @return mixed MDB2_OK or MDB2 Error Object
*
* @access public
*/
function setOption($option, $value)
{
if (array_key_exists($option, $this->options)) {
$this->options[$option] = $value;
return MDB2_OK;
}
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
"unknown option $option", __FUNCTION__);
}
// }}}
// {{{ function getOption($option)
/**
* Returns the value of an option
*
* @param string option name
*
* @return mixed the option value or error object
*
* @access public
*/
function getOption($option)
{
if (array_key_exists($option, $this->options)) {
return $this->options[$option];
}
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
"unknown option $option", __FUNCTION__);
}
// }}}
// {{{ function debug($message, $scope = '', $is_manip = null)
/**
* set a debug message
*
* @param string message that should be appended to the debug variable
* @param string usually the method name that triggered the debug call:
* for example 'query', 'prepare', 'execute', 'parameters',
* 'beginTransaction', 'commit', 'rollback'
* @param array contains context information about the debug() call
* common keys are: is_manip, time, result etc.
*
* @return void
*
* @access public
*/
function debug($message, $scope = '', $context = array())
{
if ($this->options['debug'] && $this->options['debug_handler']) {
if (!$this->options['debug_expanded_output']) {
if (!empty($context['when']) && $context['when'] !== 'pre') {
return null;
}
$context = empty($context['is_manip']) ? false : $context['is_manip'];
}
return call_user_func_array($this->options['debug_handler'], array(&$this, $scope, $message, $context));
}
return null;
}
// }}}
// {{{ function getDebugOutput()
/**
* output debug info
*
* @return string content of the debug_output class variable
*
* @access public
*/
function getDebugOutput()
{
return $this->debug_output;
}
// }}}
// {{{ function escape($text)
/**
* Quotes a string so it can be safely used in a query. It will quote
* the text so it can safely be used within a query.
*
* @param string the input string to quote
* @param bool escape wildcards
*
* @return string quoted string
*
* @access public
*/
function escape($text, $escape_wildcards = false)
{
if ($escape_wildcards) {
$text = $this->escapePattern($text);
}
$text = str_replace($this->string_quoting['end'], $this->string_quoting['escape'] . $this->string_quoting['end'], $text);
return $text;
}
// }}}
// {{{ function escapePattern($text)
/**
* Quotes pattern (% and _) characters in a string)
*
* @param string the input string to quote
*
* @return string quoted string
*
* @access public
*/
function escapePattern($text)
{
if ($this->string_quoting['escape_pattern']) {
$text = str_replace($this->string_quoting['escape_pattern'], $this->string_quoting['escape_pattern'] . $this->string_quoting['escape_pattern'], $text);
foreach ($this->wildcards as $wildcard) {
$text = str_replace($wildcard, $this->string_quoting['escape_pattern'] . $wildcard, $text);
}
}
return $text;
}
// }}}
// {{{ function quoteIdentifier($str, $check_option = false)
/**
* Quote a string so it can be safely used as a table or column name
*
* Delimiting style depends on which database driver is being used.
*
* NOTE: just because you CAN use delimited identifiers doesn't mean
* you SHOULD use them. In general, they end up causing way more
* problems than they solve.
*
* NOTE: if you have table names containing periods, don't use this method
* (@see bug #11906)
*
* Portability is broken by using the following characters inside
* delimited identifiers:
* + backtick (<kbd>`</kbd>) -- due to MySQL
* + double quote (<kbd>"</kbd>) -- due to Oracle
* + brackets (<kbd>[</kbd> or <kbd>]</kbd>) -- due to Access
*
* Delimited identifiers are known to generally work correctly under
* the following drivers:
* + mssql
* + mysql
* + mysqli
* + oci8
* + pgsql
* + sqlite
*
* InterBase doesn't seem to be able to use delimited identifiers
* via PHP 4. They work fine under PHP 5.
*
* @param string identifier name to be quoted
* @param bool check the 'quote_identifier' option
*
* @return string quoted identifier string
*
* @access public
*/
function quoteIdentifier($str, $check_option = false)
{
if ($check_option && !$this->options['quote_identifier']) {
return $str;
}
$str = str_replace($this->identifier_quoting['end'], $this->identifier_quoting['escape'] . $this->identifier_quoting['end'], $str);
$parts = explode('.', $str);
foreach (array_keys($parts) as $k) {
$parts[$k] = $this->identifier_quoting['start'] . $parts[$k] . $this->identifier_quoting['end'];
}
return implode('.', $parts);
}
// }}}
// {{{ function getAsKeyword()
/**
* Gets the string to alias column
*
* @return string to use when aliasing a column
*/
function getAsKeyword()
{
return $this->as_keyword;
}
// }}}
// {{{ function getConnection()
/**
* Returns a native connection
*
* @return mixed a valid MDB2 connection object,
* or a MDB2 error object on error
*
* @access public
*/
function getConnection()
{
$result = $this->connect();
if (PEAR::isError($result)) {
return $result;
}
return $this->connection;
}
// }}}
// {{{ function _fixResultArrayValues(&$row, $mode)
/**
* Do all necessary conversions on result arrays to fix DBMS quirks
*
* @param array the array to be fixed (passed by reference)
* @param array bit-wise addition of the required portability modes
*
* @return void
*
* @access protected
*/
function _fixResultArrayValues(&$row, $mode)
{
switch ($mode) {
case MDB2_PORTABILITY_EMPTY_TO_NULL:
foreach ($row as $key => $value) {
if ($value === '') {
$row[$key] = null;
}
}
break;
case MDB2_PORTABILITY_RTRIM:
foreach ($row as $key => $value) {
if (is_string($value)) {
$row[$key] = rtrim($value);
}
}
break;
case MDB2_PORTABILITY_FIX_ASSOC_FIELD_NAMES:
$tmp_row = array();
foreach ($row as $key => $value) {
$tmp_row[preg_replace('/^(?:.*\.)?([^.]+)$/', '\\1', $key)] = $value;
}
$row = $tmp_row;
break;
case (MDB2_PORTABILITY_RTRIM + MDB2_PORTABILITY_EMPTY_TO_NULL):
foreach ($row as $key => $value) {
if ($value === '') {
$row[$key] = null;
} elseif (is_string($value)) {
$row[$key] = rtrim($value);
}
}
break;
case (MDB2_PORTABILITY_RTRIM + MDB2_PORTABILITY_FIX_ASSOC_FIELD_NAMES):
$tmp_row = array();
foreach ($row as $key => $value) {
if (is_string($value)) {
$value = rtrim($value);
}
$tmp_row[preg_replace('/^(?:.*\.)?([^.]+)$/', '\\1', $key)] = $value;
}
$row = $tmp_row;
break;
case (MDB2_PORTABILITY_EMPTY_TO_NULL + MDB2_PORTABILITY_FIX_ASSOC_FIELD_NAMES):
$tmp_row = array();
foreach ($row as $key => $value) {
if ($value === '') {
$value = null;
}
$tmp_row[preg_replace('/^(?:.*\.)?([^.]+)$/', '\\1', $key)] = $value;
}
$row = $tmp_row;
break;
case (MDB2_PORTABILITY_RTRIM + MDB2_PORTABILITY_EMPTY_TO_NULL + MDB2_PORTABILITY_FIX_ASSOC_FIELD_NAMES):
$tmp_row = array();
foreach ($row as $key => $value) {
if ($value === '') {
$value = null;
} elseif (is_string($value)) {
$value = rtrim($value);
}
$tmp_row[preg_replace('/^(?:.*\.)?([^.]+)$/', '\\1', $key)] = $value;
}
$row = $tmp_row;
break;
}
}
// }}}
// {{{ function &loadModule($module, $property = null, $phptype_specific = null)
/**
* loads a module
*
* @param string name of the module that should be loaded
* (only used for error messages)
* @param string name of the property into which the class will be loaded
* @param bool if the class to load for the module is specific to the
* phptype
*
* @return object on success a reference to the given module is returned
* and on failure a PEAR error
*
* @access public
*/
function &loadModule($module, $property = null, $phptype_specific = null)
{
if (!$property) {
$property = strtolower($module);
}
if (!isset($this->{$property})) {
$version = $phptype_specific;
if ($phptype_specific !== false) {
$version = true;
$class_name = 'MDB2_Driver_'.$module.'_'.$this->phptype;
$file_name = str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php';
}
if ($phptype_specific === false
|| (!MDB2::classExists($class_name) && !MDB2::fileExists($file_name))
) {
$version = false;
$class_name = 'MDB2_'.$module;
$file_name = str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php';
}
$err = MDB2::loadClass($class_name, $this->getOption('debug'));
if (PEAR::isError($err)) {
return $err;
}
// load module in a specific version
if ($version) {
if (method_exists($class_name, 'getClassName')) {
$class_name_new = call_user_func(array($class_name, 'getClassName'), $this->db_index);
if ($class_name != $class_name_new) {
$class_name = $class_name_new;
$err = MDB2::loadClass($class_name, $this->getOption('debug'));
if (PEAR::isError($err)) {
return $err;
}
}
}
}
if (!MDB2::classExists($class_name)) {
$err =$this->raiseError(MDB2_ERROR_LOADMODULE, null, null,
"unable to load module '$module' into property '$property'", __FUNCTION__);
return $err;
}
$this->{$property} = new $class_name($this->db_index);
$this->modules[$module] =$this->{$property};
if ($version) {
// this will be used in the connect method to determine if the module
// needs to be loaded with a different version if the server
// version changed in between connects
$this->loaded_version_modules[] = $property;
}
}
return $this->{$property};
}
// }}}
// {{{ function __call($method, $params)
/**
* Calls a module method using the __call magic method
*
* @param string Method name.
* @param array Arguments.
*
* @return mixed Returned value.
*/
function __call($method, $params)
{
$module = null;
if (preg_match('/^([a-z]+)([A-Z])(.*)$/', $method, $match)
&& isset($this->options['modules'][$match[1]])
) {
$module = $this->options['modules'][$match[1]];
$method = strtolower($match[2]).$match[3];
if (!isset($this->modules[$module]) || !is_object($this->modules[$module])) {
$result =& $this->loadModule($module);
if (PEAR::isError($result)) {
return $result;
}
}
} else {
foreach ($this->modules as $key => $foo) {
if (is_object($this->modules[$key])
&& method_exists($this->modules[$key], $method)
) {
$module = $key;
break;
}
}
}
if (!is_null($module)) {
return call_user_func_array(array(&$this->modules[$module], $method), $params);
}
trigger_error(sprintf('Call to undefined function: %s::%s().', get_class($this), $method), E_USER_ERROR);
}
// }}}
// {{{ function beginTransaction($savepoint = null)
/**
* Start a transaction or set a savepoint.
*
* @param string name of a savepoint to set
* @return mixed MDB2_OK on success, a MDB2 error on failure
*
* @access public
*/
function beginTransaction($savepoint = null)
{
$this->debug('Starting transaction', __FUNCTION__, array('is_manip' => true, 'savepoint' => $savepoint));
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'transactions are not supported', __FUNCTION__);
}
// }}}
// {{{ function commit($savepoint = null)
/**
* Commit the database changes done during a transaction that is in
* progress or release a savepoint. This function may only be called when
* auto-committing is disabled, otherwise it will fail. Therefore, a new
* transaction is implicitly started after committing the pending changes.
*
* @param string name of a savepoint to release
* @return mixed MDB2_OK on success, a MDB2 error on failure
*
* @access public
*/
function commit($savepoint = null)
{
$this->debug('Committing transaction/savepoint', __FUNCTION__, array('is_manip' => true, 'savepoint' => $savepoint));
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'commiting transactions is not supported', __FUNCTION__);
}
// }}}
// {{{ function rollback($savepoint = null)
/**
* Cancel any database changes done during a transaction or since a specific
* savepoint that is in progress. This function may only be called when
* auto-committing is disabled, otherwise it will fail. Therefore, a new
* transaction is implicitly started after canceling the pending changes.
*
* @param string name of a savepoint to rollback to
* @return mixed MDB2_OK on success, a MDB2 error on failure
*
* @access public
*/
function rollback($savepoint = null)
{
$this->debug('Rolling back transaction/savepoint', __FUNCTION__, array('is_manip' => true, 'savepoint' => $savepoint));
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'rolling back transactions is not supported', __FUNCTION__);
}
// }}}
// {{{ function inTransaction($ignore_nested = false)
/**
* If a transaction is currently open.
*
* @param bool if the nested transaction count should be ignored
* @return int|bool - an integer with the nesting depth is returned if a
* nested transaction is open
* - true is returned for a normal open transaction
* - false is returned if no transaction is open
*
* @access public
*/
function inTransaction($ignore_nested = false)
{
if (!$ignore_nested && isset($this->nested_transaction_counter)) {
return $this->nested_transaction_counter;
}
return $this->in_transaction;
}
// }}}
// {{{ function setTransactionIsolation($isolation)
/**
* Set the transacton isolation level.
*
* @param string standard isolation level
* READ UNCOMMITTED (allows dirty reads)
* READ COMMITTED (prevents dirty reads)
* REPEATABLE READ (prevents nonrepeatable reads)
* SERIALIZABLE (prevents phantom reads)
* @param array some transaction options:
* 'wait' => 'WAIT' | 'NO WAIT'
* 'rw' => 'READ WRITE' | 'READ ONLY'
* @return mixed MDB2_OK on success, a MDB2 error on failure
*
* @access public
* @since 2.1.1
*/
static function setTransactionIsolation($isolation, $options = array())
{
$this->debug('Setting transaction isolation level', __FUNCTION__, array('is_manip' => true));
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'isolation level setting is not supported', __FUNCTION__);
}
// }}}
// {{{ function beginNestedTransaction($savepoint = false)
/**
* Start a nested transaction.
*
* @return mixed MDB2_OK on success/savepoint name, a MDB2 error on failure
*
* @access public
* @since 2.1.1
*/
function beginNestedTransaction()
{
if ($this->in_transaction) {
++$this->nested_transaction_counter;
$savepoint = sprintf($this->options['savepoint_format'], $this->nested_transaction_counter);
if ($this->supports('savepoints') && $savepoint) {
return $this->beginTransaction($savepoint);
}
return MDB2_OK;
}
$this->has_transaction_error = false;
$result = $this->beginTransaction();
$this->nested_transaction_counter = 1;
return $result;
}
// }}}
// {{{ function completeNestedTransaction($force_rollback = false, $release = false)
/**
* Finish a nested transaction by rolling back if an error occured or
* committing otherwise.
*
* @param bool if the transaction should be rolled back regardless
* even if no error was set within the nested transaction
* @return mixed MDB_OK on commit/counter decrementing, false on rollback
* and a MDB2 error on failure
*
* @access public
* @since 2.1.1
*/
function completeNestedTransaction($force_rollback = false)
{
if ($this->nested_transaction_counter > 1) {
$savepoint = sprintf($this->options['savepoint_format'], $this->nested_transaction_counter);
if ($this->supports('savepoints') && $savepoint) {
if ($force_rollback || $this->has_transaction_error) {
$result = $this->rollback($savepoint);
if (!PEAR::isError($result)) {
$result = false;
$this->has_transaction_error = false;
}
} else {
$result = $this->commit($savepoint);
}
} else {
$result = MDB2_OK;
}
--$this->nested_transaction_counter;
return $result;
}
$this->nested_transaction_counter = null;
$result = MDB2_OK;
// transaction has not yet been rolled back
if ($this->in_transaction) {
if ($force_rollback || $this->has_transaction_error) {
$result = $this->rollback();
if (!PEAR::isError($result)) {
$result = false;
}
} else {
$result = $this->commit();
}
}
$this->has_transaction_error = false;
return $result;
}
// }}}
// {{{ function failNestedTransaction($error = null, $immediately = false)
/**
* Force setting nested transaction to failed.
*
* @param mixed value to return in getNestededTransactionError()
* @param bool if the transaction should be rolled back immediately
* @return bool MDB2_OK
*
* @access public
* @since 2.1.1
*/
function failNestedTransaction($error = null, $immediately = false)
{
if (is_null($error)) {
$error = $this->has_transaction_error ? $this->has_transaction_error : true;
} elseif (!$error) {
$error = true;
}
$this->has_transaction_error = $error;
if (!$immediately) {
return MDB2_OK;
}
return $this->rollback();
}
// }}}
// {{{ function getNestedTransactionError()
/**
* The first error that occured since the transaction start.
*
* @return MDB2_Error|bool MDB2 error object if an error occured or false.
*
* @access public
* @since 2.1.1
*/
function getNestedTransactionError()
{
return $this->has_transaction_error;
}
// }}}
// {{{ connect()
/**
* Connect to the database
*
* @return true on success, MDB2 Error Object on failure
*/
function connect()
{
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'method not implemented', __FUNCTION__);
}
// }}}
// {{{ databaseExists()
/**
* check if given database name is exists?
*
* @param string $name name of the database that should be checked
*
* @return mixed true/false on success, a MDB2 error on failure
* @access public
*/
function databaseExists($name)
{
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'method not implemented', __FUNCTION__);
}
// }}}
// {{{ setCharset($charset, $connection = null)
/**
* Set the charset on the current connection
*
* @param string charset
* @param resource connection handle
*
* @return true on success, MDB2 Error Object on failure
*/
function setCharset($charset, $connection = null)
{
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'method not implemented', __FUNCTION__);
}
// }}}
// {{{ function disconnect($force = true)
/**
* Log out and disconnect from the database.
*
* @param boolean $force whether the disconnect should be forced even if the
* connection is opened persistently
*
* @return mixed true on success, false if not connected and error object on error
*
* @access public
*/
function disconnect($force = true)
{
$this->connection = 0;
$this->connected_dsn = array();
$this->connected_database_name = '';
$this->opened_persistent = null;
$this->connected_server_info = '';
$this->in_transaction = null;
$this->nested_transaction_counter = null;
return MDB2_OK;
}
// }}}
// {{{ function setDatabase($name)
/**
* Select a different database
*
* @param string name of the database that should be selected
*
* @return string name of the database previously connected to
*
* @access public
*/
function setDatabase($name)
{
$previous_database_name = (isset($this->database_name)) ? $this->database_name : '';
$this->database_name = $name;
if (!empty($this->connected_database_name) && ($this->connected_database_name != $this->database_name)) {
$this->disconnect(false);
}
return $previous_database_name;
}
// }}}
// {{{ function getDatabase()
/**
* Get the current database
*
* @return string name of the database
*
* @access public
*/
function getDatabase()
{
return $this->database_name;
}
// }}}
// {{{ function setDSN($dsn)
/**
* set the DSN
*
* @param mixed DSN string or array
*
* @return MDB2_OK
*
* @access public
*/
function setDSN($dsn)
{
$dsn_default = $GLOBALS['_MDB2_dsninfo_default'];
$dsn = MDB2::parseDSN($dsn);
if (array_key_exists('database', $dsn)) {
$this->database_name = $dsn['database'];
unset($dsn['database']);
}
$this->dsn = array_merge($dsn_default, $dsn);
return $this->disconnect(false);
}
// }}}
// {{{ function getDSN($type = 'string', $hidepw = false)
/**
* return the DSN as a string
*
* @param string format to return ("array", "string")
* @param string string to hide the password with
*
* @return mixed DSN in the chosen type
*
* @access public
*/
function getDSN($type = 'string', $hidepw = false)
{
$dsn = array_merge($GLOBALS['_MDB2_dsninfo_default'], $this->dsn);
$dsn['phptype'] = $this->phptype;
$dsn['database'] = $this->database_name;
if ($hidepw) {
$dsn['password'] = $hidepw;
}
switch ($type) {
// expand to include all possible options
case 'string':
$dsn = $dsn['phptype'].
($dsn['dbsyntax'] ? ('('.$dsn['dbsyntax'].')') : '').
'://'.$dsn['username'].':'.
$dsn['password'].'@'.$dsn['hostspec'].
($dsn['port'] ? (':'.$dsn['port']) : '').
'/'.$dsn['database'];
break;
case 'array':
default:
break;
}
return $dsn;
}
// }}}
// {{{ _isNewLinkSet()
/**
* Check if the 'new_link' option is set
*
* @return boolean
*
* @access protected
*/
function _isNewLinkSet()
{
return (isset($this->dsn['new_link'])
&& ($this->dsn['new_link'] === true
|| (is_string($this->dsn['new_link']) && preg_match('/^true$/i', $this->dsn['new_link']))
|| (is_numeric($this->dsn['new_link']) && 0 != (int)$this->dsn['new_link'])
)
);
}
// }}}
// {{{ function &standaloneQuery($query, $types = null, $is_manip = false)
/**
* execute a query as database administrator
*
* @param string the SQL query
* @param mixed array that contains the types of the columns in
* the result set
* @param bool if the query is a manipulation query
*
* @return mixed MDB2_OK on success, a MDB2 error on failure
*
* @access public
*/
function &standaloneQuery($query, $types = null, $is_manip = false)
{
$offset = $this->offset;
$limit = $this->limit;
$this->offset = $this->limit = 0;
$query = $this->_modifyQuery($query, $is_manip, $limit, $offset);
$connection = $this->getConnection();
if (PEAR::isError($connection)) {
return $connection;
}
$result =$this->_doQuery($query, $is_manip, $connection, false);
if (PEAR::isError($result)) {
return $result;
}
if ($is_manip) {
$affected_rows = $this->_affectedRows($connection, $result);
return $affected_rows;
}
$result =$this->_wrapResult($result, $types, true, false, $limit, $offset);
return $result;
}
// }}}
// {{{ function _modifyQuery($query, $is_manip, $limit, $offset)
/**
* Changes a query string for various DBMS specific reasons
*
* @param string query to modify
* @param bool if it is a DML query
* @param int limit the number of rows
* @param int start reading from given offset
*
* @return string modified query
*
* @access protected
*/
function _modifyQuery($query, $is_manip, $limit, $offset)
{
return $query;
}
// }}}
// {{{ function &_doQuery($query, $is_manip = false, $connection = null, $database_name = null)
/**
* Execute a query
* @param string query
* @param bool if the query is a manipulation query
* @param resource connection handle
* @param string database name
*
* @return result or error object
*
* @access protected
*/
function &_doQuery($query, $is_manip = false, $connection = null, $database_name = null)
{
$this->last_query = $query;
$result = $this->debug($query, 'query', array('is_manip' => $is_manip, 'when' => 'pre'));
if ($result) {
if (PEAR::isError($result)) {
return $result;
}
$query = $result;
}
$err =$this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'method not implemented', __FUNCTION__);
return $err;
}
// }}}
// {{{ function _affectedRows($connection, $result = null)
/**
* Returns the number of rows affected
*
* @param resource result handle
* @param resource connection handle
*
* @return mixed MDB2 Error Object or the number of rows affected
*
* @access private
*/
function _affectedRows($connection, $result = null)
{
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'method not implemented', __FUNCTION__);
}
// }}}
// {{{ function &exec($query)
/**
* Execute a manipulation query to the database and return the number of affected rows
*
* @param string the SQL query
*
* @return mixed number of affected rows on success, a MDB2 error on failure
*
* @access public
*/
function &exec($query)
{
$offset = $this->offset;
$limit = $this->limit;
$this->offset = $this->limit = 0;
$query = $this->_modifyQuery($query, true, $limit, $offset);
$connection = $this->getConnection();
if (PEAR::isError($connection)) {
return $connection;
}
$result =$this->_doQuery($query, true, $connection, $this->database_name);
if (PEAR::isError($result)) {
return $result;
}
$affectedRows = $this->_affectedRows($connection, $result);
return $affectedRows;
}
// }}}
// {{{ function &query($query, $types = null, $result_class = true, $result_wrap_class = false)
/**
* Send a query to the database and return any results
*
* @param string the SQL query
* @param mixed array that contains the types of the columns in
* the result set
* @param mixed string which specifies which result class to use
* @param mixed string which specifies which class to wrap results in
*
* @return mixed an MDB2_Result handle on success, a MDB2 error on failure
*
* @access public
*/
function &query($query, $types = null, $result_class = true, $result_wrap_class = false)
{
$offset = $this->offset;
$limit = $this->limit;
$this->offset = $this->limit = 0;
$query = $this->_modifyQuery($query, false, $limit, $offset);
$connection = $this->getConnection();
if (PEAR::isError($connection)) {
return $connection;
}
$result =$this->_doQuery($query, false, $connection, $this->database_name);
if (PEAR::isError($result)) {
return $result;
}
$result =$this->_wrapResult($result, $types, $result_class, $result_wrap_class, $limit, $offset);
return $result;
}
// }}}
// {{{ function &_wrapResult($result, $types = array(), $result_class = true, $result_wrap_class = false, $limit = null, $offset = null)
/**
* wrap a result set into the correct class
*
* @param resource result handle
* @param mixed array that contains the types of the columns in
* the result set
* @param mixed string which specifies which result class to use
* @param mixed string which specifies which class to wrap results in
* @param string number of rows to select
* @param string first row to select
*
* @return mixed an MDB2_Result, a MDB2 error on failure
*
* @access protected
*/
function &_wrapResult($result, $types = array(), $result_class = true,
$result_wrap_class = false, $limit = null, $offset = null)
{
if ($types === true) {
if ($this->supports('result_introspection')) {
$this->loadModule('Reverse', null, true);
$tableInfo = $this->reverse->tableInfo($result);
if (PEAR::isError($tableInfo)) {
return $tableInfo;
}
$types = array();
foreach ($tableInfo as $field) {
$types[] = $field['mdb2type'];
}
} else {
$types = null;
}
}
if ($result_class === true) {
$result_class = $this->options['result_buffering']
? $this->options['buffered_result_class'] : $this->options['result_class'];
}
if ($result_class) {
$class_name = sprintf($result_class, $this->phptype);
if (!MDB2::classExists($class_name)) {
$err =$this->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
'result class does not exist '.$class_name, __FUNCTION__);
return $err;
}
$result =new $class_name($this, $result, $limit, $offset);
if (!MDB2::isResultCommon($result)) {
$err =$this->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
'result class is not extended from MDB2_Result_Common', __FUNCTION__);
return $err;
}
if (!empty($types)) {
$err = $result->setResultTypes($types);
if (PEAR::isError($err)) {
$result->free();
return $err;
}
}
}
if ($result_wrap_class === true) {
$result_wrap_class = $this->options['result_wrap_class'];
}
if ($result_wrap_class) {
if (!MDB2::classExists($result_wrap_class)) {
$err =$this->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
'result wrap class does not exist '.$result_wrap_class, __FUNCTION__);
return $err;
}
$result = new $result_wrap_class($result, $this->fetchmode);
}
return $result;
}
// }}}
// {{{ function getServerVersion($native = false)
/**
* return version information about the server
*
* @param bool determines if the raw version string should be returned
*
* @return mixed array with version information or row string
*
* @access public
*/
function getServerVersion($native = false)
{
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'method not implemented', __FUNCTION__);
}
// }}}
// {{{ function setLimit($limit, $offset = null)
/**
* set the range of the next query
*
* @param string number of rows to select
* @param string first row to select
*
* @return mixed MDB2_OK on success, a MDB2 error on failure
*
* @access public
*/
function setLimit($limit, $offset = null)
{
if (!$this->supports('limit_queries')) {
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'limit is not supported by this driver', __FUNCTION__);
}
$limit = (int)$limit;
if ($limit < 0) {
return $this->raiseError(MDB2_ERROR_SYNTAX, null, null,
'it was not specified a valid selected range row limit', __FUNCTION__);
}
$this->limit = $limit;
if (!is_null($offset)) {
$offset = (int)$offset;
if ($offset < 0) {
return $this->raiseError(MDB2_ERROR_SYNTAX, null, null,
'it was not specified a valid first selected range row', __FUNCTION__);
}
$this->offset = $offset;
}
return MDB2_OK;
}
// }}}
// {{{ function subSelect($query, $type = false)
/**
* simple subselect emulation: leaves the query untouched for all RDBMS
* that support subselects
*
* @param string the SQL query for the subselect that may only
* return a column
* @param string determines type of the field
*
* @return string the query
*
* @access public
*/
function subSelect($query, $type = false)
{
if ($this->supports('sub_selects') === true) {
return $query;
}
if (!$this->supports('sub_selects')) {
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'method not implemented', __FUNCTION__);
}
$col = $this->queryCol($query, $type);
if (PEAR::isError($col)) {
return $col;
}
if (!is_array($col) || count($col) == 0) {
return 'NULL';
}
if ($type) {
$this->loadModule('Datatype', null, true);
return $this->datatype->implodeArray($col, $type);
}
return implode(', ', $col);
}
// }}}
// {{{ function replace($table, $fields)
/**
* Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT
* query, except that if there is already a row in the table with the same
* key field values, the old row is deleted before the new row is inserted.
*
* The REPLACE type of query does not make part of the SQL standards. Since
* practically only MySQL and SQLite implement it natively, this type of
* query isemulated through this method for other DBMS using standard types
* of queries inside a transaction to assure the atomicity of the operation.
*
* @param string name of the table on which the REPLACE query will
* be executed.
* @param array associative array that describes the fields and the
* values that will be inserted or updated in the specified table. The
* indexes of the array are the names of all the fields of the table.
* The values of the array are also associative arrays that describe
* the values and other properties of the table fields.
*
* Here follows a list of field properties that need to be specified:
*
* value
* Value to be assigned to the specified field. This value may be
* of specified in database independent type format as this
* function can perform the necessary datatype conversions.
*
* Default: this property is required unless the Null property is
* set to 1.
*
* type
* Name of the type of the field. Currently, all types MDB2
* are supported except for clob and blob.
*
* Default: no type conversion
*
* null
* bool property that indicates that the value for this field
* should be set to null.
*
* The default value for fields missing in INSERT queries may be
* specified the definition of a table. Often, the default value
* is already null, but since the REPLACE may be emulated using
* an UPDATE query, make sure that all fields of the table are
* listed in this function argument array.
*
* Default: 0
*
* key
* bool property that indicates that this field should be
* handled as a primary key or at least as part of the compound
* unique index of the table that will determine the row that will
* updated if it exists or inserted a new row otherwise.
*
* This function will fail if no key field is specified or if the
* value of a key field is set to null because fields that are
* part of unique index they may not be null.
*
* Default: 0
*
* @return mixed MDB2_OK on success, a MDB2 error on failure
*
* @access public
*/
function replace($table, $fields)
{
if (!$this->supports('replace')) {
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'replace query is not supported', __FUNCTION__);
}
$count = count($fields);
$condition = $values = array();
for ($colnum = 0, reset($fields); $colnum < $count; next($fields), $colnum++) {
$name = key($fields);
if (isset($fields[$name]['null']) && $fields[$name]['null']) {
$value = 'NULL';
} else {
$type = isset($fields[$name]['type']) ? $fields[$name]['type'] : null;
$value = $this->quote($fields[$name]['value'], $type);
}
$values[$name] = $value;
if (isset($fields[$name]['key']) && $fields[$name]['key']) {
if ($value === 'NULL') {
return $this->raiseError(MDB2_ERROR_CANNOT_REPLACE, null, null,
'key value '.$name.' may not be NULL', __FUNCTION__);
}
$condition[] = $this->quoteIdentifier($name, true) . '=' . $value;
}
}
if (empty($condition)) {
return $this->raiseError(MDB2_ERROR_CANNOT_REPLACE, null, null,
'not specified which fields are keys', __FUNCTION__);
}
$result = null;
$in_transaction = $this->in_transaction;
if (!$in_transaction && PEAR::isError($result = $this->beginTransaction())) {
return $result;
}
$connection = $this->getConnection();
if (PEAR::isError($connection)) {
return $connection;
}
$condition = ' WHERE '.implode(' AND ', $condition);
$query = 'DELETE FROM ' . $this->quoteIdentifier($table, true) . $condition;
$result =$this->_doQuery($query, true, $connection);
if (!PEAR::isError($result)) {
$affected_rows = $this->_affectedRows($connection, $result);
$insert = '';
foreach ($values as $key => $value) {
$insert .= ($insert?', ':'') . $this->quoteIdentifier($key, true);
}
$values = implode(', ', $values);
$query = 'INSERT INTO '. $this->quoteIdentifier($table, true) . "($insert) VALUES ($values)";
$result =$this->_doQuery($query, true, $connection);
if (!PEAR::isError($result)) {
$affected_rows += $this->_affectedRows($connection, $result);;
}
}
if (!$in_transaction) {
if (PEAR::isError($result)) {
$this->rollback();
} else {
$result = $this->commit();
}
}
if (PEAR::isError($result)) {
return $result;
}
return $affected_rows;
}
// }}}
// {{{ function &prepare($query, $types = null, $result_types = null, $lobs = array())
/**
* Prepares a query for multiple execution with execute().
* With some database backends, this is emulated.
* prepare() requires a generic query as string like
* 'INSERT INTO numbers VALUES(?,?)' or
* 'INSERT INTO numbers VALUES(:foo,:bar)'.
* The ? and :name and are placeholders which can be set using
* bindParam() and the query can be sent off using the execute() method.
* The allowed format for :name can be set with the 'bindname_format' option.
*
* @param string the query to prepare
* @param mixed array that contains the types of the placeholders
* @param mixed array that contains the types of the columns in
* the result set or MDB2_PREPARE_RESULT, if set to
* MDB2_PREPARE_MANIP the query is handled as a manipulation query
* @param mixed key (field) value (parameter) pair for all lob placeholders
*
* @return mixed resource handle for the prepared query on success,
* a MDB2 error on failure
*
* @access public
* @see bindParam, execute
*/
function &prepare($query, $types = null, $result_types = null, $lobs = array())
{
$is_manip = ($result_types === MDB2_PREPARE_MANIP);
$offset = $this->offset;
$limit = $this->limit;
$this->offset = $this->limit = 0;
$result = $this->debug($query, __FUNCTION__, array('is_manip' => $is_manip, 'when' => 'pre'));
if ($result) {
if (PEAR::isError($result)) {
return $result;
}
$query = $result;
}
$placeholder_type_guess = $placeholder_type = null;
$question = '?';
$colon = ':';
$positions = array();
$position = 0;
while ($position < strlen($query)) {
$q_position = strpos($query, $question, $position);
$c_position = strpos($query, $colon, $position);
if ($q_position && $c_position) {
$p_position = min($q_position, $c_position);
} elseif ($q_position) {
$p_position = $q_position;
} elseif ($c_position) {
$p_position = $c_position;
} else {
break;
}
if (is_null($placeholder_type)) {
$placeholder_type_guess = $query[$p_position];
}
$new_pos = $this->_skipDelimitedStrings($query, $position, $p_position);
if (PEAR::isError($new_pos)) {
return $new_pos;
}
if ($new_pos != $position) {
$position = $new_pos;
continue; //evaluate again starting from the new position
}
if ($query[$position] == $placeholder_type_guess) {
if (is_null($placeholder_type)) {
$placeholder_type = $query[$p_position];
$question = $colon = $placeholder_type;
if (!empty($types) && is_array($types)) {
if ($placeholder_type == ':') {
if (is_int(key($types))) {
$types_tmp = $types;
$types = array();
$count = -1;
}
} else {
$types = array_values($types);
}
}
}
if ($placeholder_type == ':') {
$regexp = '/^.{'.($position+1).'}('.$this->options['bindname_format'].').*$/s';
$parameter = preg_replace($regexp, '\\1', $query);
if ($parameter === '') {
$err =$this->raiseError(MDB2_ERROR_SYNTAX, null, null,
'named parameter name must match "bindname_format" option', __FUNCTION__);
return $err;
}
$positions[$p_position] = $parameter;
$query = substr_replace($query, '?', $position, strlen($parameter)+1);
// use parameter name in type array
if (isset($count) && isset($types_tmp[++$count])) {
$types[$parameter] = $types_tmp[$count];
}
} else {
$positions[$p_position] = count($positions);
}
$position = $p_position + 1;
} else {
$position = $p_position;
}
}
$class_name = 'MDB2_Statement_'.$this->phptype;
$statement = null;
$obj = new $class_name($this, $statement, $positions, $query, $types, $result_types, $is_manip, $limit, $offset);
$this->debug($query, __FUNCTION__, array('is_manip' => $is_manip, 'when' => 'post', 'result' => $obj));
return $obj;
}
// }}}
// {{{ function _skipDelimitedStrings($query, $position, $p_position)
/**
* Utility method, used by prepare() to avoid replacing placeholders within delimited strings.
* Check if the placeholder is contained within a delimited string.
* If so, skip it and advance the position, otherwise return the current position,
* which is valid
*
* @param string $query
* @param integer $position current string cursor position
* @param integer $p_position placeholder position
*
* @return mixed integer $new_position on success
* MDB2_Error on failure
*
* @access protected
*/
function _skipDelimitedStrings($query, $position, $p_position)
{
$ignores = $this->string_quoting;
$ignores[] = $this->identifier_quoting;
$ignores = array_merge($ignores, $this->sql_comments);
foreach ($ignores as $ignore) {
if (!empty($ignore['start'])) {
if (is_int($start_quote = strpos($query, $ignore['start'], $position)) && $start_quote < $p_position) {
$end_quote = $start_quote;
do {
if (!is_int($end_quote = strpos($query, $ignore['end'], $end_quote + 1))) {
if ($ignore['end'] === "\n") {
$end_quote = strlen($query) - 1;
} else {
$err =$this->raiseError(MDB2_ERROR_SYNTAX, null, null,
'query with an unterminated text string specified', __FUNCTION__);
return $err;
}
}
} while ($ignore['escape']
&& $end_quote-1 != $start_quote
&& $query[($end_quote - 1)] == $ignore['escape']
&& ( $ignore['escape_pattern'] !== $ignore['escape']
|| $query[($end_quote - 2)] != $ignore['escape'])
);
$position = $end_quote + 1;
return $position;
}
}
}
return $position;
}
// }}}
// {{{ function quote($value, $type = null, $quote = true)
/**
* Convert a text value into a DBMS specific format that is suitable to
* compose query statements.
*
* @param string text string value that is intended to be converted.
* @param string type to which the value should be converted to
* @param bool quote
* @param bool escape wildcards
*
* @return string text string that represents the given argument value in
* a DBMS specific format.
*
* @access public
*/
function quote($value, $type = null, $quote = true, $escape_wildcards = false)
{
$result = $this->loadModule('Datatype', null, true);
if (PEAR::isError($result)) {
return $result;
}
return $this->datatype->quote($value, $type, $quote, $escape_wildcards);
}
// }}}
// {{{ function getDeclaration($type, $name, $field)
/**
* Obtain DBMS specific SQL code portion needed to declare
* of the given type
*
* @param string type to which the value should be converted to
* @param string name the field to be declared.
* @param string definition of the field
*
* @return string DBMS specific SQL code portion that should be used to
* declare the specified field.
*
* @access public
*/
function getDeclaration($type, $name, $field)
{
$result = $this->loadModule('Datatype', null, true);
if (PEAR::isError($result)) {
return $result;
}
return $this->datatype->getDeclaration($type, $name, $field);
}
// }}}
// {{{ function compareDefinition($current, $previous)
/**
* Obtain an array of changes that may need to applied
*
* @param array new definition
* @param array old definition
*
* @return array containing all changes that will need to be applied
*
* @access public
*/
function compareDefinition($current, $previous)
{
$result = $this->loadModule('Datatype', null, true);
if (PEAR::isError($result)) {
return $result;
}
return $this->datatype->compareDefinition($current, $previous);
}
// }}}
// {{{ function supports($feature)
/**
* Tell whether a DB implementation or its backend extension
* supports a given feature.
*
* @param string name of the feature (see the MDB2 class doc)
*
* @return bool|string if this DB implementation supports a given feature
* false means no, true means native,
* 'emulated' means emulated
*
* @access public
*/
function supports($feature)
{
if (array_key_exists($feature, $this->supported)) {
return $this->supported[$feature];
}
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
"unknown support feature $feature", __FUNCTION__);
}
// }}}
// {{{ function getSequenceName($sqn)
/**
* adds sequence name formatting to a sequence name
*
* @param string name of the sequence
*
* @return string formatted sequence name
*
* @access public
*/
function getSequenceName($sqn)
{
return sprintf($this->options['seqname_format'],
preg_replace('/[^a-z0-9_\-\$.]/i', '_', $sqn));
}
// }}}
// {{{ function getIndexName($idx)
/**
* adds index name formatting to a index name
*
* @param string name of the index
*
* @return string formatted index name
*
* @access public
*/
function getIndexName($idx)
{
return sprintf($this->options['idxname_format'],
preg_replace('/[^a-z0-9_\-\$.]/i', '_', $idx));
}
// }}}
// {{{ function nextID($seq_name, $ondemand = true)
/**
* Returns the next free id of a sequence
*
* @param string name of the sequence
* @param bool when true missing sequences are automatic created
*
* @return mixed MDB2 Error Object or id
*
* @access public
*/
function nextID($seq_name, $ondemand = true)
{
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'method not implemented', __FUNCTION__);
}
// }}}
// {{{ function lastInsertID($table = null, $field = null)
/**
* Returns the autoincrement ID if supported or $id or fetches the current
* ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
*
* @param string name of the table into which a new row was inserted
* @param string name of the field into which a new row was inserted
*
* @return mixed MDB2 Error Object or id
*
* @access public
*/
function lastInsertID($table = null, $field = null)
{
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'method not implemented', __FUNCTION__);
}
// }}}
// {{{ function currID($seq_name)
/**
* Returns the current id of a sequence
*
* @param string name of the sequence
*
* @return mixed MDB2 Error Object or id
*
* @access public
*/
function currID($seq_name)
{
$this->warnings[] = 'database does not support getting current
sequence value, the sequence value was incremented';
return $this->nextID($seq_name);
}
// }}}
// {{{ function queryOne($query, $type = null, $colnum = 0)
/**
* Execute the specified query, fetch the value from the first column of
* the first row of the result set and then frees
* the result set.
*
* @param string $query the SELECT query statement to be executed.
* @param string $type optional argument that specifies the expected
* datatype of the result set field, so that an eventual
* conversion may be performed. The default datatype is
* text, meaning that no conversion is performed
* @param mixed $colnum the column number (or name) to fetch
*
* @return mixed MDB2_OK or field value on success, a MDB2 error on failure
*
* @access public
*/
function queryOne($query, $type = null, $colnum = 0)
{
$result = $this->query($query, $type);
if (!MDB2::isResultCommon($result)) {
return $result;
}
$one = $result->fetchOne($colnum);
$result->free();
return $one;
}
// }}}
// {{{ function queryRow($query, $types = null, $fetchmode = MDB2_FETCHMODE_DEFAULT)
/**
* Execute the specified query, fetch the values from the first
* row of the result set into an array and then frees
* the result set.
*
* @param string the SELECT query statement to be executed.
* @param array optional array argument that specifies a list of
* expected datatypes of the result set columns, so that the eventual
* conversions may be performed. The default list of datatypes is
* empty, meaning that no conversion is performed.
* @param int how the array data should be indexed
*
* @return mixed MDB2_OK or data array on success, a MDB2 error on failure
*
* @access public
*/
function queryRow($query, $types = null, $fetchmode = MDB2_FETCHMODE_DEFAULT)
{
$result = $this->query($query, $types);
if (!MDB2::isResultCommon($result)) {
return $result;
}
$row = $result->fetchRow($fetchmode);
$result->free();
return $row;
}
// }}}
// {{{ function queryCol($query, $type = null, $colnum = 0)
/**
* Execute the specified query, fetch the value from the first column of
* each row of the result set into an array and then frees the result set.
*
* @param string $query the SELECT query statement to be executed.
* @param string $type optional argument that specifies the expected
* datatype of the result set field, so that an eventual
* conversion may be performed. The default datatype is text,
* meaning that no conversion is performed
* @param mixed $colnum the column number (or name) to fetch
*
* @return mixed MDB2_OK or data array on success, a MDB2 error on failure
* @access public
*/
function queryCol($query, $type = null, $colnum = 0)
{
$result = $this->query($query, $type);
if (!MDB2::isResultCommon($result)) {
return $result;
}
$col = $result->fetchCol($colnum);
$result->free();
return $col;
}
// }}}
// {{{ function queryAll($query, $types = null, $fetchmode = MDB2_FETCHMODE_DEFAULT, $rekey = false, $force_array = false, $group = false)
/**
* Execute the specified query, fetch all the rows of the result set into
* a two dimensional array and then frees the result set.
*
* @param string the SELECT query statement to be executed.
* @param array optional array argument that specifies a list of
* expected datatypes of the result set columns, so that the eventual
* conversions may be performed. The default list of datatypes is
* empty, meaning that no conversion is performed.
* @param int how the array data should be indexed
* @param bool if set to true, the $all will have the first
* column as its first dimension
* @param bool used only when the query returns exactly
* two columns. If true, the values of the returned array will be
* one-element arrays instead of scalars.
* @param bool if true, the values of the returned array is
* wrapped in another array. If the same key value (in the first
* column) repeats itself, the values will be appended to this array
* instead of overwriting the existing values.
*
* @return mixed MDB2_OK or data array on success, a MDB2 error on failure
*
* @access public
*/
function queryAll($query, $types = null, $fetchmode = MDB2_FETCHMODE_DEFAULT,
$rekey = false, $force_array = false, $group = false)
{
$result = $this->query($query, $types);
if (!MDB2::isResultCommon($result)) {
return $result;
}
$all = $result->fetchAll($fetchmode, $rekey, $force_array, $group);
$result->free();
return $all;
}
// }}}
}
// }}}
// {{{ class MDB2_Result
/**
* The dummy class that all user space result classes should extend from
*
* @package MDB2
* @category Database
* @author Lukas Smith <smith@pooteeweet.org>
*/
class MDB2_Result
{
}
// }}}
// {{{ class MDB2_Result_Common extends MDB2_Result
/**
* The common result class for MDB2 result objects
*
* @package MDB2
* @category Database
* @author Lukas Smith <smith@pooteeweet.org>
*/
class MDB2_Result_Common extends MDB2_Result
{
// {{{ Variables (Properties)
var $db;
var $result;
var $rownum = -1;
var $types = array();
var $values = array();
var $offset;
var $offset_count = 0;
var $limit;
var $column_names;
// }}}
// {{{ constructor: function __construct(&$db, &$result, $limit = 0, $offset = 0)
/**
* Constructor
*/
function __construct(&$db, &$result, $limit = 0, $offset = 0)
{
$this->db =$db;
$this->result =$result;
$this->offset = $offset;
$this->limit = max(0, $limit - 1);
}
// }}}
// {{{ function setResultTypes($types)
/**
* Define the list of types to be associated with the columns of a given
* result set.
*
* This function may be called before invoking fetchRow(), fetchOne(),
* fetchCol() and fetchAll() so that the necessary data type
* conversions are performed on the data to be retrieved by them. If this
* function is not called, the type of all result set columns is assumed
* to be text, thus leading to not perform any conversions.
*
* @param array variable that lists the
* data types to be expected in the result set columns. If this array
* contains less types than the number of columns that are returned
* in the result set, the remaining columns are assumed to be of the
* type text. Currently, the types clob and blob are not fully
* supported.
*
* @return mixed MDB2_OK on success, a MDB2 error on failure
*
* @access public
*/
function setResultTypes($types)
{
$load = $this->db->loadModule('Datatype', null, true);
if (PEAR::isError($load)) {
return $load;
}
$types = $this->db->datatype->checkResultTypes($types);
if (PEAR::isError($types)) {
return $types;
}
$this->types = $types;
return MDB2_OK;
}
// }}}
// {{{ function seek($rownum = 0)
/**
* Seek to a specific row in a result set
*
* @param int number of the row where the data can be found
*
* @return mixed MDB2_OK on success, a MDB2 error on failure
*
* @access public
*/
function seek($rownum = 0)
{
$target_rownum = $rownum - 1;
if ($this->rownum > $target_rownum) {
return $this->db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'seeking to previous rows not implemented', __FUNCTION__);
}
while ($this->rownum < $target_rownum) {
$this->fetchRow();
}
return MDB2_OK;
}
// }}}
// {{{ function &fetchRow($fetchmode = MDB2_FETCHMODE_DEFAULT, $rownum = null)
/**
* Fetch and return a row of data
*
* @param int how the array data should be indexed
* @param int number of the row where the data can be found
*
* @return int data array on success, a MDB2 error on failure
*
* @access public
*/
function &fetchRow($fetchmode = MDB2_FETCHMODE_DEFAULT, $rownum = null)
{
$err =$this->db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'method not implemented', __FUNCTION__);
return $err;
}
// }}}
// {{{ function fetchOne($colnum = 0)
/**
* fetch single column from the next row from a result set
*
* @param int|string the column number (or name) to fetch
* @param int number of the row where the data can be found
*
* @return string data on success, a MDB2 error on failure
* @access public
*/
function fetchOne($colnum = 0, $rownum = null)
{
$fetchmode = is_numeric($colnum) ? MDB2_FETCHMODE_ORDERED : MDB2_FETCHMODE_ASSOC;
$row = $this->fetchRow($fetchmode, $rownum);
if (!is_array($row) || PEAR::isError($row)) {
return $row;
}
if (!array_key_exists($colnum, $row)) {
return $this->db->raiseError(MDB2_ERROR_TRUNCATED, null, null,
'column is not defined in the result set: '.$colnum, __FUNCTION__);
}
return $row[$colnum];
}
// }}}
// {{{ function fetchCol($colnum = 0)
/**
* Fetch and return a column from the current row pointer position
*
* @param int|string the column number (or name) to fetch
*
* @return mixed data array on success, a MDB2 error on failure
* @access public
*/
function fetchCol($colnum = 0)
{
$column = array();
$fetchmode = is_numeric($colnum) ? MDB2_FETCHMODE_ORDERED : MDB2_FETCHMODE_ASSOC;
$row = $this->fetchRow($fetchmode);
if (is_array($row)) {
if (!array_key_exists($colnum, $row)) {
return $this->db->raiseError(MDB2_ERROR_TRUNCATED, null, null,
'column is not defined in the result set: '.$colnum, __FUNCTION__);
}
do {
$column[] = $row[$colnum];
} while (is_array($row = $this->fetchRow($fetchmode)));
}
if (PEAR::isError($row)) {
return $row;
}
return $column;
}
// }}}
// {{{ function fetchAll($fetchmode = MDB2_FETCHMODE_DEFAULT, $rekey = false, $force_array = false, $group = false)
/**
* Fetch and return all rows from the current row pointer position
*
* @param int $fetchmode the fetch mode to use:
* + MDB2_FETCHMODE_ORDERED
* + MDB2_FETCHMODE_ASSOC
* + MDB2_FETCHMODE_ORDERED | MDB2_FETCHMODE_FLIPPED
* + MDB2_FETCHMODE_ASSOC | MDB2_FETCHMODE_FLIPPED
* @param bool if set to true, the $all will have the first
* column as its first dimension
* @param bool used only when the query returns exactly
* two columns. If true, the values of the returned array will be
* one-element arrays instead of scalars.
* @param bool if true, the values of the returned array is
* wrapped in another array. If the same key value (in the first
* column) repeats itself, the values will be appended to this array
* instead of overwriting the existing values.
*
* @return mixed data array on success, a MDB2 error on failure
*
* @access public
* @see getAssoc()
*/
function fetchAll($fetchmode = MDB2_FETCHMODE_DEFAULT, $rekey 4 months |
jtr/router-light-refactoring | fix: type hint array not string[] | Josh | 4 months |
dependabot/composer/stable30/giggsey/libphonenumber-for-php-lite-8.13.45 | build(deps): bump giggsey/libphonenumber-for-php-lite from 8.13.35 to 8.13.45 | Joas Schilling | 4 months |
dependabot/composer/stable28/aws/aws-sdk-php-3.240.11 | fix(s3): suppress php deprecation warning on php8 | Daniel Kesselberg | 4 months |
dependabot/composer/stable30/web-auth/webauthn-lib-4.8.7 | chore(deps): Bump web-auth/webauthn-lib from 4.8.5 to 4.9.1 | Joas Schilling | 4 months |
filesVersionsFuncRefact | chore(files_versions): Refactor function for lisibility | Git'Fellow | 4 months |
fix/sharing-entry-link | chore(assets): Recompile assets | nextcloud-command | 4 months |
chore/legacy-updatenotification | chore(assets): Recompile assets | nextcloud-command | 4 months |
fix/remove-needless-console-log | chore(assets): Recompile assets | nextcloud-command | 4 months |
backport/48311/stable30 | fix: Ensure app discover section is returned as list | Ferdinand Thiessen | 4 months |
backport/48311/stable29 | fix: Ensure app discover section is returned as list | Ferdinand Thiessen | 4 months |
fix/gracefully-parse-trusted-certificates | fix: gracefully parse non-standard trusted certificates | Richard Steinmetz | 4 months |
fix/app-discover | fix: Ensure app discover section is returned as list | Ferdinand Thiessen | 4 months |
backport/47349/stable28 | ci: Restrict RTL characters to RTL languages | Joas Schilling | 4 months |
backport/47349/stable29 | ci: Restrict RTL characters to RTL languages | Joas Schilling | 4 months |
backport/47349/stable30 | ci: Restrict RTL characters to RTL languages | Joas Schilling | 4 months |
cleanup/event/trashbin | fix(tests): Pause trashbin for lock tests in ViewTest using rmdir and unlink | Côme Chilliet | 4 months |
debug/doctrine/dbal | FIXME: Try bumping doctrine/dbal | Joas Schilling | 4 months |
backport/48207/stable29 | fix(users): Don't crash if disabled user is missing in the database | Louis Chemineau | 4 months |
backport/48207/stable30 | fix(users): Don't crash if disabled user is missing in the database | Louis Chemineau | 4 months |
backport/48268/stable30 | fix: skip the integrity check for nextcloud-init-sync.lock | Daniel Kesselberg | 4 months |
backport/48268/stable29 | fix: skip the integrity check for nextcloud-init-sync.lock | Daniel Kesselberg | 4 months |
backport/48268/stable28 | fix: skip the integrity check for nextcloud-init-sync.lock | Daniel Kesselberg | 4 months |
backport/48162/stable30 | fix(autocomplete): Move known array keys to psalm docs | Joas Schilling | 4 months |
feat/31420/bidi-backend-support | fix(rtl): Make clear that the direction is based on language | Joas Schilling | 4 months |
backport/48207/stable28 | fix(users): Don't crash if disabled user is missing in the database | Louis Chemineau | 4 months |
backport/44945/stable30 | chore(assets): Recompile assets | nextcloud-command | 4 months |
fix/move-storage-constructor-to-specific-interface | fix(tests): Fix test to remove call to non-existing constructor | Côme Chilliet | 4 months |
backport/48282/stable29 | chore: add .git-blame-ignore-revs | Daniel Kesselberg | 4 months |
backport/48282/stable28 | chore: add .git-blame-ignore-revs | Daniel Kesselberg | 4 months |
backport/48282/stable27 | chore: add .git-blame-ignore-revs | Daniel Kesselberg | 4 months |
backport/48282/stable26 | chore: add .git-blame-ignore-revs | Daniel Kesselberg | 4 months |
backport/48282/stable25 | chore: add .git-blame-ignore-revs | Daniel Kesselberg | 4 months |
backport/48282/stable24 | chore: add .git-blame-ignore-revs | Daniel Kesselberg | 4 months |
debt/noid/user-changed-event | test(admin_audit): add test for user management listener | Daniel Kesselberg | 4 months |
backport/47441/stable29 | chore(assets): Recompile assets | nextcloud-command | 4 months |
followup/48086/fix-more-activity-providers | fix(activity): Update more activity providers to use new exceptions | Joas Schilling | 4 months |
feat/add-rector-config | chore(rector): Move rector.php into the build folder | Côme Chilliet | 4 months |
chore/noid/git-blame-ignore-revs | chore: add .git-blame-ignore-revs | Daniel Kesselberg | 4 months |
backport/48266/stable28 | fix(psalm): Enable findUnusedBaselineEntry | provokateurin | 4 months |
backport/48266/stable29 | fix(psalm): Enable findUnusedBaselineEntry | provokateurin | 4 months |
backport/48266/stable30 | fix(psalm): Enable findUnusedBaselineEntry | provokateurin | 4 months |
artonge/fix/prevent_missing_users_from_crashing_disabled_users_search | fix(users): Don't crash if disabled user is missing in the database | Louis Chemineau | 4 months |
dependabot/github_actions/github-actions-560ea78344 | chore(deps): Bump the github-actions group across 1 directory with 3 updates | dependabot[bot] | 4 months |
fix/psalm/enabled-find-unused-baseline-entry | fix(psalm): Enable findUnusedBaselineEntry | provokateurin | 4 months |
feat/noid/priority-notifications | feat(prioritynotifications): Allow some apps to mark notifications as priority | Joas Schilling | 4 months |
automated/noid/stable29-update-psalm-baseline | chore(tests): Update psalm baseline | nextcloud-command | 4 months |
automated/noid/stable28-update-psalm-baseline | chore(tests): Update psalm baseline | nextcloud-command | 4 months |
debt/noid/ignore-docker-image-lock-file | fix: skip the integrity check for nextcloud-init-sync.lock | Daniel Kesselberg | 4 months |
backport/45098/stable28 | fix(caldav): Do not load IMipPlugin before user auth and session is created | SebastianKrupinski | 4 months |
automated/noid/stable28-fix-npm-audit | Fix(l10n): Update translations from Transifex | Nextcloud bot | 4 months |
dependabot/npm_and_yarn/sass-1.79.3 | chore(deps-dev): Bump sass from 1.77.8 to 1.79.3 | dependabot[bot] | 4 months |
dependabot/npm_and_yarn/stable30/nextcloud/axios-2.5.1 | chore(deps): Bump @nextcloud/axios from 2.5.0 to 2.5.1 | dependabot[bot] | 4 months |
dependabot/npm_and_yarn/stable30/types/jest-29.5.13 | chore(deps-dev): Bump @types/jest from 29.5.12 to 29.5.13 | dependabot[bot] | 4 months |
dependabot/npm_and_yarn/tslib-2.7.0 | chore(deps-dev): Bump tslib from 2.6.3 to 2.7.0 | dependabot[bot] | 4 months |
dependabot/npm_and_yarn/nextcloud/axios-2.5.1 | chore(deps): Bump @nextcloud/axios from 2.5.0 to 2.5.1 | dependabot[bot] | 4 months |
dependabot/npm_and_yarn/focus-trap-7.6.0 | chore(deps): Bump focus-trap from 7.5.4 to 7.6.0 | dependabot[bot] | 4 months |
dependabot/npm_and_yarn/vitest/coverage-v8-2.1.1 | chore(deps-dev): Bump @vitest/coverage-v8 from 2.0.5 to 2.1.1 | dependabot[bot] | 4 months |
feat/check-enterprise | feat: Provide enterprise check in initial state | Christopher Ng | 4 months |
fix/invalid-copied-share-link | chore(assets): Recompile assets | nextcloud-command | 4 months |
bug/noid/profile-clear-not-working | fix(profiler): clear command does not work | Daniel Kesselberg | 4 months |
reworkShareExceptions | fix: tests | Git'Fellow | 4 months |
chore/remove-legacy-files-scripts | chore(assets): Recompile assets | nextcloud-command | 4 months |
clean/version-ocp | chore(legacy): Introduce public version ct plass and drop version methods fro... | Julius Knorr | 4 months |
artonge/backport/stable29/48207 | fix(users): Don't crash if disabled user is missing in the database | Louis Chemineau | 4 months |
fix/files-duplicated-nodes | chore(assets): Recompile assets | nextcloud-command | 4 months |
chore/cleanup-warnings | chore(assets): Recompile assets | nextcloud-command | 4 months |
bugfix/noid/remove-more-withConsecutive | fix(ci): Remove more withConsecutive in apps | Joas Schilling | 4 months |
storage-cache-not-exists | fix: remove use of depricated insertIfNotExist from Files\Cache\Storage | Robin Appelman | 4 months |
backport/48222/stable30 | perf: reuse cache info we already have when moving to object store | Robin Appelman | 4 months |
automated/noid/stable30-update-psalm-baseline | chore(tests): Update psalm baseline | nextcloud-command | 4 months |
chore/add-deprecation-date | chore: Remove deprecated `Share_Helper::generateTarget` `$exclude` parameter | Ferdinand Thiessen | 4 months |
fix/federation-certificate-store | fix(federation): Do not overwrite certificate bundle | Julius Härtl | 4 months |
remove-locking-config-sample | fix: remove mention of disabling file locking from config sample | Robin Appelman | 4 months |
object-store-trash-move | fix: improve moving object store items to trashbin | Robin Appelman | 4 months |
ci/phpunit-10 | fix: Adjust data provider name | Ferdinand Thiessen | 4 months |
chore/remove-travis | chore: Get rid of travis in DAV app | Ferdinand Thiessen | 4 months |
techdebt/noid/add-parameter-typehints | chore: Add parameter type hints to parameters | Joas Schilling | 4 months |
bugfix/noid/run-all-unit-tests | test: fix ContactsMigratorTest | Anna Larch | 4 months |
chore/prepare-oc_repair-unit10 | chore: Cleanup and prepare `\OC\Repair\RepairMimeTypes` tests for PHPUnit 10 | Ferdinand Thiessen | 4 months |
object-store-move-db | perf: reuse cache info we already have when moving to object store | Robin Appelman | 4 months |
backport/30/fix_move_on_same_bucket | fix(tests): Fix most obvious errors in ObjectStore tests | Côme Chilliet | 4 months |
ci/noid/prepare-phpunit-10 | chore: Cleanup and prepare some app tests for PHPUnit 10 | Joas Schilling | 4 months |
fix/contactsmigratortest | test: fix ContactsMigratorTest | Anna Larch | 4 months |
backport/48205/stable29 | fix: Prevent duplicate creation of print_exception function | Louis Chemineau | 4 months |
44287-fix-avatar-fed-share-receiver | chore(assets): Recompile assets | nextcloud-command | 4 months |
backport/47399/stable30 | fix: expand select and group by for calandar reminder backend | Hamza Mahjoubi | 4 months |
fix/47275/driverException | fix: expand select and group by for calandar reminder backend | Hamza Mahjoubi | 4 months |
backport/48177/stable28 | fix: Override start method of \Sabre\DAV\Server to remove exception output | Louis Chemineau | 4 months |
backport/48177/stable29 | fix: Override start method of \Sabre\DAV\Server to remove exception output | Louis Chemineau | 4 months |
backport/48177/stable30 | fix: Override start method of \Sabre\DAV\Server to remove exception output | Louis Chemineau | 4 months |
dependabot/npm_and_yarn/vueuse/components-11.1.0 | chore(deps): Bump @vueuse/components from 11.0.3 to 11.1.0 | dependabot[bot] | 4 months |
dependabot/npm_and_yarn/stable30/nextcloud/calendar-availability-vue-2.2.4 | chore: Compile assets | Ferdinand Thiessen | 4 months |
ci-fix-30 | fix: Prevent duplicate creation of print_exception function | Louis Chemineau | 4 months |
chore/deps/nextcloud-coding-standard | chore: Add nextcloud/coding-standard v1.3.1 update to git blame ignores | provokateurin | 4 months |
dependabot/npm_and_yarn/stable30/debounce-2.1.1 | chore(deps): Bump debounce from 2.1.0 to 2.1.1 | dependabot[bot] | 4 months |
fix-setupcheck-filelocking | fix(setupChecks): Having transactional file locking disabled is not supported | Josh Richards | 4 months |
share-reminder-sharding | fix: add sharding compatible version of share reminder job | Robin Appelman | 4 months |
backport/48160/stable30 | test: fix ShareControllerTest.php | Robin Appelman | 4 months |
chore/remove-ijob-execute | chore: Remove deprecated `IJob::execute` method | Ferdinand Thiessen | 4 months |
chore/remove-ilogger | chore: Remove deprecated `ILogger` logging functions | Ferdinand Thiessen | 4 months |
dependabot/github_actions/github-actions-74498d6e3a | chore(deps): Bump the github-actions group with 2 updates | dependabot[bot] | 4 months |
dependabot/npm_and_yarn/wait-on-8.0.1 | chore(deps-dev): Bump wait-on from 7.2.0 to 8.0.1 | dependabot[bot] | 4 months |
backport/48140/stable30 | ci: Bump phpunit to 9.6.19 and add dependabot | Joas Schilling | 4 months |
dependabot/npm_and_yarn/nextcloud/cypress-1.0.0-beta.9 | chore(deps-dev): Bump @nextcloud/cypress | dependabot[bot] | 4 months |
dependabot/npm_and_yarn/babel/plugin-transform-private-methods-7.25.4 | chore(deps-dev): Bump @babel/plugin-transform-private-methods | dependabot[bot] | 4 months |
dependabot/npm_and_yarn/babel-loader-9.2.1 | chore(deps-dev): Bump babel-loader from 9.1.3 to 9.2.1 | dependabot[bot] | 4 months |
dependabot/composer/vendor-bin/cs-fixer/nextcloud/coding-standard-1.3.0 | chore(deps): Bump nextcloud/coding-standard in /vendor-bin/cs-fixer | dependabot[bot] | 4 months |
oracle-share-reminder | fix: fix share reminder job for oracle | Robin Appelman | 4 months |
artonge/fix/remove_unnecessary_formating | fix: Override start method of \Sabre\DAV\Server to remove exception output | Louis Chemineau | 4 months |
object-store-move-fixes | test: fix ShareControllerTest.php | Robin Appelman | 4 months |
avatar-work-29 | wip | fenn-cs | 4 months |
backport/48114/stable28 | fix(appstoreFetcher): get app list from custom app store | Grigorii K. Shartsev | 4 months |
backport/48114/stable29 | fix(appstoreFetcher): get app list from custom app store | Grigorii K. Shartsev | 4 months |
backport/48145/stable28 | fix: Drop unnecessary exit | Louis Chemineau | 4 months |
backport/48145/stable29 | fix: Drop unnecessary exit | Louis Chemineau | 4 months |
backport/48145/stable30 | fix: Drop unnecessary exit | Louis Chemineau | 4 months |
feat/nfo | feat: add nfo file support | John Molakvoæ (skjnldsv) | 4 months |
bugfix/noid/array-keys | fix(autocomplete): Move known array keys to psalm docs | Joas Schilling | 4 months |
fix/pronouns-tests | fix(settings): pronouns UsersControllerTest | John Molakvoæ (skjnldsv) | 4 months |
artonge/fix/drop_unecessary_exit | restart ci | Marcel Müller | 4 months |
fix/carddav/create-sab-concurrently | fix(carddav): Handle race for SAB creation better | Christoph Wurst | 4 months |
occ-as-root | fixup! Update occ | Christoph Wurst | 4 months |
dependabot/npm_and_yarn/jquery-ui-1.14.0 | chore(deps): bump jquery-ui from 1.13.3 to 1.14.0 | dependabot[bot] | 4 months |
backport/48081/stable28 | chore(assets): Recompile assets | nextcloud-command | 4 months |
automated/noid/master-update-psalm-baseline | chore(tests): Update psalm baseline | nextcloud-command | 4 months |
fieat/profile-pronounces | fix(core): profile design and pronouns support | John Molakvoæ (skjnldsv) | 4 months |
backport/46534/stable27 | fix: Add direct parameter to flow auth v2 | Julius Härtl | 4 months |
backport/48090/stable29 | chore(assets): Recompile assets | Grigorii K. Shartsev | 4 months |
backport/48090/stable30 | chore(assets): Recompile assets | Grigorii K. Shartsev | 4 months |
fix/psalm/throws-annotations | fix(psalm): Fix @throws annotations | provokateurin | 4 months |
ci/noid/debug-broken-ci | debug failing CI | Joas Schilling | 4 months |
bugfix/noid/update-phpunit | ci: Bump phpunit to 9.6.19 and add dependabot | Joas Schilling | 4 months |
fix/fix-server-tests | fix: Remove deprecated aliases from test | Côme Chilliet | 4 months |
enh/add-rich-object-formatter | fix: Adapt notifications and activity tests to new DI dependency | Côme Chilliet | 4 months |
chore/remove-legacy-settings-fors | fix: Remove legacy settings forms | Ferdinand Thiessen | 4 months |
feat/zst | chore: update RepairMimeTypes migration | John Molakvoæ (skjnldsv) | 4 months |
refactor/move-to-new-activity-exception | refactor: move to new activity exception | Anna Larch | 4 months |
backport/48114/stable30 | fix(appstoreFetcher): get app list from custom app store | Grigorii K. Shartsev | 4 months |
backport/48080/stable30 | fix(Storage): Fix method docs inheritance | provokateurin | 4 months |
backport/48080/stable29 | fix(Storage): Fix method docs inheritance | provokateurin | 4 months |
backport/48080/stable28 | fix(Storage): Fix method docs inheritance | provokateurin | 4 months |
backport/48094/stable30 | fix(Files): Handle getOwner() returning false | provokateurin | 4 months |
backport/48094/stable29 | fix(Files): Handle getOwner() returning false | provokateurin | 4 months |
backport/48094/stable28 | fix(Files): Handle getOwner() returning false | provokateurin | 4 months |
fix/storage/method-docs-inheritance | fix(Storage): Fix method docs inheritance | provokateurin | 4 months |
fix/storage/get-owner-false | fix(Files): Handle getOwner() returning false | provokateurin | 4 months |
chore/remove-deprecated-aliases | chore: Replace DI alias with real class | Ferdinand Thiessen | 4 months |
fix/AppStore--remove-unneeded-warning | fix(appstoreFetcher): get app list from custom app store | Grigorii K. Shartsev | 4 months |
backport/46218/stable30 | chore: improve hash_file php usage in Local Storage | John Molakvoæ | 4 months |
backport/46480/stable29 | fix(Mailer): Fix sendmail binary fallback | Josh | 4 months |
backport/46480/stable28 | fix(Mailer): Fix sendmail binary fallback | Josh | 4 months |
fix/remove-references-to-deprected-storage-interface | chore: Check storage is an instance of the correct class instead of psalm-sup... | Côme Chilliet | 4 months |
backport/46218/stable29 | chore: improve hash_file php usage in Local Storage | John Molakvoæ | 4 months |
backport/46218/stable28 | chore: improve hash_file php usage in Local Storage | John Molakvoæ | 4 months |
backport/46140/stable30 | fix: switch from explode to substr (faster) | Josh Richards | 4 months |
backport/46140/stable29 | fix: switch from explode to substr (faster) | Josh Richards | 4 months |
backport/46140/stable28 | fix: switch from explode to substr (faster) | Josh Richards | 4 months |
backport/47924/stable30 | fix(dav): catch `MaxInstancesExceededException` on calendar events | Luc Didry | 4 months |
backport/47924/stable29 | fix(dav): catch `MaxInstancesExceededException` on calendar events | Luc Didry | 4 months |
fix/settings--disable-discover-when-app-store-is-disabled | chore(assets): Recompile assets | Grigorii K. Shartsev | 4 months |
backport/47316/stable29 | fix: Prevent crash when refreshing metadata for files without an owner | Vincent FarZz | 4 months |
backport/47316/stable28 | fix: Prevent crash when refreshing metadata for files without an owner | Vincent FarZz | 4 months |
backport/48008/stable28 | fix(Entity): Fix magic setter call for custom strong typed setters | provokateurin | 4 months |
backport/48008/stable30 | fix(Entity): Fix magic setter call for custom strong typed setters | provokateurin | 4 months |
backport/48008/stable29 | fix(Entity): Fix magic setter call for custom strong typed setters | provokateurin | 4 months |
fix/strict-types | wip | provokateurin | 4 months |
backport/48043/stable28 | test(dav): imip service test expects integers for last occurence | Anna Larch | 4 months |
fix/dav-add-strict-type-declarations | fix(dav): add strict types declaration | Anna Larch | 4 months |
fix/mailer-binaryfinder-fallback | fix(Mailer): Fix sendmail binary fallback | Josh | 4 months |
fix-nc-env-inclusion | Merge branch 'master' into fix-nc-env-inclusion | Robin Appelman | 4 months |
artonge/fix/hash_return_type | chore: improve hash_file php usage in Local Storage | John Molakvoæ | 4 months |
backport/45098/stable29 | Merge branch 'stable29' into backport/45098/stable29 | Sebastian Krupinski | 4 months |
backport/47924/stable28 | fix(dav): catch `MaxInstancesExceededException` on calendar events | Luc Didry | 4 months |
feat/make-setup-check-trait-public | feat: Make `CheckServerResponseTrait` public and provide as `OCP\SetupCheck\C... | Ferdinand Thiessen | 4 months |
fix/sabre-dav-itip-broker | fix: Add SabreDav Patch for iTip Broker | SebastianKrupinski | 4 months |
backport/47852/stable30 | fix: misc code fixes around db sharding | Robin Appelman | 4 months |
backport/47920/stable29 | chore: Compile assets | Louis Chemineau | 4 months |
backport/47920/stable28 | chore: Compile assets | Louis Chemineau | 4 months |
backport/47920/stable30 | chore: Compile assets | Louis Chemineau | 4 months |
backport/48050/stable30 | fix(weather_status): Fix search address errors when offline | provokateurin | 4 months |
backport/48050/stable29 | fix(weather_status): Fix search address errors when offline | provokateurin | 4 months |
backport/48063/stable30 | fix(a11y): Add OTF font loading check | Joas Schilling | 4 months |
backport/48044/stable30 | test: cast node name and data to string | Anna Larch | 4 months |
backport/48030/stable30 | fix(dav): cast parameters to string | Anna Larch | 4 months |
backport/48044/stable29 | test: cast node name and data to string | Anna Larch | 4 months |
backport/48031/stable30 | fix(filesreport): cast fileId to integer | Anna Larch | 4 months |
backport/48030/stable29 | fix(dav): cast parameters to string | Anna Larch | 4 months |
backport/48031/stable29 | fix(filesreport): cast fileId to integer | Anna Larch | 4 months |
backport/48030/stable28 | fix(dav): cast parameters to string | Anna Larch | 4 months |
refactor/class-string-constant | Merge remote-tracking branch 'origin/master' into refactor/class-string-constant | Christoph Wurst | 4 months |
|