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

Superglobals reset #524

Closed
WitekS opened this issue May 30, 2017 · 7 comments
Closed

Superglobals reset #524

WitekS opened this issue May 30, 2017 · 7 comments

Comments

@WitekS
Copy link

WitekS commented May 30, 2017

After $ app-> run (); In index.php, all tables, for example $ _GET, $ _POST, $ _COOKIE, $ _REQUEST, $ _SERVER, etc are reset and the variable CI_ENV = 'development' disappears, and the page starts as Page rendered in 0.0033 seconds. Environment: production. Until the execution of $ app-> run (); Variables in Superglobals are OK

@lonnieezell
Copy link
Member

Could you describe your setup, what server, server version, PHP version, etc, that you're running on please. I haven't seen this happen before and all tests are passing, even those that use the superglobals.

@WitekS
Copy link
Author

WitekS commented May 30, 2017

I currently have PHP Version 7.1.4 with WAMP Stack 7.1.4-0 (details in the attachment). I had a problem with setting the develop mode so I started from step-by-step mode to see when the CI_ENV variable changed to production but after executing the command $ app -> run (); Any variable disappears and the page starts up in the production mode. Debugging I have by xdebug and netbeans.
localhost-phpinfo.pdf

@lonnieezell
Copy link
Member

I'm starting to research this one tonight, but just as a side note - we recently changed the develop var to be CI_ENVIRONMENT, and it can be set from the .env file. Don't know if that will help or not.

@WitekS
Copy link
Author

WitekS commented Jun 3, 2017

I already set up in .env CI_ENVIRONMENT = development and it works

@WitekS
Copy link
Author

WitekS commented Jun 3, 2017

In the file public / .htaccess is set to the variable SetEnv CI_ENV development I changed it to SetEnv CI_ENVIRONMENT development is now ok without additional setting in the .env file. Development and production mode is set correctly. As for me the topic ended.

@kenjis
Copy link
Member

kenjis commented Jun 4, 2017

I sent PR: #532

@lonnieezell
Copy link
Member

Thanks @kenjis, it's been merged. @WitekS I'm glad you got things working on your end.

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

3 participants