|
44 | 44 | </p>
|
45 | 45 |
|
46 | 46 | <ul>
|
47 |
| - <li><i>autoconf</i>: 2.13 (2.59+ for PHP 5.4+)</li> |
| 47 | + <li><i>autoconf</i>: 2.59+</li> |
48 | 48 | <li><i>automake</i>: 1.4+</li>
|
49 | 49 | <li><i>libtool</i>: 1.4.x+ (except 1.4.2)</li>
|
50 |
| - <li><i>bison</i>: 1.28, 1.35, 1.75, 2.0 or higher</li> |
51 |
| - <li><i>flex (PHP 5.2 and earlier)</i>: 2.5.4 (<strong>not higher</strong>)</li> |
52 | 50 | <li><i>re2c</i>: 0.13.4+</li>
|
| 51 | + <li id="bison"><i>bison</i>: |
| 52 | + <ul> |
| 53 | + <li><i>PHP 5.4</i>: 1.28, 1.35, 1.75, 2.0 to 2.6.4</li> |
| 54 | + <li><i>PHP 5.5 and 5.6</i>: 2.4 to 2.7</li> |
| 55 | + <li><i>PHP 7</i>: 2.4+</li> |
| 56 | + </ul> |
| 57 | + </li> |
53 | 58 | </ul>
|
54 | 59 |
|
55 | 60 | <p>
|
|
73 | 78 | <br><br>
|
74 | 79 | <code>git clone http://git.php.net/repository/php-src.git</code>
|
75 | 80 | <br><br>
|
| 81 | + |
| 82 | + You can also download a snapshot from GitHub:<br><br> |
| 83 | + <ul> |
| 84 | + <li>Go to the <a href="https://github.com/php/php-src">php-src project page</a>.</li> |
| 85 | + <li>Select the branch you're interested in from the branch dropdown.</li> |
| 86 | + <li>Click on the <strong>Download ZIP</strong> button.</li> |
| 87 | + </ul> |
76 | 88 | </li>
|
77 | 89 |
|
78 | 90 | <li>
|
|
83 | 95 | </li>
|
84 | 96 |
|
85 | 97 | <li>
|
86 |
| - You can then check out the branch you want to build: |
| 98 | + You can then check out the branch you want to build, for example: |
87 | 99 | <br><br>
|
88 |
| - <strong>PHP 5.3</strong>: |
89 |
| - <code>git checkout PHP-5.3</code> |
90 |
| - <br> |
91 | 100 | <strong>PHP 5.4</strong>:
|
92 | 101 | <code>git checkout PHP-5.4</code>
|
93 | 102 | <br>
|
| 103 | + <strong>PHP 5.5</strong>: |
| 104 | + <code>git checkout PHP-5.5</code> |
| 105 | + <br> |
| 106 | + <strong>PHP 5.6</strong>: |
| 107 | + <code>git checkout PHP-5.6</code> |
| 108 | + <br> |
94 | 109 | <strong>PHP HEAD</strong>:
|
95 | 110 | <code>git checkout master</code>
|
96 | 111 | <br><br>
|
|
99 | 114 | <li>
|
100 | 115 | <div class="tip" style="margin: 10px 0 10px 20px;">
|
101 | 116 | <p>Note that certain combinations of autoconf, automake and libtool may not
|
102 |
| - work when used together. See <a href="#buildconf_fail">below</a> for |
103 |
| - details.<br> |
| 117 | + work when used together, particularly with historical versions of PHP. See |
| 118 | + <a href="#buildconf_fail">below</a> for details.<br> |
104 | 119 | Also, certain versions of autoconf may generate warnings of <code>AC_PROG_CPP
|
105 | 120 | called before AC_PROG_CC</code>. These messages can usually be ignored.</p>
|
106 | 121 | </div>
|
|
112 | 127 |
|
113 | 128 | <li>
|
114 | 129 | From this point onwards, installation is similar to the installation of one of
|
115 |
| - the official packages with one main difference – you may need bison 1.28 or later |
116 |
| - and flex 2.5.4 (PHP 5.2 and earlier) or re2c 0.13.4+ or later (PHP 5.3 and later) to |
117 |
| - compile, because the pre-generated scanner and parser files may not |
118 |
| - be included in Git. |
| 130 | + the official packages with one main difference – you will need |
| 131 | + <a href="#bison">a version of bison that is supported for the PHP version you want to build</a>. |
| 132 | + You may also require re2c if you intend to change any of the scanner and |
| 133 | + parser files PHP uses. |
119 | 134 | </li>
|
120 | 135 | </ol>
|
121 | 136 |
|
|
139 | 154 |
|
140 | 155 | <p>
|
141 | 156 | The PHP manual is still currently hosted on SVN, although it will be migrated
|
142 |
| - to Git in the near future. To checkout the latest English version of the PHP |
| 157 | + to Git in the future. To checkout the latest English version of the PHP |
143 | 158 | manual:<br>
|
144 | 159 | <code>svn checkout https://svn.php.net/repository/phpdoc/modules/doc-en ./phpdoc-en</code>
|
145 | 160 | <br><br>
|
146 | 161 | You can also check the <a href="https://wiki.php.net/vcs/svnfaq">SVN FAQ on the wiki</a>.
|
147 | 162 | </p>
|
148 | 163 |
|
149 |
| -<a name="buildconf_fail"></a> |
150 |
| -<h2>autoconf, automake and libtool information</h2> |
| 164 | +<h2>Historical issues</h2> |
| 165 | + |
| 166 | +<h3 id="buildconf_fail">autoconf, automake and libtool information for PHP 5.3 and below</h3> |
151 | 167 |
|
152 | 168 | <p>
|
153 | 169 | There seem to be problems with libtool 1.4.2. It is suggested
|
|
171 | 187 | <code>PHP_AUTOCONF=autoconf213 PHP_AUTOHEADER=autoheader213 ./buildconf</code>
|
172 | 188 | </p>
|
173 | 189 |
|
174 |
| -<a name="flex_fail"></a> |
175 |
| -<h2>Zend/zend_language_scanner.c: No such file or directory</h2> |
| 190 | +<h3 id="flex_fail">Zend/zend_language_scanner.c: No such file or directory</h3> |
176 | 191 |
|
177 | 192 | <p>
|
178 | 193 | PHP only supports flex 2.5.4, <strong>not</strong> later versions as they broke backwards compatibility.
|
|
0 commit comments