Skip to content
This repository was archived by the owner on Oct 17, 2020. It is now read-only.
This repository was archived by the owner on Oct 17, 2020. It is now read-only.

PHP Warning: is_file() [function.is-file]: File name is longer than the maximum allowed path length on this platform (4096) #1

Closed
@iparmentier

Description

@iparmentier

Bonjour,

J'ai essayé de poster ce signalement sur magento-connect mais ma critique ne se sauvegarde pas chez eux.

J'ai rencontré un bug récemment sur une nouvelle installation Magento

PHP m'affichait une erreur :
PHP Warning: is_file() [function.is-file]: File name is longer than the maximum allowed path length on this platform (4096):

La solution est de modifier le fichier présent à :
lib/Diglin/Io/Files.php

Remplacer la ligne (environ ligne 39) :
if (is_string($src) && is_readable($src)) {

Par
if (is_string($src) && strpos($src, "\n") === FALSE && is_readable($src)) {

ça marche parfaitement maintenant.

Cordialement,
Ilan


Good evening,

I discovered a new bug recently.
I don't know exactly the reason. So far it worked with all my projects.

PHP throws this error :
PHP Warning: is_file() [function.is-file]: File name is longer than the maximum allowed path length on this platform (4096):

Solution :
File lib/Diglin/Io/Files.php
Line 39

Remplace :
if (is_string($src) && is_readable($src)) {

By :
if (is_string($src) && strpos($file, "\n") === FALSE && is_readable($src)) {

Works like a charm now.

Cheers,
Ilan

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