php5 & squirrelmail; old issue? "Cannot re-assign $this" ...
6 answers - 1043 bytes -

hi all,
new (mostly ) to squirrelmail.
attempting to install squirrelmail-cvs on:
SX 10.4.2
Apache/2.3.0-dev
php 5.1.0b3
after DL & config, nav to:
squirrelmail/index.php
redirects to
squirrelmail/src/login.php
where i get a blank screen & apache log error of:
[Sat Aug 20 10:03:01 2005] [error] [client 10.0.0.6] PHP Fatal error:
Cannot re-assign $this in
/ on line 47
googling, i find prior (related?) discussion on this
<>
but, as yet, no definitive solution.
b4 i start digging deeper what IS the current status of / support for
squirrelmail with PHP5?
comments/thoughts/fixes?
thanks!
richard
SF.Net email is Sponsored by the Better Software Conference & EXP
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
No.1 | | 1632 bytes |
| 
Sat, August 20, 2005 12:12, MacNews wrote:
hi all,
new (mostly ) to squirrelmail.
attempting to install squirrelmail-cvs on:
Which CVS branch? Where did you download if from? Straight from cvs, or a
snapshot from the website?
SX 10.4.2
Apache/2.3.0-dev
php 5.1.0b3
The b usually meaning "beta".
after DL & config, nav to:
squirrelmail/index.php
redirects to
squirrelmail/src/login.php
where i get a blank screen & apache log error of:
[Sat Aug 20 10:03:01 2005] [error] [client 10.0.0.6] PHP Fatal error:
Cannot re-assign $this in
/ on line 47
The login page does not load imap_mailbox, so there is something wrong
else where, unless you are missing a step out and are actually logging in
googling, i find prior (related?) discussion on this
--
<
fix>
but, as yet, no definitive solution.
Looking at the source, it looks like it's not yet been resolved.
b4 i start digging deeper what IS the current status of / support for
squirrelmail with PHP5?
It works fine, if you're not using beta version of PHP, and you're using a
stable snapshot from what I can remember. The development branch has new
folder handling code in it, which is where your issue is arising. I will
try setting some time aside tomorrow to take a look at this, I have to try
upgrading one of my servers to a newer PHP, as I have 5.0.4 installed on
my dev box, and don't seem to have any issues with the stable branch, not
tested yet with the devel branch yet though.
No.2 | | 2507 bytes |
| 
hi jonathan,
thx 4 the reply =)
>attempting to install squirrelmail-cvs on:
>
Which CVS branch?
HEAD
Where did you download if from? Straight from cvs, or a
snapshot from the website?
straight from cvs
8/20/05 9:57:28
cvs -d:pserver:anonymous@ co -d
squirrelmail-cvs squirrelmail
>php 5.1.0b3
>
The b usually meaning "beta".
yup.
although, per:
<#v5.1>
'they' snuck in "PHP 5.1.0 RC1" when i wasn't looking rebuilding as i type
here.
>[Sat Aug 20 10:03:01 2005] [error] [client 10.0.0.6] PHP Fatal error:
>Cannot re-assign $this in
>/ on line 47
>
The login page does not load imap_mailbox, so there is something wrong
else where, unless you are missing a step out and are actually logging in.
fair nuf.
and, no, i'm not logging in.
>but, as yet, no definitive solution.
>
Looking at the source, it looks like it's not yet been resolved.
ok.
>b4 i start digging deeper what IS the current status of / support for
>squirrelmail with PHP5?
>
It works fine, if you're not using beta version of PHP,
from what i've read, absolutely true.
i'm stuck w/ the latest php to resolve 'other' issues always a catch-22,
isn't it ?!
and you're using a
stable snapshot from what I can remember. The development branch has new
folder handling code in it, which is where your issue is arising. I will
try setting some time aside tomorrow to take a look at this, I have to try
upgrading one of my servers to a newer PHP, as I have 5.0.4 installed on
my dev box, and don't seem to have any issues with the stable branch, not
tested yet with the devel branch yet though.
feel free to poke-n-prod me for any info i can help with
thx,
cheers,
richard
p.s. if i see any DIFFERENT behavior with php 510rc1, i'll report back here
SF.Net email is Sponsored by the Better Software Conference & EXP
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
No.3 | | 843 bytes |
| 
MacNews wrote:
[Sat Aug 20 10:03:01 2005] [error] [client 10.0.0.6] PHP Fatal error:
Cannot re-assign $this in
/ on
line 47
>>
>>
>The login page does not load imap_mailbox, so there is something wrong
>else where, unless you are missing a step out and are actually
>logging in.
>
I installed squirrelmail on a PHP5 server a few weeks back. Simply
commenting out that offending line seemed to fix it.
Kae
SF.Net email is Sponsored by the Better Software Conference & EXP
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
No.4 | | 1097 bytes |
| 
hi kae,
[Sat Aug 20 10:03:01 2005] [error] [client 10.0.0.6] PHP Fatal error:
Cannot re-assign $this in
/ on
line 47
The login page does not load imap_mailbox, so there is something wrong
else where, unless you are missing a step out and are actually
logging in.
>>
>
I installed squirrelmail on a PHP5 server a few weeks back.
great to hear. which version of PHP, may i ask?
Simply commenting out that offending line seemed to fix it.
now don't get me wrong -- i'm a BIG fan of the DELETE key, but
can anyone verify that this does not break anything else?
sounds like Jonathan is going to take a closer look
cheers,
richard
SF.Net email is Sponsored by the Better Software Conference & EXP
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
No.5 | | 1423 bytes |
| 
MacNews wrote:
hi kae,
>
>I installed squirrelmail on a PHP5 server a few weeks back.
>
great to hear. which version of PHP, may i ask?
version 5.0.4
>Simply commenting out that offending line seemed to fix it.
>
>
now don't get me wrong -- i'm a BIG fan of the DELETE key, but
can anyone verify that this does not break anything else?
sounds like Jonathan is going to take a closer look
hell - no problem. IIRC, I looked at the code, didn't see immediately
how to solve it, then simply commented it out to see what happened.
Suddenly everything worked, so I left it alone.
It's great that this is getting fixed. There are a few big projects out
there that are intentionally ignoring things like this. Pear, for
instance, refuse to fix some things that complain in PHP5 (using "var"
instead of "public", for instance). It's good that I can expect not to
need to hack the code again if I need to install on another machine.
Kae
SF.Net email is Sponsored by the Better Software Conference & EXP
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
No.6 | | 999 bytes |
| 
hi,
>great to hear. which version of PHP, may i ask?
>>
version 5.0.4
ok. we'll see if anything changes in v510rc1
"Bakword kompatibillitee? We DNN need no steenkin' Bakword kompatibillitee!"
It's great that this is getting fixed. There are a few big projects out there
that are intentionally ignoring things like this. Pear, for instance, refuse
to fix some things that complain in PHP5 (using "var" instead of "public",
for instance). It's good that I can expect not to need to hack the code again
if I need to install on another machine.
amen.
r/
SF.Net email is Sponsored by the Better Software Conference & EXP
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf