Title: Fixed warnings and notices issued by PHP 8.1.4 by BertHooyman · Pull Request #2 · mapcode-foundation/mapcode-php · GitHub
Open Graph Title: Fixed warnings and notices issued by PHP 8.1.4 by BertHooyman · Pull Request #2 · mapcode-foundation/mapcode-php
X Title: Fixed warnings and notices issued by PHP 8.1.4 by BertHooyman · Pull Request #2 · mapcode-foundation/mapcode-php
Description: several api functions (decodeTriple and decode) returned either an object or an int 0. This leads to warnings in the calling code under PHP 8.1. As a fix, these functions now return null rather than 0. In various places, associative arrays were accessed using non-existing keys. E.g. $GLOBALS['redivar'], $_REQUEST['s'], $_GET['edge'] and $_GET['start']. Code has been extended to avoid such access. In the function territory_code_tests() in unittest.php, there was a $testdata array entry for 'US-CA OTHER TEXT' having a context of '-1 -1'. This is evaluated as -2 and that leads to a warning in PHP 8.1. The context has been fixed to '-1' Indexing into an uninitialized array leads to warning in PHP 8.1. This has been fixed for accessing $result[$p] in to_ascii()
Open Graph Description: several api functions (decodeTriple and decode) returned either an object or an int 0. This leads to warnings in the calling code under PHP 8.1. As a fix, these functions now return null rather tha...
X Description: several api functions (decodeTriple and decode) returned either an object or an int 0. This leads to warnings in the calling code under PHP 8.1. As a fix, these functions now return null rather tha...
Opengraph URL: https://github.com/mapcode-foundation/mapcode-php/pull/2
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8cc9200e-0d24-2a16-61aa-3f59f7adf0d4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9A96:2B71F3:15E3B13:1BABB09:6975BAD4 |
| html-safe-nonce | 201193000de44b1066fe86560950fff0459f6eeaaf14d4f8b81eb4f3aea46bbf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTk2OjJCNzFGMzoxNUUzQjEzOjFCQUJCMDk6Njk3NUJBRDQiLCJ2aXNpdG9yX2lkIjoiNjczNzYyNTMzMDU1NTkyNzI1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 55dff4c38a3c9c997fde2068948177dedb01b17fa028d44c522cd24ce4da291e |
| hovercard-subject-tag | pull_request:1070075860 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/mapcode-foundation/mapcode-php/pull/2/files |
| twitter:image | https://avatars.githubusercontent.com/u/12392748?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12392748?s=400&v=4 |
| og:image:alt | several api functions (decodeTriple and decode) returned either an object or an int 0. This leads to warnings in the calling code under PHP 8.1. As a fix, these functions now return null rather tha... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/mapcode-foundation/mapcode-php git https://github.com/mapcode-foundation/mapcode-php.git |
| octolytics-dimension-user_id | 8832474 |
| octolytics-dimension-user_login | mapcode-foundation |
| octolytics-dimension-repository_id | 40119124 |
| octolytics-dimension-repository_nwo | mapcode-foundation/mapcode-php |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40119124 |
| octolytics-dimension-repository_network_root_nwo | mapcode-foundation/mapcode-php |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width