Skip to content

Comments

Fixes trying to access array offset on value of type resource on PHP 7.4#24

Open
srosato wants to merge 3 commits intobambora-na:masterfrom
majisti:php7.4
Open

Fixes trying to access array offset on value of type resource on PHP 7.4#24
srosato wants to merge 3 commits intobambora-na:masterfrom
majisti:php7.4

Conversation

@srosato
Copy link

@srosato srosato commented Mar 26, 2020

With PHP 7.4, we get the error "Trying to access array offset on value of type resource". The commit fixes this.

@danfraticiu
Copy link

Any chance somebody can merge this PR? 🤞 Thanks

@AlexandruB30
Copy link

On PHP 8 we get the error "Uncaught Error: Cannot use object of type CurlHandle as array in HttpConnector" that is also fixed with this additional line of code

@alexis-coulombe
Copy link

This PR should be merged asap.

@srosato
Copy link
Author

srosato commented Jul 20, 2022

I have merged master into this branch and removed my unnecessary space linting that was automatically done by my IDE in order to keep the diff simple on this merge

@bogdanbradeanu
Copy link

are you guys gonna merge this?

@boily
Copy link

boily commented Nov 11, 2022

Please, merge this pull request. It is a Fatal error in php 8.1

@mgrenierfarmmedia
Copy link

Yes, this is breaking in PHP 8.1. Fixe it simple to merge, please do so.

@bradlymcgregorhale
Copy link

I've reached to Bambora support (ticket number 731671) to see if anyone can help us get this PR merged.

@MiguelLaforest
Copy link

Any news from the support team? On my side, the issue suddenly disappeared for successful transactions, but comes back when there an error like a wrong cvc or if the card is declined.

@bradlymcgregorhale
Copy link

Any news from the support team? On my side, the issue suddenly disappeared for successful transactions, but comes back when there an error like a wrong cvc or if the card is declined.

This is the same error we're seeing. A Laura from Wordline (Bambora) let us know that they'd be forwarding a request to have the SDK updated: https://capture.dropbox.com/49dKLAYvmJY2OMm9

I sent a follow up response in our open ticket with them, # 731671

@commercebuild
Copy link

From their support team:

Laura (Worldline)Dec 20, 2023, 09:49 PSTHi Bradly,Unfortunately I do not. I have requested the update but my guess is in 2024.thank youLaura
--

@dreamwerx
Copy link

Is this not embarrassing for this processing provider? There are plenty other out there- we are considering recommending to our clients to use another that has a up to date sdk. Also we hate using 'dev-master' SDK's - can't they generate a real release so we can lock versions?

@srosato
Copy link
Author

srosato commented Apr 24, 2024

@dreamwerx If a one liner fix takes years to merge in and is postponed to 2024, I have a hard time believing you'd get release tags. I had time to completely leave the PHP world and I still see this MR not being merged.

Hope they merge in, but at the end of the day it might just be easier to apply a patch with composer than waiting for them to fix that one liner!

@alexis-coulombe
Copy link

This repository is abandoned, yet is pinned on bambora's profile...

For anyone having this bug, fork and apply the fix from this PR.
Or check other people's fork HERE.

k-nights pushed a commit to k-nights/beanstream-php that referenced this pull request Jun 22, 2025
… offset on value of type resource on PHP 7.4.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.