# Automated selection of engine

- Thread: https://externals.io/message/2677
- Original archive: https://news-web.php.net/php.internals/2677
- Started by Sascha Schumann on 2003-06-24T03:25:54+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #2677 — Sascha Schumann — 2003-06-24T03:25:54+00:00

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

Right now, CVS users have to know which engine they need for
    a particular PHP version.  The reason for this?  The
    php4/php5 CVS aliases have been removed, because they
    conveyed a false impression -- php4 just wouldn't give you
    PHP 4, if you did not also specify the correct branch.

    So we are better off just relying on the branch info instead
    of pretending that a CVS alias might do the trick.

    Thus, how do we make

        cvs co -r PHP_4 php-src
        cvs co -r PHP_5 php-src

    just work?

    The simplest solution seems to be: Check out both engines all
    the time.

    This is simple on the CVS level, but there are two other
    concerns:

    - The UNIX build system uses hardcoded "Zend/" directory
      names in a lot of places.  Might be solved by using mv(1)
      in buildconf.

    - The Win32 build system might rely on a specific dirname as
      well.

    So, we should get comfortable with the idea of having a Zend
    _and_ a ZendEngine2 dir at the same time(*).

    Thoughts?

    (*) disk space/network bw is not an issue, when the
        user-chosen branch of the unused engine is empty (e.g.
        the PHP_5 branch in Zend would be empty).

    - Sascha

---

## #2678 — Andi Gutmans — 2003-06-24T05:28:40+00:00

URL: https://externals.io/message/2677#2678 · In reply to: #2677

At 05:25 AM 6/24/2003 +0200, Sascha Schumann wrote:

>     So, we should get comfortable with the idea of having a Zend
>     _and_ a ZendEngine2 dir at the same time(*).
>
>     Thoughts?

I think in the long run it tends to be a bit ugly, but I don't see any 
alternative right now, because merging the CVS histories doesn't seem to be 
feasible to me. So I'm OK with it for now.
However, I am not convinced that having to explicitly checkout the PHP_5 
branch is such a good idea. I thought the idea was to have HEAD be the 
current development version and branch if off when necessary. I would 
prefer this kind of approach.

Andi

---

## #2682 — mfischer@gjat.josefine@Markus Fischer — 2003-06-24T06:26:50+00:00

URL: https://externals.io/message/2677#2682 · In reply to: #2678

On Tue, Jun 24, 2003 at 07:28:40AM +0200, Andi Gutmans wrote : 
> However, I am not convinced that having to explicitly checkout the PHP_5 
> branch is such a good idea. I thought the idea was to have HEAD be the 
> current development version and branch if off when necessary. I would 
> prefer this kind of approach.

    I think the advantage of the requirement of the branch TAG is
    that commit messages now always identify themselves where
    they're comming from right within the subject.

    Commit messages until the change from Sascha were always
    named "[PHP-CVS] cvs: php4" though it was php5 really.

    Now they all look like "[PHP-CVS] cvs: php-src(PHP_5)" which
    imho is easier to identify were a single commit is comming
    from.

    This helps a lot if at a later stage you browser through
    commit mails; you don't need to keep track which version HEAD
    was at a given time; you simply read it in the subject.

    my 2c,

        - Markus
