]> granicus.if.org Git - php/commit
Avoid duplicating the proc_open cleanup logic
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 14 May 2020 08:35:33 +0000 (10:35 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 14 May 2020 08:35:33 +0000 (10:35 +0200)
commit75bac167885b611ce981abdcbb21da7bb98a14c6
tree31e87097c86cf7a05dabb1142f1871f9fba7c3c9
parentdc1496e4a34343fc875b43b814d886f1371aa34d
Avoid duplicating the proc_open cleanup logic

Use a slightly ugly "goto unreachable" pattern to share this code,
so we don't have to duplicate cleanup logic for the success and
the failure cases.
ext/standard/proc_open.c