Skip to content

Commit 6f81909

Browse files
Drop compatibility for PHP 5 (#385)
* Bump PHP version to 7 in headers and fix line endings * Remove support for PHP 5 in CurlRequest * Set PHP dependency to 7.1 in makepackage.php
1 parent e3511aa commit 6f81909

File tree

87 files changed

+101
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+101
-109
lines changed

Diff for: CAS.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* See the License for the specific language governing permissions and
1818
* limitations under the License.
1919
*
20-
* PHP Version 5
20+
* PHP Version 7
2121
*
2222
* @file CAS.php
2323
* @category Authentication

Diff for: docs/examples/config.example.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Just configure all the items in this config according to your environment
77
* and rename the file to config.php
88
*
9-
* PHP Version 5
9+
* PHP Version 7
1010
*
1111
* @file config.php
1212
* @category Authentication

Diff for: docs/examples/create_pgt_storage_db_table.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* have to filled out directly. Option examples can be found in the
1111
* config.example.php
1212
*
13-
* PHP Version 5
13+
* PHP Version 7
1414
*
1515
* @file create_pgt_storage_table.php
1616
* @category Authentication
@@ -50,4 +50,4 @@
5050
?>
5151
</div>
5252
</body>
53-
</html>
53+
</html>

Diff for: docs/examples/example_advanced_saml11.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Advanced example for SAML with attributes and single logout
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_advanced_saml11.php
99
* @category Authentication

Diff for: docs/examples/example_custom_urls.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example for overriding validation urls
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_custom_urls.php
99
* @category Authentication

Diff for: docs/examples/example_gateway.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example that uses the CAS gateway feature
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_gateway.php
99
* @category Authentication

Diff for: docs/examples/example_hardening.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Advanced example for hardening the phpcas client
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_hardening.php
99
* @category Authentication

Diff for: docs/examples/example_html.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example that changes html of phpcas messages
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_html.php
99
* @category Authentication

Diff for: docs/examples/example_lang.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example that changes language of phpcas pages
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_lang.php
99
* @category Authentication

Diff for: docs/examples/example_logout.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example for handling logout requests
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_logout.php
99
* @category Authentication

Diff for: docs/examples/example_no_ssl_cn_validation.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example for diabling SSL CN valdiation
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_simple.php
99
* @category Authentication

Diff for: docs/examples/example_pgt_storage_db.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example that changes the storage of the pgt tickets
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_pgt_storage_db.php
99
* @category Authentication

Diff for: docs/examples/example_pgt_storage_file.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example that changes the storage of the pgt tickets to file
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_pgt_storage_db.php
99
* @category Authentication

Diff for: docs/examples/example_proxy_GET.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example for a proxy that makes a GET request.
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_proxy_GET.php
99
* @category Authentication

Diff for: docs/examples/example_proxy_POST.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example for a proxy that makes a POST request.
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_proxy_POST.php
99
* @category Authentication

Diff for: docs/examples/example_proxy_rebroadcast.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Example for a proxy that rebroadcasts all PGTs to different servers in the
55
* cluster
66
*
7-
* PHP Version 5
7+
* PHP Version 7
88
*
99
* @file example_proxy_rebroadcast.php
1010
* @category Authentication

Diff for: docs/examples/example_proxy_serviceWeb.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example for a proxy with session usage
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_proxy_GET.php
99
* @category Authentication

Diff for: docs/examples/example_proxy_serviceWeb_chaining.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example for a proxy with session usage
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_proxy_serviceWeb_chaining.php
99
* @category Authentication

Diff for: docs/examples/example_renew.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example for a simple cas 2.0 client
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_renew.php
99
* @category Authentication

Diff for: docs/examples/example_service.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example for proxied service with session support
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_service.php
99
* @category Authentication

Diff for: docs/examples/example_service_POST.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example for proxied service with session support and POST support
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_service_POST.php
99
* @category Authentication
@@ -102,4 +102,3 @@
102102
$_SESSION['n'] = 0;
103103
}
104104
echo '<p>request #' . (++$_SESSION['n']) . '</p>';
105-

Diff for: docs/examples/example_service_that_proxies.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example for a proxied proxy
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_service_that_proxies.php
99
* @category Authentication
@@ -103,4 +103,3 @@
103103
?>
104104
</body>
105105
</html>
106-

Diff for: docs/examples/example_simple.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Example for a simple cas 2.0 client
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file example_simple.php
99
* @category Authentication

Diff for: docs/examples/script_info.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Small script to add some info about the example script that is running.
44
* Adds some info that makes it easier to distinguish different proxy sessions
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file script_info.php
99
* @category Authentication
@@ -17,4 +17,4 @@
1717
<dt>Current script</dt><dd><?php print basename($_SERVER['SCRIPT_NAME']); ?></dd>
1818
<dt>session_name():</dt><dd> <?php print session_name(); ?></dd>
1919
<dt>session_id():</dt><dd> <?php print session_id(); ?></dd>
20-
</dl>
20+
</dl>

Diff for: source/CAS.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
*
2222
* Interface class of the phpCAS library
23-
* PHP Version 5
23+
* PHP Version 7
2424
*
2525
* @file CAS/CAS.php
2626
* @category Authentication

Diff for: source/CAS/AuthenticationException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* See the License for the specific language governing permissions and
1818
* limitations under the License.
1919
*
20-
* PHP Version 5
20+
* PHP Version 7
2121
*
2222
* @file CAS/AuthenticationException.php
2323
* @category Authentication

Diff for: source/CAS/Autoload.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Autoloader Class
55
*
6-
* PHP Version 5
6+
* PHP Version 7
77
*
88
* @file CAS/Autoload.php
99
* @category Authentication
@@ -92,4 +92,4 @@ function CAS_autoload($class)
9292
// it to the autoload stack
9393
spl_autoload_register('__autoload');
9494
}
95-
}
95+
}

Diff for: source/CAS/Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* See the License for the specific language governing permissions and
1818
* limitations under the License.
1919
*
20-
* PHP Version 5
20+
* PHP Version 7
2121
*
2222
* @file CAS/Client.php
2323
* @category Authentication

Diff for: source/CAS/CookieJar.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* See the License for the specific language governing permissions and
1818
* limitations under the License.
1919
*
20-
* PHP Version 5
20+
* PHP Version 7
2121
*
2222
* @file CAS/CookieJar.php
2323
* @category Authentication

Diff for: source/CAS/Exception.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* See the License for the specific language governing permissions and
1818
* limitations under the License.
1919
*
20-
* PHP Version 5
20+
* PHP Version 7
2121
*
2222
* @file CAS/Exception.php
2323
* @category Authentication
@@ -56,4 +56,4 @@ interface CAS_Exception
5656
{
5757

5858
}
59-
?>
59+
?>

Diff for: source/CAS/GracefullTerminationException.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* See the License for the specific language governing permissions and
1818
* limitations under the License.
1919
*
20-
* PHP Version 5
20+
* PHP Version 7
2121
*
2222
* @file CAS/GracefullTerminationException.php
2323
* @category Authentication
@@ -83,4 +83,4 @@ public static function throwInsteadOfExiting()
8383
}
8484

8585
}
86-
?>
86+
?>

Diff for: source/CAS/InvalidArgumentException.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* See the License for the specific language governing permissions and
1818
* limitations under the License.
1919
*
20-
* PHP Version 5
20+
* PHP Version 7
2121
*
2222
* @file CAS/InvalidArgumentException.php
2323
* @category Authentication
@@ -43,4 +43,4 @@ class CAS_InvalidArgumentException
4343
{
4444

4545
}
46-
?>
46+
?>

Diff for: source/CAS/Languages/Catalan.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* See the License for the specific language governing permissions and
1818
* limitations under the License.
1919
*
20-
* PHP Version 5
20+
* PHP Version 7
2121
*
2222
* @file CAS/Language/Catalan.php
2323
* @category Authentication

Diff for: source/CAS/Languages/ChineseSimplified.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* See the License for the specific language governing permissions and
1818
* limitations under the License.
1919
*
20-
* PHP Version 5
20+
* PHP Version 7
2121
*
2222
* @file CAS/Language/ChineseSimplified.php
2323
* @category Authentication
@@ -111,4 +111,4 @@ public function getServiceUnavailable()
111111
{
112112
return '服务器 <b>%s</b> 不可用(<b>%s</b>)。';
113113
}
114-
}
114+
}

Diff for: source/CAS/Languages/English.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* See the License for the specific language governing permissions and
1818
* limitations under the License.
1919
*
20-
* PHP Version 5
20+
* PHP Version 7
2121
*
2222
* @file CAS/Language/English.php
2323
* @category Authentication
@@ -111,4 +111,4 @@ public function getServiceUnavailable()
111111
{
112112
return 'The service `<b>%s</b>\' is not available (<b>%s</b>).';
113113
}
114-
}
114+
}

Diff for: source/CAS/Languages/French.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* See the License for the specific language governing permissions and
1818
* limitations under the License.
1919
*
20-
* PHP Version 5
20+
* PHP Version 7
2121
*
2222
* @file CAS/Language/French.php
2323
* @category Authentication
@@ -113,4 +113,4 @@ public function getServiceUnavailable()
113113
}
114114
}
115115

116-
?>
116+
?>

0 commit comments

Comments
 (0)