# PHP 5 RC1

- Thread: https://externals.io/message/5420
- Original archive: https://news-web.php.net/php.internals/5420
- Started by Uwe Schindler on 2003-11-13T08:26:37+00:00
- Messages: 7
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #5420 — Uwe Schindler — 2003-11-13T08:26:37+00:00

URL: https://externals.io/message/5420#5420

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:
> > […]
>
>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

---

## #5433 — Analysis & Solutions — 2003-11-13T17:01:30+00:00

URL: https://externals.io/message/5420#5433 · In reply to: #5420

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

---

## #5440 — Jani Taskinen — 2003-11-13T18:42:31+00:00

URL: https://externals.io/message/5420#5440 · In reply to: #5433

>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

---

## #5449 — Cesare D'Amico — 2003-11-13T19:13:27+00:00

URL: https://externals.io/message/5420#5449 · In reply to: #5440

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
"E` un'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/ ]

---

## #5450 — Analysis & Solutions — 2003-11-13T19:21:17+00:00

URL: https://externals.io/message/5420#5450 · In reply to: #5440

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

---

## #5456 — Jani Taskinen — 2003-11-14T00:36:23+00:00

URL: https://externals.io/message/5420#5456 · In reply to: #5449

>Alle 19:42, giovedì 13 novembre 2003, Jani Taskinen ha scritto:
> > […]
>
>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

---

## #5457 — Jani Taskinen — 2003-11-14T00:40:03+00:00

URL: https://externals.io/message/5420#5457 · In reply to: #5450

>Hi Jani:
>
>
>
> > […]
>
>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
