Comments (10)
Someone has information about the progress of this issue, I still have the problem but I saw that a PR was open to solve this problem, will it soon be merge?
from zippy.
Seems the pr #140 actually broke this package completely. The complete symfony/process signature changed. There won't be an easy way to cover Symfony 4 without breaking backward compatibility.
PHP Fatal error: Uncaught Error: Class 'Symfony\Component\Process\ProcessBuilder' not found in /Users/luceos/Sites/flarum/vendor/alchemy/zippy/src/ProcessBuilder/ProcessBuilderFactory.php:69
Stack trace:
#0 /Users/luceos/Sites/flarum/vendor/alchemy/zippy/src/Adapter/VersionProbe/ZipVersionProbe.php(70): Alchemy\Zippy\ProcessBuilder\ProcessBuilderFactory->create()
#1 /Users/luceos/Sites/flarum/vendor/alchemy/zippy/src/Adapter/AbstractAdapter.php(146): Alchemy\Zippy\Adapter\VersionProbe\ZipVersionProbe->getStatus()
#2 /Users/luceos/Sites/flarum/vendor/alchemy/zippy/src/Zippy.php(156): Alchemy\Zippy\Adapter\AbstractAdapter->isSupported()
#3 /Users/luceos/Sites/flarum/vendor/alchemy/zippy/src/Zippy.php(67): Alchemy\Zippy\Zippy->getAdapterFor('zip')
#4 /Users/luceos/Sites/flarum/workbench/backup/src/Console/BackupCommand.php(69): Alchemy\Zippy\Zippy->create('/Users/luceos/S...', Array)
#5 /Users/luceos/Sites/flarum/workbench/backup/src/Console/BackupCommand.php(32): Flagrow\Backup\Console\BackupCommand->prepareArchive()
#6 [intern in /Users/luceos/Sites/flarum/vendor/alchemy/zippy/src/ProcessBuilder/ProcessBuilderFactory.php on line 69
Fixing that, causes:
PHP Fatal error: Uncaught Error: Call to undefined method Symfony\Component\Process\Process::add() in /Users/luceos/Sites/flarum/vendor/alchemy/zippy/src/Adapter/VersionProbe/ZipVersionProbe.php:71
Stack trace:
#0 /Users/luceos/Sites/flarum/vendor/alchemy/zippy/src/Adapter/AbstractAdapter.php(146): Alchemy\Zippy\Adapter\VersionProbe\ZipVersionProbe->getStatus()
#1 /Users/luceos/Sites/flarum/vendor/alchemy/zippy/src/Zippy.php(156): Alchemy\Zippy\Adapter\AbstractAdapter->isSupported()
#2 /Users/luceos/Sites/flarum/vendor/alchemy/zippy/src/Zippy.php(67): Alchemy\Zippy\Zippy->getAdapterFor('zip')
#3 /Users/luceos/Sites/flarum/workbench/backup/src/Console/BackupCommand.php(69): Alchemy\Zippy\Zippy->create('/Users/luceos/S...', Array)
#4 /Users/luceos/Sites/flarum/workbench/backup/src/Console/BackupCommand.php(32): Flagrow\Backup\Console\BackupCommand->prepareArchive()
#5 [internal function]: Flagrow\Backup\Console\BackupCommand->handle(Object(Flagrow\Backup\Registry))
#6 /Users/luceos/Sites/flarum/vendor/illuminate/container/Bound in /Users/luceos/Sites/flarum/vendor/alchemy/zippy/src/Adapter/VersionProbe/ZipVersionProbe.php on line 71
from zippy.
ProcessBuilder was deprecated in symfony/component 3.4.0 and removed in symfony/component 4.0
see https://github.com/symfony/process/blob/master/CHANGELOG.md
from zippy.
Is this library just broken and dead?
from zippy.
I'm getting this error too, have tried running composer dump-autoload
but hasn't helped. Had a look through the code and couldn't see the issue. Also using version 0.4.9
.
from zippy.
Having the same issue and error here Uncaught Error: Class 'Symfony\Component\Process\ProcessBuilder' not found
Updating broke all of my zippy code...
from zippy.
ProcessBuilder is not available in symfony/process 4.
Need to upgrade zippy to cover this case.
Example of fixing this case in another project - https://github.com/pact-foundation/pact-php/pull/61/files
from zippy.
@luceos Are you a maintainer of this package?
Right now the only way to fix is to require symfony/process with version symfony/process": "^2.1 || ^3.0"
from zippy.
As I had to upgrade Symfony and the maintainers of the project stopped to "maintain", I had no choice other than creating a nasty patch, that allows to use the zipper by ignoring the "ZipVersionProbe" functionality. I don´t know what the ZipVersionProbe class it is meant to do as I can't afford to spend more time with researching.
With me it works. Even with larger files 200mb+
Maybe this is a small help to somebody who runs into the same issue.
0-4-9-fatal-error-ProcessBuilder-not-found.patch.txt
from zippy.
@luceos Are you a maintainer of this package?
Right now the only way to fix is to require symfony/process with versionsymfony/process": "^2.1 || ^3.0"
I'm not. And I don't remember using this in my apps anymore.
If you need this, I highly suggest forking and adding a link to the fork here.
from zippy.
Related Issues (20)
- empty files are defined as directories
- Full example
- Question: Are gzip (.gz) files supported? HOT 1
- Tar Parser is failed
- Fatal error: Uncaught Alchemy\Zippy\Exception\FormatNotSupportedException: No strategy for extension in
- Protection against Zip Bomb HOT 1
- Request for a new release tag "0.4.10" HOT 3
- Doc url 404
- Symfony 5 Support HOT 2
- Error when only single url passed to create() HOT 1
- it isn't support chinese file name
- Can't run composer update after adding alchemy/zippy
- Unable To Extract GNU Tar With Overwrite false
- Md5 changes after the file is repeatedly compressed
- Support php8 HOT 1
- Question, feature request. Open from stream
- Symfony 6 support
- Support more compression algorithms with GNU tar
- Please upgrade it. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zippy.