File tree Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 1+ * SHM::isMeetingRequirements() is now not abstract, and always returns TRUE.
2+ * Fixed loading order of adapters.
3+ * Chnaged the PHAR stub to not fail when reading the hash fails.
4+ * Doc and CS fixes.
Original file line number Diff line number Diff line change 2424 }
2525
2626 if (extension_loaded ('phar ' )) {
27- $ phar = new Phar (__FILE__ );
28- $ sig = $ phar ->getSignature ();
29- echo "{$ sig ['hash_type ' ]} hash: {$ sig ['hash ' ]}\n\n" ;
27+ try {
28+ $ phar = new Phar (__FILE__ );
29+ $ sig = $ phar ->getSignature ();
30+ echo "{$ sig ['hash_type ' ]} hash: {$ sig ['hash ' ]}\n\n" ;
31+ } catch (Exception $ e ) {
32+ echo <<<HEREDOC
33+ The PHAR extension is available, but was unable to read this PHAR file's hash.
34+ Regardless, you should not be having any trouble using the package by directly
35+ including the archive.
36+
37+ Exception details:
38+ HEREDOC
39+ . $ e . "\n\n" ;
40+ }
3041 } else {
3142 echo <<<HEREDOC
32- If you wish to use this package from this archive, you need to install and
33- enable the PHAR extension. Otherwise, you must extract this archive, and include
34- the autoloader instead.
43+ If you wish to use this package directly from this archive, you need to install
44+ and enable the PHAR extension. Otherwise, you must instead extract this archive,
45+ and include the autoloader.
46+
47+
3548HEREDOC ;
3649 }
3750
You can’t perform that action at this time.
0 commit comments