Dont write empty $database values to settings.php
Dave Reid - November 29, 2008 - 03:12
| Project: | Drupal |
| Version: | 7.x-dev |
| Component: | install system |
| Category: | task |
| Priority: | normal |
| Assigned: | Dave Reid |
| Status: | won't fix |
Jump to:
Description
If we don't write empty $database values to settings.php, we can actually use default connection options (like port numbers) in the database driver constructors. I tested this with all three: mysql, postgresql, sqlite!
| Attachment | Size |
|---|---|
| database-construct-D7.patch | 3.22 KB |
| Testbed results | ||
|---|---|---|
| database-construct-D7.patch | failed | Failed: Failed to apply patch. Detailed results |

#1
The last submitted patch failed testing.
#2
We have worked around this by using !empty(...) in the database connection options. Marking as won't fix.