You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PHP 7.4 reports "Trying to access array offset" messages #37303
PHP 7.4 emits messages when code tries to access an array offset on a variable that is not an array. Previous PHP versions did not complain - but actually such code is bad and should be sorted out.
I will check the CI logs of PR #37302 for any of those and report them here.
Edit: checking done - the 2 posts below are what I found.
{"reqId":"gjHXY3KH2ySQRqGuqaLe","level":3,"time":"2020-04-24T06:17:37+00:00","remoteAddr":"192.168.16.8","user":"user1","app":"PHP","method":"POST","url":"\/ocs\/v1.php\/apps\/files_sharing\/api\/v1\/shares","message":"Trying to access array offset on value of type bool at \/drone\/src\/apps\/federatedfilesharing\/lib\/FederatedShareProvider.php#255"}
{"reqId":"gjHXY3KH2ySQRqGuqaLe","level":3,"time":"2020-04-24T06:17:37+00:00","remoteAddr":"192.168.16.8","user":"user1","app":"PHP","method":"POST","url":"\/ocs\/v1.php\/apps\/files_sharing\/api\/v1\/shares","message":"Trying to access array offset on value of type null at \/drone\/src\/apps\/federatedfilesharing\/lib\/FederatedShareProvider.php#255"}
{"reqId":"gjHXY3KH2ySQRqGuqaLe","level":3,"time":"2020-04-24T06:17:37+00:00","remoteAddr":"192.168.16.8","user":"user1","app":"PHP","method":"POST","url":"\/ocs\/v1.php\/apps\/files_sharing\/api\/v1\/shares","message":"Trying to access array offset on value of type null at \/drone\/src\/apps\/federatedfilesharing\/lib\/FederatedShareProvider.php#255"}
{"reqId":"g54yEx5JKJfrRrAvDXAa","level":3,"time":"2020-04-24T06:17:58+00:00","remoteAddr":"192.168.16.8","user":"user1","app":"PHP","method":"POST","url":"\/ocs\/v1.php\/apps\/files_sharing\/api\/v1\/shares","message":"Trying to access array offset on value of type bool at \/drone\/src\/apps\/federatedfilesharing\/lib\/FederatedShareProvider.php#255"}
{"reqId":"SQHYvY6n3kmhO4FPU8OK","level":3,"time":"2020-04-24T06:25:34+00:00","remoteAddr":"192.168.80.9","user":"user1","app":"PHP","method":"POST","url":"\/ocs\/v1.php\/apps\/files_sharing\/api\/v1\/shares","message":"Trying to access array offset on value of type bool at \/drone\/src\/apps\/federatedfilesharing\/lib\/FederatedShareProvider.php#255"}
{"reqId":"SQHYvY6n3kmhO4FPU8OK","level":3,"time":"2020-04-24T06:25:34+00:00","remoteAddr":"192.168.80.9","user":"user1","app":"PHP","method":"POST","url":"\/ocs\/v1.php\/apps\/files_sharing\/api\/v1\/shares","message":"Trying to access array offset on value of type null at \/drone\/src\/apps\/federatedfilesharing\/lib\/FederatedShareProvider.php#255"}
Activity
phil-davis commentedon Apr 24, 2020
https://drone.owncloud.com/owncloud/core/24446/85/17
Needs investigating.
And similar in https://drone.owncloud.com/owncloud/core/24446/127/18
And https://drone.owncloud.com/owncloud/core/24446/130/18
phil-davis commentedon Apr 24, 2020
In unit tests with sqlite owncloud log: https://drone.owncloud.com/owncloud/core/24446/36/8
And there is similar in unit tests with mariaDB: https://drone.owncloud.com/owncloud/core/24446/37/9
phil-davis commentedon Apr 24, 2020
@VicDeo can you look at these? Or who?
VicDeo commentedon Apr 24, 2020
@phil-davis me.