summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-07-25Merge branch 'hotfix/5.22'Damien Regad1-27/+27
2023-07-25Remove unnecessary is_array() checkDamien Regad1-23/+22
2023-07-25oci8: deprecation warning in selecLimit() on PHP 8.1wesyah2341-4/+5
'Automatic conversion of false to array is deprecated' warning is triggered when $inputarr parameter is not provided (defaulted to false). Fixes #992
2023-06-12Merge branch 'hotfix/5.22'Damien Regad4-4/+30
# Conflicts: # adodb.inc.php # docs/changelog.md
2023-06-12Update ChangelogDamien Regad1-0/+2
2023-06-12Respect @ operator in all error handlers on PHP 8Nathan Gibbs2-2/+17
error_reporting()'s return value for suppressed errors changed from 0 to 4437 in PHP 8.0.0 [1]. Follow up on commit 943ac8a7de20117d85860a9b67f9eb65c5dfe4d7. Fixes #981 (PR #984)
2023-06-12Update ADODB_db2::_query() declaration to match parentDamien Regad2-1/+7
Regression from ae2438b731d24bf0bb159a738599b9266120e96e. Fixes #987
2023-06-12Bump version to 5.22.7-devDamien Regad2-1/+4
2023-06-11Merge branch 'i982-adofetchob-refactor'Damien Regad2-60/+79
2023-06-11PHPDocDamien Regad1-18/+14
2023-06-11Rename fetchObj methods to camelCaseDamien Regad2-12/+12
2023-06-11Refactor fetchObject, remove unused propertiesDamien Regad1-22/+7
Code is simplified using the new ADOFieldObj constructor. The ADORecordSet properties $_obj and $_names are no longer needed and have been removed. Issue #982
2023-06-11Add magic methods to ADOFetchObjDamien Regad1-8/+46
This allows hanlding of dynamic properties for PHP 8.2 compatibility, without relying on the AllowDynamicProperties attribute. The constructor accepts an array of (fieldname => value) pairs for easy initialization. Fixes #982
2023-06-11announce.py: Removed unused json libraryDamien Regad1-1/+0
2023-06-11Fix exception in announce.pyDamien Regad1-1/+2
The announcement script triggered an exception: AttributeError: 'NoneType' object has no attribute 'tagged_date' This was caused by a local lightweight tag, which has no associated attributes so the lambda function used to sort the tags chronologically crashed attempting to access non-existing 'tagged_date'. Lambda was modified to return 0 in this case.
2023-06-11Merge tag 'v5.22.6'Damien Regad1-2/+3
ADOdb version 5.22.6 released 2023-06-11 # Conflicts: # adodb.inc.php # docs/changelog.md
2023-06-11Bump version to 5.22.6v5.22.6Damien Regad2-3/+3
2023-06-11Update ChangelogDamien Regad1-0/+1
2023-06-11Set AllowDynamicProperties attribute on ADOFetchObj classhschletz1-0/+1
Avoid deprecation warning on PHP 8.2. Fixes #975, as temporary workaround for #982 Signed-off-by: Damien Regad <dregad@mantisbt.org>
2023-06-11Merge branch 'hotfix/5.22'Damien Regad4-8/+42
2023-06-11PR #779 follow-upDamien Regad2-6/+14
- Add missing global var declaration - Coding guidelines - Comment usage of @ operator - Update changelog
2023-06-11pgsql: avoid Insert_ID() failing when lastval() is not setNathan Gibbs1-5/+11
If Insert_ID() is executed before nextval() has been called in the current session, SELECT lastval() will fail with `ERROR: lastval is not yet defined in this session`. When using Exceptions, this causes one to be thrown but this is not the expected behavior, as the function is expected to just return false in this case. Fixes #978 Signed-off-by: Damien Regad <dregad@mantisbt.org> Rewritten commit message
2023-06-10Fix adodb_throw() ignoring @ operator on PHP 8Damien Regad2-4/+14
error_reporting()'s return value for suppressed errors changed from 0 to 4437 in PHP 8.0.0 [1]. As a result, adodb_throw() throws exceptions when it is not expected to. Fixes #981 [1]: https://www.php.net/manual/en/language.operators.errorcontrol.php
2023-06-10Incorrect ADORecordset::$fetchMode initializationDamien Regad9-13/+9
Regression introduced by 5c9e24cf98409004da2a5e5bd80eeec82c5a3997 For some drivers using native fetch mode constants, the $fetchMode property was not set properly as the switch statement assigning its value was driven by the constructor's $mode parameter instead of the parent constructor's $adodbFetchMode property. Fixes #980
2023-05-24Update changelogDamien Regad1-0/+2
2023-05-24Fail connection if mysqlnd is not availableDamien Regad1-0/+8
Since 5.22.0, the mysqli driver relies on the mysqli_stmt_get_result() function, which is only available in the MySQL Native Driver, to execute queries. An attempt to connect on a system using libmysqlclient should fail with an error message, to avoid problems down the line. Fixes #967
2023-05-22Merge branch 'hotfix/5.22'Damien Regad8-18/+21
2023-05-22Remove incorrect usage of reference operator (&)Damien Regad1-6/+6
2023-05-22WhitespaceDamien Regad1-3/+1
2023-05-22Set $fetchMode property in ADORecordSet constructorDamien Regad22-216/+83
This reduces code duplication as the logic to initialize $fetchMode from $ADODB_FETCH_MODE global was repeated in most drivers. $adodbFetchMode is systematically initialized as well now; previously it was only set in those drivers having specific fetch modes. Fixes #958
2023-05-22Coding guidelinesDamien Regad5-6/+6
2023-05-22PHPDocDamien Regad3-12/+12
2023-05-22PHPDoc: ADODB_mysqli::setCharSet() is deprecatedDamien Regad1-0/+3
As mentioned in the documentation [1], function is deprecated for MySQL databases since version 5.21. [1]: https://adodb.org/dokuwiki/doku.php?id=v5:reference:connection:setcharset
2023-05-18Remove legacy PHP 4 session scriptsDamien Regad5-1320/+2
Fixes #962
2023-05-18Remove Date/Time LibraryDamien Regad5-1527/+2
It does not make much sense anymore in the age of 64-bit computing, where timestamps will not overflow for 292 billion years... Fixes #970
2023-05-18Merge branch 'hotfix/5.22'Damien Regad24-84/+101
2023-05-18Reference separate issue for Date/Time deprecationDamien Regad1-2/+2
2023-05-12Update ChangelogDamien Regad1-1/+16
2023-05-12Deprecate Date/Time LibraryDamien Regad1-0/+2
It does not make much sense anymore in the age of 64-bit computing, where timestamps will not overflow for 292 billion years... it will be removed in a future relase of ADOdb Issue #963
2023-05-12Restore rs2html() $htmlspecialchars param behaviorFabian Lemm1-1/+4
Regression introduced by bda6e1ea4271d0818dc22213e6a37269eea427b4. Fixes #968, PR #969 Signed-off-by: Damien Regad <dregad@mantisbt.org> Changes from original contribution: - extract trim() call from if statement - revised commit message - backport to hotfix/5.22 branch
2023-04-30WhitespaceDamien Regad3-8/+8
2023-04-30Define ADOConnection::_query() methodDamien Regad21-53/+70
- Update child classes to be consistent with this declaration. - Remove unnecessary, non-PHPDoc comments - Consistent parameter names Fixes #966
2023-04-30PHPDoc: fix ADOConnection::execute() return typeDamien Regad3-21/+1
Remove redundant PHPDoc block in child classes ADODB_mysqli, ADODB_oci8. Fixes #964
2023-04-19Remove deprecated Database Replication add-onDamien Regad4-1775/+2
Fixes #780
2023-04-18Replace deprecated MySQL BINARY operatorDamien Regad1-15/+36
Use `CAST(... AS BINARY)` instead of `/*! BINARY ... */` Fixes #942
2023-04-18Simplify init of Session expireref / notify functionDamien Regad1-27/+4
Use simple array references and $GLOBALS instead of reset()/next() and a variable variable.
2023-04-18Remove no longer used noBlobs variableMike1-1/+0
Fixes #961
2023-04-18Fix bad merge conflict resolutionDamien Regad1-14/+24
Merge commit 917c54ec9d0df1bb34fe80a71336b446f09d74ae did not resolve conflicted adodb.inc.php correctly: changes in the hotfix/5.22 branch were simply ignored instead of being selectively applied. As a result, the fix for #954 and some PHPDoc improvements were not applied. Fixes #960
2023-04-16Merge branch 'hotfix/5.22'Damien Regad2-2/+3
2023-04-16Fix deprecated warning in ADODB_postgres64::qStr()Damien Regad1-1/+3
pg_escape_string() will trigger a deprecation warning in PHP 8.1+ when there is no connection specified. This can occur when using setSessionVariables() in the load balancer, so we fall back to emulated escaping in this case. Fixes #956