All, 

   Looks like there is a problem with $PHP_SELF not being an autoglobal
for PHP versions such as 4.0.6 under SM 1.4(cvs).  Unless there is a
reason not to, I will add a line in to global.php that specifically
declares $PHP_SELF (as gotten from $_SERVER['PHP_SELF']) for PHP
versions older than 4.1.

   BTW, the reason this has not come up is probably because most folks
who are using the release candidate have newer PHP versions.  It has
been instructive/helpful for you to have had 4.0.6 as well as the time
and patience to wade through this problem with me.

  Thanks,

     paul


> -----Original Message-----
> From: SM-Development [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 11, 2003 5:02 PM
> To: p dont think
> Cc: 'SquirrelMail-Users'
> Subject: Re: SM_PATH appears to be wrong
> 
> Hi Paul,
> 
> 
> This are the results of the tests:
> 
> Put this into functions/display_messages.php (earlier debug code has
been
> commented):
> 
> global $_SERVER;
> if (function_exists('check_sm_version')) { echo "<hr>YES, global.php
HAS
> BEEN INCLUDED<hr>but _SERVER is only:<hr>"; print_r($_SERVER); echo
"<hr>";
> }
>    else { echo "<hr>NO, global.php HAS NOT BEEN INCLUDED<hr>"; }
> exit;
> 
> 
> and I get this:
> 
>  -------------------------------------------
> YES, global.php HAS BEEN INCLUDED
>  -------------------------------------------
> but _SERVER is only:
>  -------------------------------------------
> 
>  -------------------------------------------
> 
> 
> Then I restore the original display_messages.php & page_header.php,
and put
> the followings into functions/global.php:
> 
> global $PHP_SELF; $PHP_SELF = $_SERVER['PHP_SELF'];
> 
> 
> I can login without any problem. I also noticed the link now DOES NOT
> contain anymore redundant "src".
> 
> 
> Tried "global $PHP_SELF; $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];",
also
> gave me good result!
> 
> Paul, I think you've nailed down the problem.
> 
> 
> My question, why am I the only person getting this? Has no one else
download
> a fresh CVS of 1.4 and install freshly (no previous 1.4 installation)
and
> get this problem?
> 
> 
> I know one thing for sure: My previous /etc/php.ini settings were that
of
> the testing environment for 1.2.7 and the only change was the
> register_global set to Off for 1.4
> 
> 
> Thanks again Paul for all your effort & patience!
> 
> 
> 
> 
> p dont think writes:
> 
> > Well I see the problem... but not sure why it exists, since
globals.php
> > should have already been included by the time we get here, which
should
> > take care of this kind of thing.  In the same place in
> > display_messages.php, can you please insert this in place of all the
> > previous stuff:
> >
> > global $_SERVER;
> > if (function_exists('check_sm_version')) { echo "<hr>YES, global.php
HAS
> > BEEN INCLUDED<hr>but _SERVER is only:<hr>"; print_r($_SERVER); echo
> > "<hr>"; }
> > else { echo "<hr>NO, global.php HAS NOT BEEN INCLUDED<hr>"; }
> > exit;
> >
> >
> > For fun, you can also attempt inserting this before line 49 in
> > /functions/global.php and see if it helps (to see if it works,
you'll
> > either need to change the debug stuff we've been doing in
> > display_messages back to show the contents of $base_uri and/or
$PHP_SELF
> > or take out your original hacks in page_header.php):
> >
> > global $PHP_SELF; $PHP_SELF = $_SERVER['PHP_SELF'];
> >
> > If that doesn't work, then try this:
> >
> > global $PHP_SELF; $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
> >
> >
> > Thanks for your help!  We're getting closer...
> >
> >   - paul
> 
> 
> 
> 
> 
> 
> 
>
************************************************************************
**
> **
> CAUTION: This e-mail is confidential and may contain privileged
information.
> If you are not the intended recipient,  you must not  disclose  or
use  the
> information.  If you have received this e-mail in error,  please
notify  by
> returning the e-mail and delete the document.  Any views expressed  in
this
> message are those of the individual sender,  and may not necessarily
reflect
> the views of the Company.
>
************************************************************************
**
> **
> 
> 



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to