Lines Matching refs:version
4 include_once __DIR__ . '/version.inc';
14 /* 3.0 is here because version_compare() can't handle the only version in
92 function version_number_to_branch(string $version): ?string {
93 $parts = explode('.', $version);
105 foreach ($releases as $version => $release) {
106 $branch = version_number_to_branch($version);
109 …isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['version…
111 $branches[$major][$branch]['version'] = $version;
118 foreach ($releases as $version => $release) {
119 $branch = version_number_to_branch($version);
122 …isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['version…
124 $branches[$major][$branch]['version'] = $version;
143 foreach ($releases as $version => $release) {
144 $branch = version_number_to_branch($version);
157 $branches[$major][$branch]['version'] = $version;
170 /* If you provide an array to $always_include, note that the version numbers
171 * must be in $RELEASES _and_ must be the full version number, not the branch:
180 foreach ($releases as $version => $release) {
181 $branch = version_number_to_branch($version);
184 …isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['version…
187 'link' => "/releases#$version",
188 'version' => $version,
198 foreach ($releases as $version => $release) {
199 $branch = version_number_to_branch($version);
210 $always_include[] = $version;
218 foreach ($always_include as $version) {
219 $parts = explode('.', $version);
222 if (isset($GLOBALS['RELEASES'][$major][$version])) {
223 $release = $GLOBALS['RELEASES'][$major][$version];
224 $branch = version_number_to_branch($version);
229 'link' => "/downloads#v$version",
230 'version' => $version,
248 * version metadata from $RELEASES for a single release. */
285 foreach ($GLOBALS['OLDRELEASES'][$major] as $version => $release) {
286 … if (version_number_to_branch($version) == $branch && version_compare($version, $last, '>')) {
287 $last = $version;
402 function version_array(string $version, ?int $length = null)
406 explode('.', $version),
430 foreach (($RELEASES[$major] ?? []) as $version => $_) {
431 if (!strncmp($prefix, $version, strlen($prefix))) {
432 return $version;
436 foreach (($OLDRELEASES[$major] ?? []) as $version => $_) {
437 if (!strncmp($prefix, $version, strlen($prefix))) {
438 return $version;