mtownsend5512 / response-xml

The missing XML support for Laravel's Response class.
MIT License
102 stars 21 forks source link

PHP Fatal error: Allowed memory size #16

Open directonlijn opened 3 years ago

directonlijn commented 3 years ago

After running: composer require mtownsend/response-xml

I get the following error:

PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///cygdrive/c/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 220

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///cygdrive/c/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 220

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.

php version 7.2.11

Composer.json

{
"name": "laravel/lumen",
"description": "The Laravel Lumen Framework.",
"keywords": ["framework", "laravel", "lumen"],
"license": "MIT",
"type": "project",
"require": {
    "php": "^7.2",
    "doctrine/dbal": "^2.10",
    "guzzlehttp/guzzle": "^6.5",
    "laravel/lumen-framework": "^6.0",
    "mtownsend/response-xml": "^2.0",
    "sentry/sentry-laravel": "^1.7"
},
"require-dev": {
    "fzaninotto/faker": "^1.4",
    "phpunit/phpunit": "^8.0",
    "mockery/mockery": "^1.0"
},
"autoload": {
    "classmap": [
        "database/seeds",
        "database/factories"
    ],
    "psr-4": {
        "App\\": "app/"
    }
},
"autoload-dev": {
    "classmap": [
        "tests/"
    ]
},
"scripts": {
    "post-root-package-install": [
        "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
    ]
},
"config": {
    "preferred-install": "dist",
    "sort-packages": true,
    "optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}

If you need any other information please let me know.

chendovdtoorn commented 3 years ago

@directonlijn You have to set your memory limit to a higher amount in your php.ini file

; Maximum amount of memory a script may consume
; http://php.net/memory-limit
memory_limit=512M // default
memory_limit=1G // 1 GB
memory_limit=-1 // unlimited