Skip to content
This repository has been 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
Amadeco opened this issue Dec 6, 2012 · 4 comments

Comments

@Amadeco
Copy link

Amadeco commented Dec 6, 2012

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

@Amadeco
Copy link
Author

Amadeco commented Dec 6, 2012

My bad,

problem with open_basedir in effect.

open_basedir = none

resolved everything.

Sorry.

Ilan

@sylvainraye
Copy link
Collaborator

Hi thank you for your feedback. It means no changes necessary am I right ?

@Amadeco
Copy link
Author

Amadeco commented Dec 7, 2012

Yes sylvain.

But it is good to know it

@sylvainraye
Copy link
Collaborator

Oui merci. Alors je ferme cet issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants