Skip to content

Let's try to avoid the PHP notice! HUGE ANNOYANCE and not necessary.#198

Closed
travisfont wants to merge 1 commit into
corcel:devfrom
travisfont:master
Closed

Let's try to avoid the PHP notice! HUGE ANNOYANCE and not necessary.#198
travisfont wants to merge 1 commit into
corcel:devfrom
travisfont:master

Conversation

@travisfont

Copy link
Copy Markdown

Added is_serialized() as private method and checks before the try-catch. If true (serializable) then it allows it, else ignores and passed the string as normal.

Added is_serialized() as private method and checks before the try-catch. If true (serializable) then it allows it, else ignores and passed the string as normal.
@travisfont

Copy link
Copy Markdown
Author

Is the StyleCI checks required if this fix is approved?

@jgrossi

jgrossi commented Sep 1, 2016

Copy link
Copy Markdown
Member

Hi @tfont! Yes, please fix them :-) including the method name to isSerialized() following PSR-2. And please, add a test case (success and failure) to ensure the changes are working well. Many thanks!

@jgrossi

jgrossi commented Sep 1, 2016

Copy link
Copy Markdown
Member

Just send others commits to the same branch (yours) and they will be pushed to this PR.

@jgrossi

jgrossi commented Oct 3, 2016

Copy link
Copy Markdown
Member

Hey @tfont! Did you make the changes? I'd like to merge this PR! Cheers, JG.

@QWp6t

QWp6t commented Dec 10, 2016

Copy link
Copy Markdown

This new method is poached from WordPress, which is licensed under GPL. It also gives WordPress NO CREDIT! (HUGE ANNOYANCE!)

https://github.com/WordPress/WordPress/blob/2.9-branch/wp-includes/functions.php#L236-L271

Using this function might conflict with Corcel's MIT license.

@jgrossi

jgrossi commented Dec 10, 2016

Copy link
Copy Markdown
Member

Hey @QWp6t! You're right! This method is the same in WordPress. But don't worry, we're going to create a better one :-)

@jgrossi jgrossi closed this Dec 10, 2016
@rundef

rundef commented Dec 10, 2016

Copy link
Copy Markdown
Member

I'm not sure why we would need this method in the first place. Isn't @unserialize(...) enough to suppress the potential warning ?

@jgrossi

jgrossi commented Feb 21, 2017

Copy link
Copy Markdown
Member

@QWp6t opening this again, you said the GPLv2 license from WP is not compatible with the Corcel MIT. My question is, can I include a WP function in the Corcel core giving WP the credit? Is this allowed? Thanks!

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.

4 participants