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

Variable variable eval issue #54

Closed
kfriend opened this issue Oct 4, 2013 · 2 comments
Closed

Variable variable eval issue #54

kfriend opened this issue Oct 4, 2013 · 2 comments

Comments

@kfriend
Copy link

kfriend commented Oct 4, 2013

Ran into this issue when playing around with variable variables in boris. Also tested w/ php -a without any issue:

[1] boris> $foo = 'huzaaaah!';
 → 'huzaaaah!'
[2] boris> $bar = 'foo';
 → 'foo'
[3] boris> $$bar;
 → 'huzaaaah!'
[4] boris> $baz = 'oo';
→ 'oo'
[5] boris> ${'f'.$baz};
PHP Parse error:  syntax error, unexpected end of file in /usr/local/Cellar/boris/1.0.2/lib/Boris/EvalWorker.php(133) : eval()'d code on line 1

Parse error: syntax error, unexpected end of file in /usr/local/Cellar/boris/1.0.2/lib/Boris/EvalWorker.php(133) : eval()'d code on line 1
→ NULL
@kfriend
Copy link
Author

kfriend commented Oct 4, 2013

PHP 5.5.4, OS X 10.8.4

@d11wtq
Copy link
Contributor

d11wtq commented Oct 5, 2013

Thanks! Fixed in 1.0.4, just pushed.

@d11wtq d11wtq closed this as completed Oct 5, 2013
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

No branches or pull requests

2 participants