On Fri, Sep 2, 2016 at 9:28 AM, Jordan Gigov <colad...@gmail.com> wrote:
> Most developers who hope to move a site to PHP 7 will still have to
> maintain PHP 5 sites for a long time, requiring the presence of both.
> However, building either one, even with the `--program-suffix`
> configuration option still overwrites some files, like phpize and all the
> headers in ${prefix}/includes/.
>
> It took me a week to solve this problem for myself and everyone else in our
> company, but I have proper working patches for it now.
> They have not been submitted as pull requests yet, because I first want to
> hear what you think of them.
>
> Here are the links:
>
> https://github.com/coladict/php-src/tree/php5-migration
> https://github.com/coladict/php-src/tree/php7-migration
>

Hi, Jordan.

I've also been manually keeping different PHP versions installed, but
I took another approach: each version has its own prefix in /opt.

/opt/php/php-5.6.25
/opt/php/php-7.0.10

And each x.y version is a symlink to the latest release I've tried:

/opt/php/php-5.6 -> /opt/php/php-5.6.25
/opt/php/php-7.0 -> /opt/php/php-7.0.10

On some servers and on my own desktop I also keep symlinks in
/usr/local/bin to their respective binaries in /opt.

I'm mentioning this because it seems to work and doesn't require any
change on PHP itself. Unless I'm missing something.

This is the script I use to fetch and build new versions:

https://github.com/garotosopa/misterbin

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to