Skip to content

Possible memory leak with PHPUnit? #156

Open
@keithbrinks

Description

@keithbrinks

I have a Laravel 12 application, running running the latest version of yajra/laravel-pdo-via-oci8 (3.7.1) and PHPUnit 11.5.17.

When executing php artisan test I'm running into the following errors:

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in /Users/keithbrinks/Herd/VenturaApps/vendor/yajra/laravel-pdo-via-oci8/src/Pdo/Oci8/Statement.php on line 545

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in /Users/keithbrinks/Herd/VenturaApps/vendor/yajra/laravel-pdo-via-oci8/src/Pdo/Oci8/Statement.php on line 545
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /Users/keithbrinks/Herd/VenturaApps/vendor/laravel/framework/src/Illuminate/Log/Context/Repository.php on line 465

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /Users/keithbrinks/Herd/VenturaApps/vendor/laravel/framework/src/Illuminate/Log/Context/Repository.php on line 465

I can run individual tests that uses the OCI8 extension without error -- but when I try to run all tests, I run into this error.

It's possible I have a different issue going on not related to this package, but this is the error that's surfacing to figured I'd post this while I continue troubleshooting.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions