# Limited access to php_version.h [Fwd: [PHP-CVS] svn: /SVNROOT/ global_avail]

- Thread: https://externals.io/message/96375
- Original archive: https://news-web.php.net/php.internals/96375
- Started by johannes@php.net on 2016-10-15T02:07:12+00:00
- Messages: 2
- 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

---

## #96375 — johannes@php.net — 2016-10-15T02:07:12+00:00

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

Hi,

I've restricted access to main/php_version.h. This should restrict wrong
merges by a bit. Hope this doesn't cause issues. Current RMs should have
access. This is the current list:

avail|rasmus,johannes,tyrael,ab,jpauli,davey,krakjoe,dsp|php-src.git/main/php_version.h

johannes

---

## #97059 — Ferenc Kovacs — 2016-11-19T17:35:01+00:00

URL: https://externals.io/message/96375#97059 · In reply to: #96375

> Hi,
>
> I've restricted access to main/php_version.h. This should restrict wrong
> merges by a bit. Hope this doesn't cause issues. Current RMs should have
> access. This is the current list:
>
> avail|rasmus,johannes,tyrael,ab,jpauli,davey,krakjoe,dsp|php
> -src.git/main/php_version.h
>
> johannes
>
>
> ---------- Forwarded message ----------
> From: "Johannes Schlüter" <johannes@php.net>
> To: php-cvs@lists.php.net
> Cc:
> Date: Sat, 15 Oct 2016 02:02:15 +0000
> Subject: [PHP-CVS] svn: /SVNROOT/ global_avail
> johannes                                 Sat, 15 Oct 2016 02:02:15 +0000
>
> Revision: http://svn.php.net/viewvc?view=revision&revision=340492
>
> Log:
> Limit access to php_vesion.h
>
> This serves as a small mitigation to prevent wrong merges (i.e. merging
> PHP-7.1 into PHP-7.0 instead of the other way round) This won't cover all
> cases, but hopefully reduces the number of issues.
>
> Changed paths:
>     U   SVNROOT/global_avail
>
> Modified: SVNROOT/global_avail
> ===================================================================
> --- SVNROOT/global_avail        2016-10-14 22:23:44 UTC (rev 340491)
> +++ SVNROOT/global_avail        2016-10-15 02:02:15 UTC (rev 340492)
> @@ -28,6 +28,14 @@
>  # php-src karma and before lines granting Zend/TSRM karma)
>  unavail||php-src.git/Zend,php-src.git/TSRM
>
> +# Limit access to man/php_version.h as a mitigation for wrong merges
> (this line
> +# MUST come after lines granting hp-src karma and before lines granting
> +# man/php_version.h karma)
> +unavail||php-src.git/main/php_version.h
> +
> +# RMs and a few others have access to main/php_version.h (see unavail
> above)
> +avail|rasmus,johannes,tyrael,ab,jpauli,davey,krakjoe,dsp|ph
> p-src.git/main/php_version.h
> +
>  # PEAR bits in the main php-src module
>  avail|mj,vblavet,dickmann,tal,jmcastagnetto,alexmerz,
> cellog,pajoye,timj,clay,dufuz,bjori,davidc,saltybeagle,
> derick|php-src.git/pear
>
>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> 
>

hi,

the only case I can think of would be if we were using feature branches,
this change would prevent other people from merging from the dev branches
if the merge touches php_version.h
but I think it is clearly better to have an easy guard against bogus merges
which prevents a feature not even used atm.
and of course we can have a better fix in the future if we ever want to use
feature branches in the php-src repo.

-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu
