fortrabbit / phpco-docker Goto Github PK
View Code? Open in Web Editor NEWSimple docker build for running PHPCompatibility (https://github.com/PHPCompatibility/PHPCompatibility)
License: MIT License
Simple docker build for running PHPCompatibility (https://github.com/PHPCompatibility/PHPCompatibility)
License: MIT License
When running this instance on a huge project I'm getting a out of memory issue. Gonna provide PR for this.
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16777224 bytes) in /usr/local/lib/php/PHP/CodeSniffer/src/Tokenizers/PHP.php on line 1449
Hi, how can I increase the memory limit?
phpco -p --colors --extensions=php --runtime-set testVersion 7.3 .
............................................................ 60 / 9997 (1%)
............................................................ 120 / 9997 (1%)
............................................................ 180 / 9997 (2%)
............................................................ 240 / 9997 (2%)
............................................................ 300 / 9997 (3%)
............................................................ 360 / 9997 (4%)
............................................................ 420 / 9997 (4%)
............................................................ 480 / 9997 (5%)
............................................................ 540 / 9997 (5%)
............................................................ 600 / 9997 (6%)
............................................................ 660 / 9997 (7%)
............................................................ 720 / 9997 (7%)
............................................................ 780 / 9997 (8%)
............................................................ 840 / 9997 (8%)
.......................................W.................... 900 / 9997 (9%)
............................................................ 960 / 9997 (10%)
...................................................W........ 1020 / 9997 (10%)
...........................................W.............W.. 1080 / 9997 (11%)
..W......................................................... 1140 / 9997 (11%)
..W......................................................... 1200 / 9997 (12%)
............................................................ 1260 / 9997 (13%)
............................W............................... 1320 / 9997 (13%)
............................................................ 1380 / 9997 (14%)
............................................................ 1440 / 9997 (14%)
............................................................ 1500 / 9997 (15%)
............................................................ 1560 / 9997 (16%)
............................................................ 1620 / 9997 (16%)
............................................................ 1680 / 9997 (17%)
............................................................ 1740 / 9997 (17%)
............................................................ 1800 / 9997 (18%)
............................................................ 1860 / 9997 (19%)
............................................................ 1920 / 9997 (19%)
............................................................ 1980 / 9997 (20%)
............................................................ 2040 / 9997 (20%)
............................................................ 2100 / 9997 (21%)
............................................................ 2160 / 9997 (22%)
............................................................ 2220 / 9997 (22%)
............................................................ 2280 / 9997 (23%)
............................................................ 2340 / 9997 (23%)
............................................................ 2400 / 9997 (24%)
............................................................ 2460 / 9997 (25%)
............................................................ 2520 / 9997 (25%)
............................................................ 2580 / 9997 (26%)
................................................
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /usr/local/lib/php/PHP/CodeSniffer/src/Tokenizers/PHP.php on line 1326
It would be useful to add phpco as an additional installation method here:
https://github.com/PHPCompatibility/PHPCompatibility/blob/develop/README.md
Hello,
I'm trying to use it but I have this error, do you have any idea of how to fix it please?
I'm under GNU/Linux Fedora 30.
I doesn't have recursive folders, I've also tested with an empty vendor/ folder.
I've tried to use the direct docker command too.
I've also tried the previous version 8.2.0
Regards,
% phpco() { docker run --init -v $PWD:/mnt/src:cached --rm -u "$(id -u):$(id -g)" frbit/phpco:latest $@; return $?; }
% phpco -p --colors --extensions=php --runtime-set testVersion 7.2 .
Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/mnt/src): failed to open dir: Permission denied in /usr/local/lib/php/PHP/CodeSniffer/src/Files/FileList.php:82
Stack trace:
#0 /usr/local/lib/php/PHP/CodeSniffer/src/Files/FileList.php(82): RecursiveDirectoryIterator->__construct('/mnt/src', 4608)
#1 /usr/local/lib/php/PHP/CodeSniffer/src/Runner.php(382): PHP_CodeSniffer\Files\FileList->__construct(Object(PHP_CodeSniffer\Config), Object(PHP_CodeSniffer\Ruleset))
#2 /usr/local/lib/php/PHP/CodeSniffer/src/Runner.php(114): PHP_CodeSniffer\Runner->run()
#3 /usr/local/bin/phpcs(18): PHP_CodeSniffer\Runner->runPHPCS()
#4 {main}
thrown in /usr/local/lib/php/PHP/CodeSniffer/src/Files/FileList.php on line 82
Feature request: add phpcbf into the image, so that one could automatically fix whatever the output is suggesting. Otherwise, we need to figure out the full installation, bringing us back to square one.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.