Skip to content

Incompatibility issues  #10

Open
Open

Description

@smouzour

Hello all,

We had a project with
Drupal -- 9.4.8
PHP -- 8.1.6
drupal/console-dotenv -- 0.3.1
vlucas/phpdotenv -- ^2.3

We face these notices with auto_detect_line_endings
https://php.watch/versions/8.1/auto_detect_line_endings-ini-deprecated but can not bypassed with setting auto_detect_line_endings=On/Off

So we found that we need to update the vlucas/phpdotenv library
(https://github.com/vlucas/phpdotenv/issues/534v ) but we had the error in the screenshot
Screenshot_209

Is the drupal/console-dotenv library going to be compatible will all the rests and also avoiding the thousands notices messages?

Thanks a lot.

Activity

  1. MokDevelopment commented on Nov 2, 2022

    @MokDevelopment

    I have the exact same issue. We had to update to PHP 8.2 which creates issues with vlucas/phpdotenv being on version 2, which cannot be used for php higher than 8.1

    Even weirder after turning back to 8.1 the error stays.

  2. smouzour commented on Nov 3, 2022

    @smouzour
    Author

    We resolve the issue by creating a custom patch for vlucas/phpdotenv.
    It is actually change the line
    ini_set('auto_detect_line_endings', '1');
    to
    ini_set('auto_detect_line_endings', '0');
    in vendor/vlucas/phpdotenv/src/Loader.php file

    We don't know if this is the best practice and it should take place in a new release of the library...

  3. MokDevelopment commented on Nov 3, 2022

    @MokDevelopment

    oh thanks @smouzour this is helpful.
    In future we might create a custom solution. I don't think this module is still maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions