PHP error logged is "preg_match() expects parameter 2 to be string, array given in /var/www/dev6-html/includes/common.inc on line 492."

It's easy enough to test whether $GLOBAL['db_prefix'] is an array and do the comparison with $GLOBAL['db_prefix']['default'], but it's not clear to me whether this is actually correct. Does the simpletest stuff work at all if db_prefix has a non-null value?

Comments

wuwei23’s picture

Subscribing.

This didn't occur with 6.12 and happened immediately after upgrading to 6.13.

heine’s picture

Status: Active » Closed (duplicate)
chris.maltby’s picture

Title: new simpletest code in includes/common.inc gives warning when $GLOBAL['db_prefix'] is an array » new simpletest code in includes/common.inc gives warning when $GLOBALS['db_prefix'] is an array

Patch for 6.13 release can be found at http://drupal.org/files/issues/482646-followup-D6.patch.