PHP Warning: include(phar:///~/spip_loader.php/vendor/composer/../guzzlehttp/promises/src/FulfilledPromise.php):
failed to open stream: phar error: internal corruption of phar "/~/spip_loader.php"
(actual filesize mismatch on file "vendor/guzzlehttp/promises/src/FulfilledPromise.php")
in phar:///~/spip_loader.php/vendor/composer/ClassLoader.php on line 582
PHP Warning: include(): Failed opening 'phar:///~/spip_loader.php/vendor/composer/../guzzlehttp/promises/src/FulfilledPromise.php' for inclusion
(include_path='.:/Applications/MAMP/bin/php/php7.4.33/lib/php') in phar:///~/spip_loader.php/vendor/composer/ClassLoader.php on line 582
PHP Fatal error: Uncaught Error: Class 'GuzzleHttp\Promise\FulfilledPromise' not found
in phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:117
Stack trace:
#0 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#1 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#2 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#3 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/PrepareBo in phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 117
```text
PHP Warning: include(phar:///~/spip_loader.php/vendor/composer/../guzzlehttp/promises/src/FulfilledPromise.php):
failed to open stream: phar error: internal corruption of phar "/~/spip_loader.php"
(actual filesize mismatch on file "vendor/guzzlehttp/promises/src/FulfilledPromise.php")
in phar:///~/spip_loader.php/vendor/composer/ClassLoader.php on line 582
PHP Warning: include(): Failed opening 'phar:///~/spip_loader.php/vendor/composer/../guzzlehttp/promises/src/FulfilledPromise.php' for inclusion
(include_path='.:/Applications/MAMP/bin/php/php7.4.33/lib/php') in phar:///~/spip_loader.php/vendor/composer/ClassLoader.php on line 582
PHP Fatal error: Uncaught Error: Class 'GuzzleHttp\Promise\FulfilledPromise' not found
in phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:117
Stack trace:
#0 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#1 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#2 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#3 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/PrepareBo in phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 117
```
Qui appelle Guzzle avec l’option sink donc, pour réécrire le fichier.
Il semblerait qu’il se passe quelque chose dans Guzzle, après la copie, qui nécessite une relecture du phar:// qui n’a pas totalement été fini d’écrire véritablement ou qqc d’approchant
On fait un
```php
$remote->copyTo($url_spip_loader, basename($url_spip_loader));
```
Qui appelle Guzzle avec l’option `sink` donc, pour réécrire le fichier.
Il semblerait qu’il se passe quelque chose dans Guzzle, après la copie, qui nécessite une relecture du `phar://` qui n’a pas totalement été fini d’écrire véritablement ou qqc d’approchant
On fait un
Qui appelle Guzzle avec l’option
sink
donc, pour réécrire le fichier.Il semblerait qu’il se passe quelque chose dans Guzzle, après la copie, qui nécessite une relecture du
phar://
qui n’a pas totalement été fini d’écrire véritablement ou qqc d’approchant