Symlink project script needs to be PHP5.6 compatible
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3557341. -->
Reported by: [fjgarlin](https://www.drupal.org/user/2495842)
Related to !426
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Running D7 pipelines I found this error: <a href="https://git.drupalcode.org/project/api/-/jobs/7254110#L603">https://git.drupalcode.org/project/api/-/jobs/7254110#L603</a></p>
<p>This is due to the <code>symlink_project.php</code> script no longer being PHP5.6 compatible, which we need if we want to support D7 projects.</p>
<pre>$ php symlink_project.php $VERBOSE_FLAG $COPY_OPTION<br>PHP Warning: getopt() expects at most 2 parameters, 3 given in /builds/project/api/symlink_project.php on line 26<br>PHP Warning: array_key_exists() expects parameter 2 to be array, boolean given in /builds/project/api/symlink_project.php on line 27<br>PHP Warning: array_key_exists() expects parameter 2 to be array, boolean given in /builds/project/api/symlink_project.php on line 27<br>PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Positional parameters are no longer used. Ignoring symlink_project.php' in /builds/project/api/symlink_project.php:34</pre><p>The fatal error is just a consequence of the previous warnings. </p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Make the script PHP5.6 compatible. <code>getopt</code> changed number of params accepted in PHP7.1.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>MR</p>
> Related issue: [Issue #3551442](https://www.drupal.org/node/3551442)
issue