Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-08 Thread Ferenc Kovacs
2013.01.08. 6:48, Pierre Joye pierre@gmail.com ezt írta: hi, On Mon, Jan 7, 2013 at 10:22 PM, Ferenc Kovacs tyr...@gmail.com wrote: is this about allowing the user to shot him/herself in the foot, or adding this feature could potentially break some existing functionality (eg. new

Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-08 Thread Nicolai Scheer
Hi! On 8 January 2013 06:48, Pierre Joye pierre@gmail.com wrote: hi, On Mon, Jan 7, 2013 at 10:22 PM, Ferenc Kovacs tyr...@gmail.com wrote: is this about allowing the user to shot him/herself in the foot, or adding this feature could potentially break some existing functionality

Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-08 Thread Pierre Joye
hi, On Tue, Jan 8, 2013 at 2:24 PM, Nicolai Scheer nicolai.sch...@gmail.com wrote: What do you think? As I stated earlier, doing so is like opening the pandora box. I would rather go with mounted directory and the likes to reduce the length of the path, as long as it is possible. Cheers, --

Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-08 Thread Nicolai Scheer
Hi! On 8 January 2013 14:27, Pierre Joye pierre@gmail.com wrote: hi, On Tue, Jan 8, 2013 at 2:24 PM, Nicolai Scheer nicolai.sch...@gmail.com wrote: What do you think? As I stated earlier, doing so is like opening the pandora box. I would rather go with mounted directory and the

Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-08 Thread Pierre Joye
On Tue, Jan 8, 2013 at 2:38 PM, Nicolai Scheer nicolai.sch...@gmail.com wrote: I agree, but what about pandora and the other file functions like unlink() etc.? :) They currently do not prevent such long and prefixed paths... A bug then, should be fixed. Yes, you don't want to hear that but...

Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-08 Thread Nicolai Scheer
Hi! On 8 January 2013 14:40, Pierre Joye pierre@gmail.com wrote: On Tue, Jan 8, 2013 at 2:38 PM, Nicolai Scheer nicolai.sch...@gmail.com wrote: I agree, but what about pandora and the other file functions like unlink() etc.? :) They currently do not prevent such long and prefixed

Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-08 Thread Nicolai Scheer
Hi again! On 8 January 2013 14:56, Nicolai Scheer nicolai.sch...@gmail.com wrote: Do you have any advice how I can move lill' pandora to an extension? Of course I might copy the complete simple_file_wrapper, but I'd rather not do it that way... I did not find any add standard stream context

Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-08 Thread Pierre Joye
On Tue, Jan 8, 2013 at 10:06 PM, Nicolai Scheer nicolai.sch...@gmail.com wrote: Hi again! On 8 January 2013 14:56, Nicolai Scheer nicolai.sch...@gmail.com wrote: Do you have any advice how I can move lill' pandora to an extension? Of course I might copy the complete simple_file_wrapper,

Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-07 Thread Jordi Boggiano
On 07.01.2013 18:30, Nicolai Scheer wrote: Any comment is much appreciated, if I can help implementing this feature, let me know. I can't really comment on the feasibility, but from having seen many people stumble upon problems with too long paths over the years (recent framework development

Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-07 Thread Pierre Joye
hi, On Mon, Jan 7, 2013 at 6:30 PM, Nicolai Scheer sc...@planetavent.de wrote: Out of the urgent need to access files with a path longer than MAX_PATH on Windows, I started some research. At first I thought it might be a good idea to write my own stream wrapper extension (e.g.

Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-07 Thread Martin Jansen
On 07.01.13 20:14, Pierre Joye wrote: functions. Next major version (6) will support unicode filenames, which will solve the 255 chars horrible limitation. I thought the Unicode effort was abandoned long time ago. You sound like someone is still actively working on it? - Martin -- PHP

Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-07 Thread Pierre Joye
On Mon, Jan 7, 2013 at 8:22 PM, Martin Jansen mar...@divbyzero.net wrote: On 07.01.13 20:14, Pierre Joye wrote: functions. Next major version (6) will support unicode filenames, which will solve the 255 chars horrible limitation. I thought the Unicode effort was abandoned long time ago. You

Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-07 Thread Ferenc Kovacs
It would be indeed nice if the \\?\ prefix was not needed in userspace and php would do the work. But just for now I really would like to see php support for long paths on windows at all. To my mind the changes needed for the prefix workaround are function is minimal-invasive. Correct

Re: [PHP-DEV] File-Paths exceeding MAX_PATH on Windows

2013-01-07 Thread Pierre Joye
hi, On Mon, Jan 7, 2013 at 10:22 PM, Ferenc Kovacs tyr...@gmail.com wrote: is this about allowing the user to shot him/herself in the foot, or adding this feature could potentially break some existing functionality (eg. new trick to bypass open_basedir, etc.)? All of them, as the paths are