Title: variable with quote length more than 2730, getenv() return null · Issue #324 · phpdotenv/phpdotenv · GitHub
Open Graph Title: variable with quote length more than 2730, getenv() return null · Issue #324 · phpdotenv/phpdotenv
X Title: variable with quote length more than 2730, getenv() return null · Issue #324 · phpdotenv/phpdotenv
Description: v2.4.0 I have a long json string then I put it in the.env file. But when I get it by the getenv() or $_ENV, it return empty. So I test then found: when the variable length more chan 2730, Loader.php -> sanitiseVariableValue() -> preg_rep...
Open Graph Description: v2.4.0 I have a long json string then I put it in the.env file. But when I get it by the getenv() or $_ENV, it return empty. So I test then found: when the variable length more chan 2730, Loader.ph...
X Description: v2.4.0 I have a long json string then I put it in the.env file. But when I get it by the getenv() or $_ENV, it return empty. So I test then found: when the variable length more chan 2730, Loader.ph...
Opengraph URL: https://github.com/phpdotenv/phpdotenv/issues/324
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"variable with quote length more than 2730, getenv() return null","articleBody":"**v2.4.0**\r\nI have a long json string then I put it in the`.env` file. But when I get it by the `getenv()` or `$_ENV`, it return empty.\r\nSo I test then found:\r\nwhen the variable length more chan 2730,\r\n`Loader.php -> sanitiseVariableValue() -> preg_replace()` return null.\r\nmy test .env:\r\n`\r\ntest='111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'\r\n`","author":{"url":"https://github.com/kaelli1234","@type":"Person","name":"kaelli1234"},"datePublished":"2019-01-28T07:11:11Z","url":"https://github.com/phpdotenv/phpdotenv/issues/324"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b1e24590-90c1-82ae-a25c-2b2393fd356d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A95E:1916FD:756176:A1FD8F:6B0695D9 |
| html-safe-nonce | c7481a83ca22bd2cd6c8edc6b68c3b3e2e811006fafb509e4ca223afe79bc7bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTVFOjE5MTZGRDo3NTYxNzY6QTFGRDhGOjZCMDY5NUQ5IiwidmlzaXRvcl9pZCI6IjMxODg4MTkxNDY2ODMzNTY2MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 212652f139aba48a88368c44679ad869697e9b4950238a27e05043e719a8ee68 |
| hovercard-subject-tag | issue:403677064 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phpdotenv/phpdotenv/324/issue_layout |
| twitter:image | https://opengraph.githubassets.com/005f9c2a5149307216d24975e1ae408634f3ec05e74386d2cc74c2571a22dbf6/phpdotenv/phpdotenv/issues/324 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/005f9c2a5149307216d24975e1ae408634f3ec05e74386d2cc74c2571a22dbf6/phpdotenv/phpdotenv/issues/324 |
| og:image:alt | v2.4.0 I have a long json string then I put it in the.env file. But when I get it by the getenv() or $_ENV, it return empty. So I test then found: when the variable length more chan 2730, Loader.ph... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kaelli1234 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/phpdotenv/phpdotenv git https://github.com/phpdotenv/phpdotenv.git |
| octolytics-dimension-user_id | 320763234 |
| octolytics-dimension-user_login | phpdotenv |
| octolytics-dimension-repository_id | 7769432 |
| octolytics-dimension-repository_nwo | phpdotenv/phpdotenv |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7769432 |
| octolytics-dimension-repository_network_root_nwo | phpdotenv/phpdotenv |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width