Skip to content

Removed assumption that \\ will be present #1

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

Merged
merged 1 commit into from
Aug 22, 2013
Merged

Removed assumption that \\ will be present #1

merged 1 commit into from
Aug 22, 2013

Conversation

Danack
Copy link

@Danack Danack commented Aug 22, 2013

The function zend_add_ns_func_name_literal is called if the parser finds a function that is not in the global or current namespace. It assumes such a function will have a \ in it, which is no longer true with the use function patch. The code change above removes that assumption and makes the test work:
PASS use and use function with the same alias [Zend/tests/use_function/conflicting_use_alias.phpt]

The function zend_add_ns_func_name_literal is called if the parser finds a function that is not in the global or current namespace. It assumes such a function will have a \\ in it, which is no longer true with the use function patch. The code change above removes that assumption and makes the test work:
PASS use and use function with the same alias [Zend/tests/use_function/conflicting_use_alias.phpt]
@igorw igorw merged commit 8510fed into igorw:use-function Aug 22, 2013
@igorw
Copy link
Owner

igorw commented Aug 22, 2013

Thanks so much for this patch! :)

@Danack Danack deleted the patch-1 branch August 22, 2013 12:25
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.

2 participants