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 SUCCESS & FAILURE result codes strongly typed to avoid conflicts #152

Closed
wants to merge 3 commits into from

Conversation

furiousant
Copy link

Currently SUCCESS & FAILURE codes are macros. These are reasonably common symbol names, and when integrating PHP with a large code base then conflicts can occur when the macros leak out of the local scope.

symbol names and using #defines can cause conflicts.
* 5.3:
  Strong types for the result codes SUCCESS & FAILURE. These are common symbol names and using #defines can cause conflicts.
* 5.4:
  Strong types for the result codes SUCCESS & FAILURE. These are common symbol names and using #defines can cause conflicts.
@php-pulls
Copy link

Comment on behalf of lstrojny at php.net:

Merged into PHP-5.4 and master. 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.

3 participants