Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ownCloud work again in php 7.0.6 #24326

Merged
merged 1 commit into from Apr 28, 2016
Merged

Make ownCloud work again in php 7.0.6 #24326

merged 1 commit into from Apr 28, 2016

Conversation

rullzer
Copy link
Contributor

@rullzer rullzer commented Apr 28, 2016

@rullzer rullzer added this to the 9.1-current milestone Apr 28, 2016
@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @LukasReschke, @DeepDiver1975 and @Xenopathic to be potential reviewers

@@ -271,6 +271,9 @@ public function __get($name) {
* @return bool
*/
public function __isset($name) {
if (in_array($name, $this->allowedKeys, true)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use hasMember?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how?

Copy link

@thomasvnl thomasvnl Jul 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This worked for me. Pulled a PHP 7 update from Ubuntu's official update repo's and my ownCloud broke down. Thanks to all who came up with a patch!

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thomasvnl You don't need this patch. Just use the current oC version 9.0.4 which already includes this.

Copy link

@thomasvnl thomasvnl Jul 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RealRancor I understand, but yesterday I didn't have time to update my ownCloud from 9.0.0 to 9.0.4. I also noticed the fix isn't mentioned in the changelog, or am I mistaken? I've searched through the changelog first before taking this route.

Thanks for notifying me about the fix being included in 9.0.4.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I see the fix was already in 9.0.2 #24343

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and also listed in the (quite large) ChangeLog of 9.0.2:

[Stable 9] Make ownCloud work again in php 7.0.6 - #24343

https://owncloud.org/changelog/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PVince81 @RealRancor totally missed it! Thanks guys.

@oparoz
Copy link
Contributor

oparoz commented Apr 28, 2016

Is Jenkins using PHP 7.0.6?

@oparoz
Copy link
Contributor

oparoz commented Apr 28, 2016

Because Travis isn't:
https://travis-ci.org/owncloud/core/jobs/126342764#L183

@ghost
Copy link

ghost commented Apr 28, 2016

Is Jenkins using PHP 7.0.6?

PHP 7.0.6 is not even officially announced:
https://secure.php.net/ChangeLog-7.php
https://secure.php.net/archive/2016.php

@oparoz
Copy link
Contributor

oparoz commented Apr 28, 2016

@RealRancor - Of course, but what I'm saying is that we can't be almost absolutely certain that this is the only required change unless the branch uses PHP 7.0.6 for tests.
A newer PHP can be compiled on the CI boxes or we can wait for Travis to catch up, which will take months as they're still using 7.0.4.

@rullzer
Copy link
Contributor Author

rullzer commented Apr 28, 2016

I ran the unit test locally with php 7.0.6 (which is tagged alrady) and now they pass.

@rullzer
Copy link
Contributor Author

rullzer commented Apr 28, 2016

And at least we know it is not breaking older isntances.

@maki-chan
Copy link

As an Arch Linux user, I updated to PHP 7.0.6, too, as it was available on the package mirrors during the update I made today. This patch does indeed work and I can use ownCloud on my server again 👍

@HLFH
Copy link

HLFH commented Apr 28, 2016

I'm also an Arch Linux user and I updated to PHP 7.0.6. This PR fixes the issue. 👍

@rullzer rullzer merged commit 238dbe9 into master Apr 28, 2016
@rullzer rullzer deleted the fix_for_php_7_0_6 branch April 28, 2016 19:43
@rullzer
Copy link
Contributor Author

rullzer commented Apr 28, 2016

@karlitschek we should backport this. Else users on stable 8.2 and 9.0 might run into trouble if they run bleeding edge php

@rullzer
Copy link
Contributor Author

rullzer commented Apr 29, 2016

Stable 9: #24343
Stable8.2: #24344

@karlitschek
Copy link
Contributor

backport makes sense 👍

@jirkaehm
Copy link

jirkaehm commented May 1, 2016

Just spent about two hours debugging why owncloud stopped working. Find out that my webhost upgraded to PHP 7.0.6. Fix mentioned above did the trick.

@produnis
Copy link

produnis commented May 2, 2016

this patch worked for me, too!
THX A LOT!!!!

@nonamedotc
Copy link

Thank you for the patch. I was able to fix up my installation as well!

👍

@lock
Copy link

lock bot commented Aug 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet