8000 Update the DSN format in XML, it should be escaped by pouyana · Pull Request #8977 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Update the DSN format in XML, it should be escaped #8977

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

Merged
merged 2 commits into from
Jan 5, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update the DSN format in XML, it should be escaped
So using the same setting gives

```
Could not load "/var/www/app/phpunit.xml.dist".
EntityRef: expecting ';'
```

The DSN should be escaped before added in the XML file.
  • Loading branch information
pouyana authored Jan 4, 2018
commit cbffec322b13827b469ee983b91c3fcaa0e77216
4 changes: 2 additions & 2 deletions testing/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ To do this, you can override the value of the ``DATABASE_URL`` env var in the
<?xml version="1.0" charset="utf-8" ?>
<phpunit>
<php>
<!-- the value is the Doctrine connection string in DSN format -->
<env name="DATABASE_URL" value="mysql://USERNAME:PASSWORD@127.0.0.1/DB_NAME?charset=utf8mb4&serverVersion=5.7" />
<!-- the value is the Doctrine connection string in DSN format and should be escaped -->
<env name="DATABASE_URL" value="mysql://USERNAME:PASSWORD@127.0.0.1/DB_NAME?charset=utf8mb4&amp;serverVersion=5.7" />
</php>
<!-- ... -->
</phpunit>
0