Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Nov 2011 at 23:48 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mikeytown2 commentedComment #3
mikeytown2 commentedRound 2
Comment #5
mikeytown2 commentedAwesome... looks like simpletest is ran by patching core. Anyway this patch does work, just not with simpletest.
Comment #6
PatchRanger commentedI have posted a related issue to Simpletest issue queue: #1883872: Re-roll the patch D6-core-simpletest.patch to make it to be applied cleanly in #1345402.
Comment #7
mikeytown2 commentedRe-roll of #2. Patch in #2 applied to core with a little bit of fuzz; no fails.
Comment #9
PatchRanger commented@mikeytown2 Nice try, thanks.
Fresh patch failed by the same reason: D6-core-simpletest.patch failed to apply to the files that were already modified by your patch. I think the reason of D6-core-simpletest.patch failure is in the nature of that patch: it is CVS-style, which (I guess) is rather stupid in merging hunks. The solution is to re-roll D6-core-simpletest.patch (in fact, that is what #1883872: Re-roll the patch D6-core-simpletest.patch to make it to be applied cleanly in #1345402 about).
Comment #10
noslokire commentedMikeytown
Couldnt enable or disable a module with this patch. Reverting this part of patch#7 in the includes/install.inc restored site functionality:
@@ -714,7 +714,7 @@ function drupal_check_module($module) {
// Include install file
$install = drupal_get_install_files(array($module));
if (isset($install[$module])) {
- require_once $install[$module]->filename;
+ require_once DRUPAL_ROOT . '/' . $install[$module]->filename;
Comment #11
mikeytown2 commentedThanks for letting me know. I'll investigate it sometime next week.
Comment #12
mdupontWhat would DRUPAL_ROOT add to Drupal 6?
Comment #13
mikeytown2 commentedBetter performance. It saves php from having to look up the real path when given a relative path. http://www.php.net/manual/en/function.realpath-cache-size.php#101840
Comment #16
naveenvalechaRerolled #7 patch which had some hunks.