Bug 700 - [Chameleon - Core] gszAppPath calculations fail with PHP 4.3.2RC3
: [Chameleon - Core] gszAppPath calculations fail with PHP 4.3.2RC3
Status: RESOLVED FIXED
: Chameleon
Core
: 1.99
: PC Linux
: P1 normal
: 1.99 beta 4
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-10-14 12:25 by
Modified: 2004-12-02 21:28 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-10-14 12:25:13
When Chameleon tries to figure out the gszAppPath, it tests $_SERVER variables
to see where the page resides on the filesystem.  The $_SERVER array is
populated by PHP based on information coming from the web server and is
different depending on PHP version and web server version (i.e php 4.3.2 reports
different values that php 4.3.6 for the same web server).  Chameleon already
detects the two major differences, which is PATH_TRANSLATED and
ORIG_PATH_TRANSLATED.  It appears that some versions of PHP will provide both
but one will be an empty string.  Since PATH_TRANSLATED is tested first, if it
is an empty string, Chameleon will incorrectly determine the location of the
application and will fail to work.
------- Comment #1 From 2004-10-14 12:33:36 -------
Fixed in cvs for beta 3.  The fix refuses to use empty values from the $_SERVER
vars and also protects against the application using symlinks in an
application-supplied app path.  Also a test for a valid app path is now made and
a fatal error is produced if it is not set.
------- Comment #2 From 2004-10-25 08:38:27 -------
Changed target for verification to 1.99 RC 1.