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

Missing first letter of environment variable name #1

Open
Gremlyn opened this issue Jul 18, 2013 · 2 comments
Open

Missing first letter of environment variable name #1

Gremlyn opened this issue Jul 18, 2013 · 2 comments

Comments

@Gremlyn
Copy link

Gremlyn commented Jul 18, 2013

Unless I'm missing something, when I create a new Environment variabled, such as:

$env = Environment::getInstance();
$env->setUsername('myuser');

and then get it back out:

$env->getUsername();

I end up losing the first letter of the var name. Changing line 59 so that it reads as follows fixes the problem.

$index = strtolower(substr($name, 3));
@Twipped
Copy link
Member

Twipped commented Jul 18, 2013

Yes, it's a known issue. I have a patch that I haven't pushed yet. I'll try to get that out this weekend

@Gremlyn
Copy link
Author

Gremlyn commented Jul 18, 2013

No worries, easy enough to fix locally at least. Just wanted to make sure I wasn't missing something!

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