DRUPAL_MINIMUM_MYSQL and a number of similar variables are defined in system.install where they aren't available after installation. I propose to move them to system.module below the Version string.

Currently, functions like db_status_report that use these defines won't work outside the installer's scope.

Comments

dww’s picture

seems reasonable. currently, nothing in core calls db_status_report() except system.install, but i don't see why we'd want to end up breaking those functions outside the scope of update.php. the only *tiny* downside is 4 more lines of php to parse on every page load, but that's definitely not a good enough reason to avoid this change...

+1 from me.

ChrisKennedy’s picture

Sounds good to me. I did some quick searching where system.install is loaded and system.module isn't (i.e. part of installation) but didn't find anything that used those variables.

killes@www.drop.org’s picture

Status: Active » Needs review
StatusFileSize
new2.8 KB

ok, here's the patch. it needs to be tested during an install.

drumm’s picture

Version: 5.x-dev » 6.x-dev
asimmonds’s picture

StatusFileSize
new1.39 KB

Rerolled for HEAD.

Have also tested with a fresh install, which works OK.

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

looks good, has been tested. RTBC.

i even made sure that killes didn't try to bump the minimum requirements :)

dries’s picture

Version: 6.x-dev » 5.x-dev

Committed to CVS HEAD. Thanks.

asimmonds’s picture

Commit http://drupal.org/cvs?commit=62004 doesn't show the defines being removed from system.install

killes@www.drop.org’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)