Yes the SAPI codes are changed (php5_execute was my example from NSAPI
SAPI). But the filenames in the win32 distrib are still php4_xxx.dll (see
snapshot compile log).
At 21:49 12.11.2003, you wrote:
Marcus Boerger wrote:
I installed php5 from ./makerpm today and yes i needed to
LoadModule mod_php5 php5_apache.dll (if i were on windows)Hello Marcus,
Well, that's what I though. IIRC, the last time I tried PHP5 under
Windows, the Apache SAPI code was changed. I was uncertain what Uwe meant
about the php5_execute. Was he refering to the LoadModule directive under
Apache?Oliver
GB/E/IT d+ s+:+ a-- C++$ UL++++$ P++++ L+++$ E- W++$ N- ?o ?K w--(---) !O
M+$ V- PS+ PE- Y PGP t++ 5-- X+@ R- tv++ b++(+++) DI++++ D+ G++ e+>++ h(*)
r y+(?)
Uwe Schindler
thetaphi@php.net - http://www.php.net
NSAPI SAPI developer
Erlangen, Germany
Hi Folks:
But the filenames in the win32 distrib are still php4_xxx.dll (see
snapshot compile log).
This was one thing that concerned me about the new version. It would be
really nice if the PHP 5 DLL's would be given different names so PHP 4
and PHP 5 can be installed at the same time. This doesn't seem possible
if the DLL's have the same names because the OS will use whichever DLL is
found first in the Path, rather than the DLL's appropriate for the version
in question.
The ability to run two versions at once makes compatibility testing way
easier for developers making software that uses PHP. For example, during
the transition from PHP 3 to PHP 4, I had .htm extensions mapped to PHP 3
and .html extensions mapped to PHP 5. Both pages would include the same
PHP classes. This way I could pop back and forth between versions without
a problem.
Thanks for your consideration,
--Dan
--
FREE scripts that make web and database programming easier
http://www.analysisandsolutions.com/software/
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
The ability to run two versions at once makes compatibility testing way
easier for developers making software that uses PHP. For example, during
the transition from PHP 3 to PHP 4, I had .htm extensions mapped to PHP 3
and .html extensions mapped to PHP 5. Both pages would include the same
PHP classes. This way I could pop back and forth between versions without
a problem.
Last time I checked, you can't run PHP 4 & 5 as DSO on same apache
on *nix, at least. (it crashes)
I made the necessary changes for that to be possible in the config side..
The --enable-versioning doesn't seem to work at all with PHP 5 for some reason.
I don't know if this is any different with windows. But for it to be
even possible, you need to patch the stuff lot more than just rename
the dlls.
--Jani
Alle 19:42, giovedì 13 novembre 2003, Jani Taskinen ha scritto:
I made the necessary changes for that to be possible in the config
side..
So you managed to run both php4 and php5 as DSO on the same instance of
the server? How did you do it? (it's really interesting, and it's a
pity that this doesn't work out of the box as it was in the php3/4
period)
Ciao
ce
Cesare D'Amico - http://www.phpday.it
"Eun'emergenza!!! Dovrei fare questo-e-questaltro ma non posso perche' la mia testa e
piena di segatura e criceti!!!"
-- un utente [ http://www.soft-land.org/storie/ ]
Alle 19:42, giovedì 13 novembre 2003, Jani Taskinen ha scritto:
I made the necessary changes for that to be possible in the config
side..So you managed to run both php4 and php5 as DSO on the same instance of
the server? How did you do it? (it's really interesting, and it's a
pity that this doesn't work out of the box as it was in the php3/4
period)
I thought I said "it crashed" ? (you didn't quote that part..:)
And hopefully you also noticed that this was done within Linux,
not windows.
The basic problem running php4/php5 "same time" is that both php4/php5
use the same trigger for running the scripts on Apache. (application/x-httpd-php)
So I just changed that in php5 sapi/apache/mod_php5.c to
php5-script..and also used the handler method instead, like this:
AddType application/x-httpd-php .php4
AddHandler php5-script .php5
(I think it was Ken who said that this is actually how it should have been
since the beginning..using the AddHandler, not AddType.. :)
Now, it worked fine as long as only either libphp4.so or libphp5.so was
enabled. If both were enabled -> hangup/crash.
I tried compiling both php4/5 with --enable-versioning, and also
just the other but that didn't make any difference, it still hung/crashed.
--Jani
Hi Jani:
Last time I checked, you can't run PHP 4 & 5 as DSO on same apache on *nix, at least. (it crashes)
My development setup is PHP as CGI on Apache 1.3.x / Windows 2000.
Thanks,
--Dan
--
FREE scripts that make web and database programming easier
http://www.analysisandsolutions.com/software/
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
Hi Jani:
Last time I checked, you can't run PHP 4 & 5 as DSO on same apache on *nix, at least. (it crashes)
My development setup is PHP as CGI on Apache 1.3.x / Windows 2000.
Yes, CGI works of course. (when we get the php4ts.dll renamed :)
That's the win32 only problem here, the DSO problem exists in both worlds.
(see my other post about this issue a bit earlier)
--Jani