-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Comments
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. |
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. |
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. |
I already set up in .env CI_ENVIRONMENT = development and it works |
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. |
I sent PR: #532 |
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
The text was updated successfully, but these errors were encountered: