24 Commits

Author SHA1 Message Date
Andrew Nicols
dfccb3f3c4
MDL-79890 core: Stop using get_class() without args
PHP 8.3 deprecates the use of `get_class()` without arguments. The
following alternatives should instead be used as appropriate:

- `get_class($this)` - The equivalent for instance methods
- `self::class` - The current class

Note that the behaviour of `get_class()` in a static method was
equivalent to `self::class` and _not_ `static::class`. That is to say
that the previous behaviour did not respect late static binding.
2023-11-15 09:14:40 +08:00
Meirza
bb7f3bd9f5 MDL-77374 libraries: Added #[AllowDynamicProperties] attribute
To temporarily prevent the PHP 8.2 warning about Dynamic Properties' deprecation,
the #[AllowDynamicProperties] property was added. We encourage anyone to perform the upgrade
as soon as the Google library complies with PHP 8.2.
2023-04-12 16:39:43 +07:00
Andrew Nicols
0646f7ea5a Merge branch 'MDL-76183-master' of https://github.com/davewoloszyn/moodle 2022-12-01 08:55:34 +03:00
David Woloszyn
126028cc76 MDL-76183 lib: Update Github URLs 2022-11-30 14:01:31 +11:00
Marina Glancy
b99a931f7f MDL-76355 lib: apply a patch to googleapi for php 8.1 compatibility 2022-11-28 12:00:51 +01:00
Eloy Lafuente (stronk7)
d2ad5e8461 MDL-73523 libraries: openssl_free_xxx() methods are deprecated in php80
So we are putting them under a standard PHP_MAJOR_VERSION < 8 condition.

Also, added TODO comments to remember to delete that block of code when
php80 becomes the minimum required versions in the future (Moodle 4.3?).

When possible, an issue has been created upstream, else a comment in
readme_moodle files has been added.

Finally, when the keys being freed were class or object attributes, also
nullify them (but when the calls were part of destructor methods).
2022-01-20 14:48:22 +01:00
Marina Glancy
5148d33fa1 MDL-71395 core: fix bug in google lib wrapper
because of changes in PHP8 the '' == 0 is no longer true and the error in the google api wrapper was discovered
2021-05-06 15:39:11 +02:00
Eloy Lafuente (stronk7)
87861d94e3 MDL-67115 google: php74 params order for implode()
Passing parameters to implode() in reverse order is deprecated, use
implode($glue, $parts) instead of implode($parts, $glue).

This commit corresponds to general search of wrong cases.
2020-01-19 18:47:28 +01:00
Eloy Lafuente (stronk7)
b69028e626 MDL-67034 google: php74 fix (curly braces) for the Google-Client lib 2019-11-16 20:03:37 +01:00
Simey Lameze
6648283a77 MDL-53512 libraries: update google API library to version 1.1.7 2016-03-22 08:38:11 +08:00
Damyon Wiese
80af92f0fe MDL-51531 libraries: Upgrade google libraries to 1.1.5 2015-09-30 13:28:19 +08:00
Eloy Lafuente (stronk7)
c790542885 MDL-49519 Google API: use autoload everywhere
Update core (repository & portfolio) to use autoload facilities,
getting rid of not-needed-anymore requires.

Clarify a bit the readme_moodle information and expected use.
2015-04-08 20:29:03 +02:00
Eloy Lafuente (stronk7)
2b90ce658b MDL-49519 Google API: remove old stuff 2015-04-08 20:24:54 +02:00
Dave Cooper
fa48383bfa MDL-49519 libraries: Update references to new Google API library 2015-04-08 02:26:16 +02:00
Dave Cooper
aec4292cbd MDL-49519 libraries: Updated google-api-php-client to 1.1.2 2015-04-08 02:26:09 +02:00
Dan Poltawski
54f2db7226 NOBUG: Fixed file access permissions 2014-10-10 12:09:18 +01:00
Frederic Massart
28cdc0439f MDL-47297 repository_googledocs: Use the newer Google API 2014-10-08 19:15:09 +08:00
Frederic Massart
27bd4e4b86 MDL-47297 libraries: Update Google API to v1.0.5-beta 2014-10-08 19:15:00 +08:00
Tim Hunt
5bcfd504df MDL-45618 Fix @since PHPdoc tags. 2014-05-19 17:03:04 +01:00
Matteo Scaramuccia
753b71c775 MDL-43575 Libraries Google_CurlIO ext, typo in the overridden setOption(). 2014-01-13 21:29:23 +01:00
Frederic Massart
7c9753a713 MDL-42808 library: Google API was resetting the timezone 2013-11-11 15:25:00 +08:00
Damyon Wiese
41af3cb32c Fix permissions 2013-02-22 10:53:47 +08:00
Frederic Massart
3425813fc4 MDL-37217 repository: Google Docs repository uses Google SDK 2013-02-19 13:36:23 +08:00
Frederic Massart
0acb074618 MDL-37217 repository: Adding Google API PHP SDK 2013-02-19 13:36:23 +08:00