Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.19 KB | None | 0 0
  1. $ ag 'php.*(5\.[456]|7\.0)'
  2. repository/s3/lib.php
  3. 29:// This constant is not defined in php 5.4. Set it to avoid errors.
  4.  
  5. repository/upgrade.txt
  6. 93:* instance_config_form() must now be declared static for php5.4 compatibility.
  7.  
  8. composer.lock
  9. 585: "php": ">=5.5.0",
  10. 641: "php": ">=5.5"
  11. 645: "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
  12. 704: "php": ">=5.5.0"
  13. 755: "php": ">=5.4.0",
  14. 931: "php": ">=5.4.4",
  15. 975: "php": "^5.6 || ^7.0"
  16. 1023: "php": "^5.6 || ^7.0"
  17. 1075: "php": "^5.6 || ^7.0"
  18. 1122: "php": ">=5.5"
  19. 1176: "php": "^7.0",
  20. 1227: "php": "^5.5 || ^7.0",
  21. 1275: "php": "^5.3|^7.0",
  22. 1339: "php": "^7.0",
  23. 1391: "php": "^7.0",
  24. 1540: "php": "^5.3.3 || ^7.0"
  25. 1590: "php": "^7.0"
  26. 1646: "php": "^7.0",
  27. 1723: "php": "^7.0",
  28. 1927: "php": "^5.6 || ^7.0"
  29. 1972: "php": "^7.0",
  30. 2036: "php": "^7.0"
  31. 2088: "php": "^7.0"
  32. 2138: "php": "^7.0",
  33. 2205: "php": "^7.0"
  34. 2256: "php": "^7.0",
  35. 2303: "php": "^7.0"
  36. 2348: "php": "^7.0"
  37. 2401: "php": ">=5.6.0"
  38. 2443: "php": ">=5.6"
  39. 2486: "php": "^5.5.9|>=7.0.8",
  40. 2543: "php": "^5.5.9|>=7.0.8"
  41. 2599: "php": "^5.5.9|>=7.0.8",
  42. 2663: "php": "^5.5.9|>=7.0.8",
  43. 2731: "php": "^5.5.9|>=7.0.8"
  44. 2784: "php": "^5.5.9|>=7.0.8",
  45. 2840: "php": "^5.5.9|>=7.0.8",
  46. 2910: "php": "^5.5.9|>=7.0.8",
  47. 2967: "php": "^5.5.9|>=7.0.8"
  48. 3030: "php": "^5.5.9|>=7.0.8",
  49. 3243: "php": "^5.5.9|>=7.0.8",
  50. 3308: "php": "^5.5.9|>=7.0.8"
  51. 3366: "php": "^7.0"
  52. 3403: "php": "^5.3.3 || ^7.0"
  53.  
  54. install/lang/sk/install.php
  55. 75:$string['phpversionhelp'] = '<p>Moodle si vyžaduje verziu PHP aspoň 5.6.5 alebo 7.1 (7.0.x má určité obmedzenia jadra).</p>
  56.  
  57. install/lang/da/install.php
  58. 83:$string['phpversionhelp'] = '<p>Moodle kræver mindst PHP version 5.6.5. eller 7.1 (7.0.x har nogle maskinbegrænsninger).</p>
  59.  
  60. install/lang/no/install.php
  61. 81:$string['phpversionhelp'] = '<p>Moodle trenger en PHP versjon minst 5.6.5 eller 7.1.0 (7.0.x har noen begrensninger).</p>
  62.  
  63. install/lang/pt_br/install.php
  64. 85:$string['phpversionhelp'] = '<p>O Moodle requer uma versão PHP de pelo menos 5.6.5 ou 7.1 (o 7.0.x tem algumas limitações do motor). </p>
  65.  
  66. install/lang/ja/install.php
  67. 87:$string['phpversionhelp'] = '<p>Moodleには少なくとも5.6.5または7.1のPHPバージョンが必要です (7.0.x にはエンジンの制限があります)。</p>
  68.  
  69. install/lang/it/install.php
  70. 86:$string['phpversionhelp'] = '<p>Moodle necessita come minimo della versione 5.6.5 del PHP. (La versione 7.0.x ha alcuni limiti nell\'engine)</p>
  71.  
  72. install/lang/cs/install.php
  73. 85:$string['phpversionhelp'] = '<p>Moodle vyžaduje PHP alespoň verze 5.6.5 PHP nebo 7.1 (7.0.x má určitá omezení jádra).</p>
  74.  
  75. install/lang/ru/install.php
  76. 85:$string['phpversionhelp'] = '<p>Для Moodle необходим PHP версии не ниже 5.6.5 или 7.1 (есть некоторые проблемы с версией 7.0.x).</p>
  77.  
  78. install/lang/sr_cr/install.php
  79. 83:$string['phpversionhelp'] = '<p>Moodle захтева најмање PHP верзију 5.6.7 или 7.1 (7.0.x има нека ограничења).</p>
  80.  
  81. install/lang/pt/install.php
  82. 69:$string['phpversionhelp'] = '<p>A instalação do Moodle só é possível se no servidor estiver instalada, pelo menos, a versão 5.6.5 do PHP (a versão 7.0.x tem algumas limitações).</p>
  83.  
  84. install/lang/es_mx/install.php
  85. 88:$string['phpversionhelp'] = '<p>Moodle requiere una versión de PHP de al menos 5.6.5 o 7.1 (7.0.x tiene algunas limitaciones del motor).</p>
  86.  
  87. install/lang/hu/install.php
  88. 68:$string['phpversionhelp'] = 'A Moodle használatához legalább a PHP 5.6.5 vagy 7.1 verziója szükséges
  89.  
  90. install/lang/nl/install.php
  91. 83:$string['phpversionhelp'] = '<p>Moodle heeft minstens PHP-versie 5.6.5 of 7.1 nodig (7.0.x heeft een aantal beperkingen).</p>
  92.  
  93. install/lang/de/install.php
  94. 76:$string['phpversionhelp'] = '<p>Moodle benötigt mindestens die PHP-Version 5.6.5. oder 7.1 (7.0.x weist einige Einschränkungen auf).</p>
  95.  
  96. install/lang/fr/install.php
  97. 81:$string['phpversionhelp'] = '<p>Moodle nécessite au minimum la version 5.6.5 ou 7.1 (la version 7.0.x a des limitations avec certains moteurs de base de données).</p>
  98.  
  99. install/lang/et/install.php
  100. 91:$string['phpversionhelp'] = '<p>Moodle vajab vähemalt PHP versiooni 5.6.5 või 7.1 (versioonil 7.0.x on mõned mootoripiirangud).</p>
  101.  
  102. install/lang/en/install.php
  103. 93:$string['phpversionhelp'] = '<p>Moodle requires a PHP version of at least 5.6.5 or 7.1 (7.0.x has some engine limitations).</p>
  104.  
  105. install/lang/fa/install.php
  106. 99:$string['phpversionhelp'] = '<p>مودل نیاز به PHP نسخهٔ حداقل 5.6.5 یا 7.1 دارد (<span dir="ltr" style="direction: ltr; display: inline-block">7.0.x</span> محدودیت‌هایی در engine اش دارد).</p>
  107.  
  108. install/lang/lt/install.php
  109. 66:$string['phpversionhelp'] = '<p>„Moodle“ reikalauja, kad PHP versija būtų ne žemesnė 5.6.5 arba 7.1 (7.0.x versijoje yra tam tikrų trūkumų).</p>
  110.  
  111. install/lang/eu/install.php
  112. 88:$string['phpversionhelp'] = '<p>Moodle-k PHP 5.6.5 edo 7.1 bertsioetako bat behar du (7.0.x bertsioek muga batzuk dituzte). </p>
  113.  
  114. install/lang/sr_lt/install.php
  115. 80:$string['phpversionhelp'] = '<p>Moodle zahteva najmanje PHP verziju 5.6.7 ili 7.1 (7.0.x ima neka ograničenja).</p>
  116.  
  117. cache/upgrade.txt
  118. 7:* The memcache store was removed as it is not compatible with PHP 7.0.
  119.  
  120. Dockerfile
  121. 1:FROM php:7.0-cli
  122.  
  123. admin/environment.xml
  124. 1029: <PHP version="5.4.4" level="required">
  125. 1168: <PHP version="5.4.4" level="required">
  126. 1302: <PHP version="5.4.4" level="required">
  127. 1446: <PHP version="5.4.4" level="required">
  128. 1590: <PHP version="5.4.4" level="required">
  129. 1756: <PHP version="5.6.5" level="required">
  130. 1922: <PHP version="5.6.5" level="required">
  131. 2099: <PHP version="7.0.0" level="required">
  132. 2276: <PHP version="7.0.0" level="required">
  133. 2453: <PHP version="7.0.0" level="required">
  134.  
  135. admin/tool/installaddon/classes/installer.php
  136. 388: // The following syntax uses function array dereferencing, added in PHP 5.4.0.
  137.  
  138. lang/en/install.php
  139. 217:$string['phpversionhelp'] = '<p>Moodle requires a PHP version of at least 5.6.5 or 7.1 (7.0.x has some engine limitations).</p>
  140.  
  141. lib/minify/matthiasmullie-minify/src/JS.php
  142. 220: // PHP only supports $this inside anonymous functions since 5.4
  143. 502: // PHP only supports $this inside anonymous functions since 5.4
  144.  
  145. lib/minify/matthiasmullie-minify/src/Minify.php
  146. 331: // PHP only supports $this inside anonymous functions since 5.4
  147.  
  148. lib/spout/README.md
  149. 42:* PHP version 5.4.0 or higher
  150.  
  151. lib/deprecatedlib.php
  152. 313: * @deprecated since 2.7 PHP 5.4.x should be always compatible.
  153.  
  154. lib/phpmailer/changelog.md
  155. 17:* **Requires PHP 5.5 or later**
  156. 28: * Warnings emitted for buggy `mail()` in PHP versions 7.0.0 - 7.0.16 and 7.1.0 - 7.1.2; either upgrade or switch to SMTP.
  157.  
  158. lib/phpmailer/src/Exception.php
  159. 4: * PHP Version 5.5.
  160.  
  161. lib/phpmailer/src/SMTP.php
  162. 4: * PHP Version 5.5.
  163. 391: //PHP 5.6.7 dropped inclusion of TLS 1.1 and 1.2 in STREAM_CRYPTO_METHOD_TLS_CLIENT
  164.  
  165. lib/phpmailer/src/PHPMailer.php
  166. 4: * PHP Version 5.5.
  167. 266: * Be aware that in PHP >= 5.6 this requires that the server's certificates are valid.
  168. 1280: //Ignore IDE complaints about this line - method signature changed in PHP 5.4
  169. 1342: and ((version_compare(PHP_VERSION, '7.0.0', '>=')
  170. 1343: and version_compare(PHP_VERSION, '7.0.17', '<'))
  171. 1350: ' your php.ini, switch to MacOS or Linux, or upgrade your PHP to version 7.0.17+ or 7.1.3+.',
  172.  
  173. lib/phpmailer/README.md
  174. 24:- Compatible with PHP 5.5 and later
  175. 65:PHPMailer 5.2 (which is compatible with PHP 5.0 - 7.0) is no longer being supported for feature updates, and will only be receiving security updates from now on. You will find the latest version of 5.2 in the [5.2-stable branch](https://github.com/PHPMailer/PHPMailer/tree/5.2-stable), and future versions of 5.2 will be tagged with 5.2.x version numbers, so existing composer configs should remain working. If you're using PHP 5.5 or later, we recommend you make the necessary changes to switch to the 6.0 release.
  176. 146:There is a PHPUnit test script in the [test](https://github.com/PHPMailer/PHPMailer/tree/master/test/) folder. PHPMailer uses PHPUnit 4.8 - we would use 5.x but we need to run on PHP 5.5.
  177.  
  178. lib/adodb/drivers/adodb-mysqlt.inc.php
  179. 13: is deprected in PHP version 5.5 and removed in PHP version 7. It is deprecated
  180.  
  181. lib/adodb/drivers/adodb-mysql.inc.php
  182. 12: is deprected in PHP version 5.5 and removed in PHP version 7. It is deprecated
  183.  
  184. lib/mlbackend/php/classes/processor.php
  185. 69: if (version_compare(phpversion(), '7.0.0') < 0) {
  186.  
  187. lib/phpexcel/PHPExcel/Reader/Excel2003XML.php
  188. 562: $objPHPExcel->getActiveSheet()->getColumnDimension($columnID)->setWidth($columnWidth / 5.4);
  189.  
  190. lib/simplepie/library/SimplePie.php
  191. 1306: // Then check the xml extension is sane (i.e., libxml 2.7.x issue on PHP < 5.2.9 and libxml 2.7.0 to 2.7.2 on any version) if we don't have xmlreader.
  192. 1486: $this->error .= ' You MUST have either the iconv, mbstring or intl (PHP 5.5+) extension installed and enabled.';
  193. 1496: $missingExtensions[] = 'intl (PHP 5.5+)';
  194.  
  195. lib/classes/text.php
  196. 540: } else if (version_compare(phpversion(), '5.4.0') < 0) {
  197.  
  198. lib/classes/session/manager.php
  199. 268: ini_set('session.serialize_handler', 'php'); // We can move to 'php_serialize' after we require PHP 5.5.4 form Moodle.
  200. 533: if (version_compare(PHP_VERSION, '5.6.0', '>=')) {
  201.  
  202. lib/markdown/Readme.md
  203. 4:PHP Markdown Lib 1.7.0 - 29 Oct 2016
  204. 177:PHP Markdown Lib 1.7.0 (29 Oct 2016)
  205.  
  206. lib/google/src/Google/Logger/Abstract.php
  207. 367: if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
  208.  
  209. lib/dml/oci_native_moodle_database.php
  210. 1020: if ($params[$key] === null && version_compare(PHP_VERSION, '7.0.0', '>=')) {
  211.  
  212. lib/horde/framework/Horde/Imap/Client/DateTime.php
  213. 32: $bug_67118 = (version_compare(PHP_VERSION, '5.6', '>=')) ||
  214. 33: in_array(PHP_VERSION, array('5.4.29', '5.5.13'));
  215.  
  216. lib/horde/framework/Horde/Idna.php
  217. 157: /* Only available in PHP > 5.4.0 */
  218.  
  219. lib/horde/framework/Horde/Mime/Part.php
  220. 1319: // TODO: Workaround broken number_format() prior to PHP 5.4.0.
  221.  
  222. lib/horde/framework/Horde/Domhtml.php
  223. 251: if (version_compare(PHP_VERSION, '5.4', '>=')) {
  224.  
  225. lib/filestorage/tests/zip_packer_test.php
  226. 471: // And some PHP versions do return correctly false (5.4.25, 5.6.14...)
  227.  
  228. lib/filestorage/zip_archive.php
  229. 272: // PHP 5.6 introduced encoding guessing logic, we need to fall back
  230. 273: // to raw ZIP_FL_ENC_RAW (== 64) to get consistent results as in PHP 5.5.
  231.  
  232. lib/setuplib.php
  233. 981: // - PHP versions lesser than 5.6.3 and 5.5.18.
  234. 988: // at least on CentOS 7 (Apache/2.4.6 PHP/5.4.16) and Ubuntu 14.04 (Apache/2.4.7 PHP/5.5.9)
  235.  
  236. lib/phpunit/phpunit.xsd
  237. 4: <xs:documentation source="https://phpunit.de/manual/5.4/en/appendixes.configuration.html">
  238. 5: This Schema file defines the rules by which the XML configuration file of PHPUnit 5.4 may be structured.
  239.  
  240. lib/setup.php
  241. 350:if (version_compare(PHP_VERSION, '5.6.5') < 0) {
  242. 353: echo "Moodle 3.2 or later requires at least PHP 5.6.5 (currently using version $phpversion).\n";
  243.  
  244. lib/upgrade.txt
  245. 408:* Phpunit has been upgraded to 5.4.x and following has been deprecated and is not used any more:
  246. 637:* Less.php upgraded to 1.7.0.9
  247.  
  248. files/converter/googledrive/classes/converter.php
  249. 257: // This is not a one-liner because of php 5.6.
  250.  
  251. backup/moodle2/backup_custom_fields.php
  252. 221: * Note that until PHP 5.6.12 openssl_random_pseudo_bytes() did NOT
  253.  
  254. mod/workshop/classes/privacy/workshopform_legacy_polyfill.php
  255. 34: * type hinting that is available in PHP 7.0 only. If a plugin wants to implement the interface in 3.3 (and therefore
  256. 35: * PHP 5.6) with the same codebase, they can make use of this trait. Instead of implementing the interface directly, the
  257.  
  258. mod/quiz/report/overview/report.php
  259. 591: // See MDL-34589. Using doubles as array keys causes problems in PHP 5.4, hence the explicit cast to int.
  260.  
  261. mod/lti/service/profile/db/renamedclasses.php
  262. 30: // Changed for PHP 7.0 which now has the word "resource" as a reserved word.
  263.  
  264. mod/lti/service/memberships/db/renamedclasses.php
  265. 30: // Changed for PHP 7.0 which now has the word "resource" as a reserved word.
  266.  
  267. mod/lti/service/toolproxy/db/renamedclasses.php
  268. 30: // Changed for PHP 7.0 which now has the word "resource" as a reserved word.
  269.  
  270. mod/lti/service/toolsettings/db/renamedclasses.php
  271. 30: // Changed for PHP 7.0 which now has the word "resource" as a reserved word.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement