Skip to content

Commit b3f9f32

Browse files
authored
[5.3] Revert update of typo3/phar-stream-wrapper and deprecate it (joomla#45255)
1 parent 3cda363 commit b3f9f32

File tree

4 files changed

+13
-34
lines changed

4 files changed

+13
-34
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"symfony/polyfill-mbstring": "^1.31.0",
9191
"symfony/web-link": "^6.4.13",
9292
"symfony/yaml": "^6.4.18",
93-
"typo3/phar-stream-wrapper": "^4.0.0",
93+
"typo3/phar-stream-wrapper": "^3.1.8",
9494
"wamania/php-stemmer": "^4.0.0",
9595
"tobscure/json-api": "dev-joomla-backports",
9696
"willdurand/negotiation": "^3.1.0",

composer.lock

Lines changed: 12 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libraries/bootstrap.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,6 @@ class_exists('\\Joomla\\CMS\\Autoload\\ClassLoader');
6262
set_error_handler(['Joomla\CMS\Exception\ExceptionHandler', 'handleUserDeprecatedErrors'], E_USER_DEPRECATED);
6363
}
6464

65-
// Suppress phar stream wrapper for non .phar files
66-
$behavior = new \TYPO3\PharStreamWrapper\Behavior();
67-
\TYPO3\PharStreamWrapper\Manager::initialize(
68-
$behavior->withAssertion(new \TYPO3\PharStreamWrapper\Interceptor\PharExtensionInterceptor())
69-
);
70-
71-
if (in_array('phar', stream_get_wrappers())) {
72-
stream_wrapper_unregister('phar');
73-
stream_wrapper_register('phar', 'TYPO3\\PharStreamWrapper\\PharStreamWrapper');
74-
}
75-
7665
// Define the Joomla version if not already defined.
7766
defined('JVERSION') or define('JVERSION', (new \Joomla\CMS\Version())->getShortVersion());
7867

libraries/cms.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,6 @@ class_exists('\\Joomla\\CMS\\Autoload\\ClassLoader');
4949
// Decorate Composer autoloader
5050
spl_autoload_register([new \Joomla\CMS\Autoload\ClassLoader($loader), 'loadClass'], true, true);
5151

52-
// Suppress phar stream wrapper for non .phar files
53-
$behavior = new \TYPO3\PharStreamWrapper\Behavior();
54-
\TYPO3\PharStreamWrapper\Manager::initialize(
55-
$behavior->withAssertion(new \TYPO3\PharStreamWrapper\Interceptor\PharExtensionInterceptor())
56-
);
57-
58-
if (in_array('phar', stream_get_wrappers())) {
59-
stream_wrapper_unregister('phar');
60-
stream_wrapper_register('phar', 'TYPO3\\PharStreamWrapper\\PharStreamWrapper');
61-
}
62-
6352
// Define the Joomla version if not already defined
6453
if (!defined('JVERSION')) {
6554
define('JVERSION', (new \Joomla\CMS\Version())->getShortVersion());

0 commit comments

Comments
 (0)