schmittjoh / JMSDiExtraBundle

Provides Advanced Dependency Injection Features for Symfony2
http://jmsyst.com/bundles/JMSDiExtraBundle
330 stars 130 forks source link

File name too long...seriously!? #156

Open dailytabs opened 10 years ago

dailytabs commented 10 years ago

file_put_contents(....../app/cache/test_phoneswipe/jms_diextra/proxies/EnhancedProxy9cea77a8_c967a63507f64a14897f80f0b3e78b9f7e5e5772-CG-NAB-Bundle-PayanywherePortalBundle-Controller-ReceiptSettingsController.php): failed to open stream: File name too long

schmittjoh commented 10 years ago

When developing on Windows, I'd recommend to put your workspace into the root folder like D:/, but not use the user folders. You'll run into this problem a lot.

On Wed, Feb 19, 2014 at 6:07 PM, Daily Tabs notifications@github.comwrote:

file_put_contents(....../app/cache/test_phoneswipe/jms_diextra/proxies/EnhancedProxy9cea77a8_c967a63507f64a14897f80f0b3e78b9f7e5e5772- CG-NAB-Bundle-PayanywherePortalBundle-Controller-ReceiptSettingsController.php): failed to open stream: File name too long

Reply to this email directly or view it on GitHubhttps://github.com/schmittjoh/JMSDiExtraBundle/issues/156 .

dailytabs commented 10 years ago

Not windows. Ubuntu 13.10. On Feb 19, 2014 12:09 PM, "Johannes" notifications@github.com wrote:

When developing on Windows, I'd recommend to put your workspace into the root folder like D:/, but not use the user folders. You'll run into this problem a lot.

On Wed, Feb 19, 2014 at 6:07 PM, Daily Tabs <notifications@github.com

wrote:

file_put_contents(....../app/cache/test_phoneswipe/jms_diextra/proxies/EnhancedProxy9cea77a8_c967a63507f64a14897f80f0b3e78b9f7e5e5772-

CG-NAB-Bundle-PayanywherePortalBundle-Controller-ReceiptSettingsController.php): failed to open stream: File name too long

Reply to this email directly or view it on GitHub< https://github.com/schmittjoh/JMSDiExtraBundle/issues/156> .

— Reply to this email directly or view it on GitHubhttps://github.com/schmittjoh/JMSDiExtraBundle/issues/156#issuecomment-35522321 .

ghost commented 10 years ago

@schmittjoh : this does seem to be a linux kernel limit. It's not the whole path that is too long (like on windows), but the filename itself. 256 characters is the max

schmittjoh commented 10 years ago

What is the limit? Do you have a link to docs on this?

ghost commented 10 years ago

it depends on the filesystem (not just kernel) here's a quick reference:

255 bytes on ext3 and 4 (which are quite common)

http://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits