baseurl.php not being included in settings.php (because of cwd?)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
drupal6 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: drupal6
Hola.
In my vanilla Ubuntu Lucid Lynx, baseurl.php is never read from the original settings.php on the default site. On writing a little debug code:
$fh = fopen('/tmp/log', 'a') or die("Can't open log file.");
if (file_exists(
include_
else
fwrite($fh, "File not found at '". getcwd() ."'.\n");
fclose($fh);
and doing a 'tail -f /tmp/log', I always get "File not found at '/usr/share/
I'm not sure if this is a PHP quirk, since I could not find any mentions of this problem, so I'd expect baseurl.php is working for most people, but this comment on the PHP reference seems to confirm this behavior as standard: 'Be aware: If you pass a relative path to file_exists, it will return false unless the path happens to be relative to the "current PHP dir".' [http://
Perhaps this should happen all the way back to 4.7.4-2 ("Fix(ed) warning if baseurl.php does not exists"), but PHPs tricks kept it hidden until recent versions?
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: drupal6 6.18-1ubuntu1 [modified: usr/share/
ProcVersionSign
Uname: Linux 2.6.32-24-generic x86_64
Architecture: amd64
Date: Sun Oct 24 00:13:58 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
PackageArchitec
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=es_MX.UTF-8
SHELL=/bin/bash
SourcePackage: drupal6