Code Monkey home page Code Monkey logo

phwoolcon's Issues

框架的自动加载和Symfony\Polyfill\Php72等不兼容问题

执行命令:
vendor/bin/update-phwoolcon-package-resource
报错信息:
Fatal error: Uncaught Error: Class 'Symfony\Polyfill\Php72\Php72' not found in /Users/jiangyi/www/rebuy_git/vendor/symfony/polyfill-php72/bootstrap.php:29 Stack trace: /Users/jiangyi/www/rebuy_git/vendor/composer/autoload_phalcon_files.php(3): include() /Users/jiangyi/www/rebuy_git/vendor/phwoolcon/bootstrap/bootstrap/start.php(23): include('/Users/jiangyi/...') 2 /Users/jiangyi/www/rebuy_git/bootstrap/start.php(11): include('/Users/jiangyi/...') 3 /Users/jiangyi/www/rebuy_git/bootstrap/ci_start.php(6): include('/Users/jiangyi/...') 4 /Users/jiangyi/www/rebuy_git/index.php(8): include('/Users/jiangyi/...') 5 {main} thrown in /Users/jiangyi/www/rebuy_git/vendor/symfony/polyfill-php72/bootstrap.php on line 29

文件位置:
vendor/phwoolcon/bootstrap/bootstrap/start.php

Compatibility with Swoole 1.9

See Travis CI Build #131

ERROR	zim_swoole_client_recv (ERROR 1201): Package is too big. package_length=3000677

tests/Unit/Daemon/ServiceTest.php:54
tests/Unit/Daemon/ServiceTest.php:162

Relevant codes:

if ($length > 2097152) {
    foreach (str_split($request, 1048576) as $chunk) {
        $client->send($chunk);
    }
} else {
    $client->send($request);
}
$response = $client->recv();
$client->close();

if ($response === false) {
    return false;
}

$length = unpack('N', $response)[1]; // <-- Line 54

...

// Test request for large body
$request = [
    'request' => ['key' => $value = str_repeat('ABC', 1e6)],
    'cookies' => [],
    'server' => array_merge($_SERVER, ['REQUEST_URI' => '/test-controller-input', 'REQUEST_METHOD' => 'GET']),
    'files' => [],
];
$response = $this->request($request); // <-- Line 162

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.