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

BUG: AssignSuperGlobals #1917

Closed
chrysanthemum opened this issue Sep 21, 2019 · 1 comment
Closed

BUG: AssignSuperGlobals #1917

chrysanthemum opened this issue Sep 21, 2019 · 1 comment
Labels

Comments

@chrysanthemum
Copy link
Contributor

chrysanthemum commented Sep 21, 2019

test/assign.zep

function testAssignSuperGlobals()
{
let _GET = array_merge(_GET, ["g3": "ccc", "g4": "ddd"]);
}

t.php
http://localhost/t.php?g1=aaa&g2=bbb

<?php
testAssignSuperGlobals();
print_r($_GET);

result:

Array
(
    [g1] => aaa
    [g2] => bbb
)

g3 / g4 are lost in the $GET

@sergeyklay sergeyklay added the bug label Sep 23, 2019
sergeyklay added a commit that referenced this issue Sep 25, 2019
Fix #1917 #1923 AssignSuperGlobals && ArrayCastFromVariable
@sergeyklay
Copy link
Contributor

Fixed in the development branch. Feel free to open a new issue if the problem appears again. Thank you for contributing.

dreamsxin pushed a commit to dreamsxin/zephir that referenced this issue Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants