PHP 7.4
Passing the $glue and $pieces parameters in reverse order to join has been deprecated since PHP 7.4
Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 7.4
PHP 8
PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /sites/all/modules/contrib/oauth/lib/OAuth.php on line 114
| Comment | File | Size | Author |
|---|---|---|---|
| oauth-php-7.4.patch | 1.12 KB | jacob.embree |
Comments
Comment #2
hargobindThis looks good to me, and works well on my site when using PHP 7.4.
One trivial suggestion would be to replace join() with implode() since join() is just an alias of implode(). This would not result in any actual runtime difference, it's purely aesthetical.
Comment #3
jacob.embree commentedI thought that would be outside the scope of the PHP 7.4 compatibility issue and has the chance of causing a committer to balk.
Comment #4
hargobindMakes sense. Whoever commits it can make the call themselves.
Thanks again for the patch!
Comment #5
wylbur commentedAlso confirming this patch cleared out our php 7.4 errors:
```
Deprecated: Array and string offset access syntax with curly braces is deprecated in modules/contrib/oauth/lib/OAuth.php on line 114
```
Comment #6
fenstrat+1 to RTBC.
Comment #7
tenamurphy commented+1 to RTBC
Comment #8
Anonymous (not verified) commentedAnother +1 for RTBC
Comment #9
mr.york commented+1 RTBC
Comment #10
caesius commented+1 RTBC, also fixes fatal errors on PHP 8.0.
Comment #11
poker10 commentedComment #12
ron collins commentedWorks for 8.1 as well.
Comment #13
jeebsuk commented+1 for it resolving issues on PHP 8.1