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

Target both evenement 3 and 2 #8

Merged
merged 3 commits into from
Jul 24, 2017

Conversation

WyriHaximus
Copy link
Contributor

Événement 3.0 is nearly fully backwards compatible with 2.0. It packs some neat performance upgrades without any code changes on nearly all projects using it. Took a quick look at your code base and couldn't find any breaks :shipit: .

@coveralls
Copy link

coveralls commented Jul 24, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling c950e4e on WyriHaximus-labs:evenement-3.0 into b410b6e on mkraemer:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 983d478 on WyriHaximus-labs:evenement-3.0 into b410b6e on mkraemer:master.

1 similar comment
@coveralls
Copy link

coveralls commented Jul 24, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 983d478 on WyriHaximus-labs:evenement-3.0 into b410b6e on mkraemer:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 04119c8 on WyriHaximus-labs:evenement-3.0 into b410b6e on mkraemer:master.

1 similar comment
@coveralls
Copy link

coveralls commented Jul 24, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 04119c8 on WyriHaximus-labs:evenement-3.0 into b410b6e on mkraemer:master.

@mkraemer mkraemer merged commit 5e8df81 into mkraemer:master Jul 24, 2017
@mkraemer
Copy link
Owner

Thanks!

I had to adapt the internal event handling to make sure that the argument which is passed by pcntl to the callback registered with pcntl_signal is not further passed to EventEmitterTrait::emit, as the latter breaks in case an associative array is used as argument :)

@mkraemer
Copy link
Owner

Yes, exactly. call_user_func_array was used in evenement 2 which silently dropped the named keys of the associative array while the splat operator used in evenement 3 refuses to work at all.

I didn't realize arguments were passed at all and assume nobody relies on them being present, but I'll tag a new major version for this potentially breaking change.

@WyriHaximus
Copy link
Contributor Author

I didn't realize arguments were passed at all and assume nobody relies on them being present, but I'll tag a new major version for this potentially breaking change.

Neither did I hence my surprise seeing your commits. Tagging a new major version sounds like the reasonable thing to do 👍

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.

None yet

3 participants