Commit Graph

29 Commits

Author SHA1 Message Date
Andrew Nicols d9863dbc94 MDL-83336 core: Update for deprecation of xml_set_object
From PHP 8.4, `xml_set_object()`, and passing a string helper to
`xml_set_.*_handler()` has been deprecated.

This commit updates all uses of these in core code.

Please note the following libraries have not been modified and will be
handled via library upgrades separately:
- simplepie
- phpxmlrpc
- tcpdf
2024-10-09 15:02:37 +08:00
Jun Pataleta 561d48da39 MDL-81552 core: Assign proper webdav_client class variables 2024-04-16 12:54:00 +08:00
Eloy Lafuente (stronk7) 29a541724f MDL-65292 style: Fix all the function declaration ordering
This has been generated running the following Sniff,
part of the Moodle's CodeSniffer standard:
- PSR2.Methods.MethodDeclaration

It just ensures all the function declarations have
the correct order for:
- abstract and final.
- visibility (public, protected, private).
- static.

So, all the lines modified by this commit are function declarations
and the only changes are in the positions of those keywords.
2024-02-28 23:47:47 +01:00
Meirza 97ff68fd6b MDL-78159 lib: Added missing properties for core libraries
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-06-21 15:39:53 +07:00
raortegar a03e6363de MDL-76412 general: Fixed PHP 8.2 utf8_encode deprecations 2023-02-15 10:27:38 +01:00
Marina Glancy a800e7e62f MDL-74853 various: add second parameter to htmlentities functions
Default value of the $flag argument changed in PHP 8.1 from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE
To ensure consistent behavior across different PHP version the second parameter is now required for the functions:
htmlspecialchars(), htmlentities(), htmlspecialchars_decode(), html_entity_decode() and get_html_translation_table()
2022-11-28 16:12:20 +01:00
Huong Nguyen 24e7bff1b9 MDL-76324 webdav: Fix error for PHP 8.0 2022-11-23 09:11:42 +07:00
Sujith Haridasan 3ad2833dd9 MDL-74718 webdav: correct the loop when reading chunks
Adjusted the condition while reading the streams
in chunks. Read till the end to make sure we have got all
the data. Else we might not get all the data to show
in file picker.
2022-06-09 12:02:34 +05:30
Marina Glancy 33683bc80c MDL-60281 general: function each() is deprecated in PHP7.2 2017-10-16 09:37:20 +08:00
Jan Dageförde d5c60ac815 MDL-59844 webdav: Add bearer auth method to WebDAV requests 2017-10-06 14:47:41 +02:00
Frederic Massart 35b48c7aed MDL-56915 webdav: Increase maximum expected header size 2016-11-16 17:19:19 +08:00
sam marshall 3ef7279f26 MDL-42084 Core: Change set_time_limit to core_php_time_limit::raise everywhere
Exceptions (places where set_time_limit is still left) are:

Third-party libraries:
  ADODB
  PHPMailer

Moodle core:
  PHPUnit - not relevant (CLI mode)
2013-11-06 16:40:01 +00:00
Tim Hunt 562684e3a0 MDL-42309 typo: fix reponse -> response throughout Moodle. 2013-10-15 13:47:27 +11:00
Davo Smith e38f699271 MDL-36538 repository_webdav - save files directly to local filesystem, rather than buffering in memory 2012-12-07 09:17:28 +00:00
Aparup Banerjee 20c3e25343 Merge branch 'MDL-34715-master' of git://github.com/FMCorz/moodle 2012-08-07 10:40:22 +08:00
Frederic Massart 3e512abbe4 MDL-22663 Repository: WebDAV supports Digest authentication 2012-08-03 14:03:54 +08:00
Frederic Massart d09c62c4e1 MDL-22663 Repository: WebDAV supports SSL and chunked data 2012-08-03 13:51:56 +08:00
Frederic Massart ea034d73df MDL-22663 Repository: Fixed strict standards notices in WebDAV lib 2012-08-03 13:44:29 +08:00
Sam Hemelryk 7df271d9b3 Merge branch 'MDL-27559-master-v2' of https://github.com/mackensen/moodle 2012-06-06 08:51:11 +12:00
Charles Fulton 80c27aab8c MDL-27559 opendir: validate directory pointer on open 2012-05-25 08:52:12 -07:00
Aparup Banerjee 5d788e38ff MDL-30154 Repositories : fixed whitespace. 2011-11-08 11:29:31 +08:00
Andreas Grabs 6543f3cd5b MDL-30154 - WebDAV-Repository fails on some WebDAV-Server 2011-11-06 22:09:11 +01:00
Dongsheng Cai a63f4129ee MDL-22663, fixed webdav url path 2010-10-20 09:22:55 +00:00
Dongsheng Cai 3ced70fa5e MDL-22663, fixed webdav basic authentication 2010-09-24 04:10:46 +00:00
Petr Skoda dbd5682d11 fixed missing params 2010-09-18 11:10:58 +00:00
Andrew Davis 6959330979 all MDL-20821 Removed more deprecated functions 2009-11-18 06:05:10 +00:00
samhemelryk b868d3d9cf lib MDL-19236 Added boilerplates and copyrights 2009-05-26 06:26:11 +00:00
dongsheng 7b58fb4179 "webdav plugin/MDL-16908, fix header check code, reformat code" 2009-04-23 09:50:30 +00:00
dongsheng 934ff62cfe "MDL-16908, webdav plugin for repository module" 2008-10-21 06:30:50 +00:00