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

Fix wrong use of class constants in DFRN #5036

Merged
merged 2 commits into from May 13, 2018

Conversation

Alkarex
Copy link

@Alkarex Alkarex commented May 13, 2018

@Alkarex
Copy link
Author

Alkarex commented May 13, 2018

I had a bunch of errors of the following type (PHP 7.2.3 / Ubuntu 18.04 LTS)

[Sun May 13 04:18:46 2018] [error] [pid 13481] mod_proxy_fcgi.c(848): [client 163.172.11.188:34408] AH01071: Got error 'PHP message: PHP Warning:  Use of undefined constant DFRN_REPLY - assumed 'DFRN_REPLY' (this will throw an Error in a future version of PHP) in /.../src/Protocol/DFRN.php
 on line 2216\nPHP message: PHP Warning:  Use of undefined constant DFRN_REPLY - assumed 'DFRN_REPLY' (this will throw an Error in a future version of PHP) in /.../src/Protocol/DFRN.php on line 2637

@tobiasd
Copy link
Collaborator

tobiasd commented May 13, 2018

Could you change the target of the PR to the 2018.05-rc branch? this is clearly a bugfix and not a new feature.

@Alkarex Alkarex changed the base branch from develop to 2018.05-rc May 13, 2018 08:04
@Alkarex
Copy link
Author

Alkarex commented May 13, 2018

Here you are, @tobiasd

@@ -2141,7 +2141,7 @@ private static function updateContent($current, $item, $importer, $entrytype)

$changed = true;

if ($entrytype == DFRN_REPLY_RC) {
if ($entrytype == DFRN::DFRN_REPLY_RC) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

It should be DFRN::REPLY_RC instead, can you please rename all DFRN_* constants to just * and modify their use?

Copy link
Author

Choose a reason for hiding this comment

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

Done 736c76d

@MrPetovan MrPetovan added the Bug label May 13, 2018
@MrPetovan MrPetovan added this to the 2018.05 milestone May 13, 2018
@MrPetovan
Copy link
Collaborator

Pleasure doing business with you sir!

@MrPetovan MrPetovan merged commit ec626fb into friendica:2018.05-rc May 13, 2018
@Alkarex Alkarex deleted the fix-constants branch May 13, 2018 08:38
@MrPetovan MrPetovan changed the title Fix wrong use of class constants Fix wrong use of class constants in DFRN May 13, 2018
Quix0r pushed a commit to Quix0r/friendica that referenced this pull request May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants