phpCAS 1.3.0 and later no longer accepts the $format
parameter for phpCAS::setPGTStorageFile($path)
.
See the following commits to phpCAS for the origin of this phpCAS API change:
https://github.com/Jasig/phpCAS/commit/1307361d06fe6b1236e2041a5e37480f5...
https://github.com/Jasig/phpCAS/commit/a0ab15965c4fdb8a247fad5553cce4d01...
Repeatable: Always
Steps to repeat:
1. Use the CAS module with phpCAS 1.3 or later
2. Configure the CAS module to authenticate as a proxy.
3. Try to log in - the $format will be passed as the first argument when phpCAS 1.3 is expecting the $path to be the first argument, resulting in an error.
Comment | File | Size | Author |
---|---|---|---|
#1 | cas-setPGTStorageFile-1827482-1.patch | 1.95 KB | adamfranco |
Comments
Comment #1
adamfranco CreditAttribution: adamfranco commentedHere is a patch which fixes this issue. It uses
version_compare()
onPHPCAS_VERSION
which isn't super elegant, but that seems more straight forward that getting into reflection for testing the number of allowed parameters to the function.Comment #2
adamfranco CreditAttribution: adamfranco commentedComment #3
bfroehle CreditAttribution: bfroehle commentedCommitted #1 to 7.x-1.x. Needs backport to 6.x-3.x-dev. Thanks.
Comment #4
bfroehle CreditAttribution: bfroehle commentedCommitted to 6.x-3.x. Thanks.