Closed (duplicate)
Project:
Drupal core
Version:
6.13
Component:
base system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2009 at 15:11 UTC
Updated:
6 Jul 2009 at 14:27 UTC
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
Comment #1
wuwei23 commentedSubscribing.
This didn't occur with 6.12 and happened immediately after upgrading to 6.13.
Comment #2
heine commentedSee #482646: Backport SimpleTest testing in drupal_http_request().
Comment #3
chris.maltby commentedPatch for 6.13 release can be found at http://drupal.org/files/issues/482646-followup-D6.patch.