Skip to content

Conversation

scottchiefbaker
Copy link

This patch addresses https://bugs.php.net/bug.php?id=69292 by creating a new routing method in error.php that handles file downloads by serving up files directly using http://www.mirror.com/download/filename.ext. This preserves all the original download methods, so existing links will not be affected.

This patch also remaps the file download page to give out the new /download/ style links.

wget downloads will now output the correct filename.

@scottchiefbaker
Copy link
Author

Any comments on this?

@bjori
Copy link
Member

bjori commented Apr 15, 2015

This feels like it could break some absurd things.
We might as well take the bullet and fix the url properly (and keep these /from/foo/bar/mirror for bc)....
Unsure what do here really.

@scottchiefbaker
Copy link
Author

I tried really hard with this page to NOT break backwards compatibility. This introduces a new download method, and maintains the old download method. I tried to go for the best of both worlds. What are you concerned it would break?

@scottchiefbaker
Copy link
Author

Any updates on this? It really should be 100% backwards compatible.

@bjori
Copy link
Member

bjori commented Jun 8, 2015

this is not backwards compatible no.

from/this/mirror is no longer support at all -- which is a huge bc break -- why do you think its 100% backwards compatible?

@scottchiefbaker
Copy link
Author

scottchiefbaker commented Jun 8, 2015

/from/this/mirror is totally still in the code:

https://github.com/scottchiefbaker/web-php/blob/master/error.php#L157

I purposely did not touch any of that code. I simply added a NEW method to handle wget friendly links:

https://github.com/scottchiefbaker/web-php/blob/master/error.php#L136

It might make more sense to put the new method in the other download method but the code already had a ton of options/exceptions so I separated it.

@php-pulls php-pulls force-pushed the master branch 2 times, most recently from 711310c to 2e0b117 Compare August 9, 2015 00:06
@scottchiefbaker
Copy link
Author

Where do we stand on this? I just did a wget of the new PHP release and I got:

2017-04-13 14:06:22 (42.0 MB/s) - ‘mirror’ saved [15011816/15011816]

a mirror file instead of the php-7.1.3.tar.bz2 that would be more appropriate?.

@scottchiefbaker
Copy link
Author

scottchiefbaker commented Jun 14, 2017

bjori I just did wget on a new version of PHP and I get a "mirror" instead of php-7.1.6.tar.bz2 file again because we haven't fixed this bug yet. Can you comment on the status of this please?

@petk
Copy link
Member

petk commented Oct 13, 2017

I haven't tested this but this would be very useful new feature for php.net indeed...

@scottchiefbaker
Copy link
Author

@bjori where do stand on this? Issue has been open for three years now.

@php-pulls
Copy link

Comment on behalf of salathe at php.net:

Let's put this one to bed.

@php-pulls php-pulls closed this Mar 14, 2018
@scottchiefbaker
Copy link
Author

@php-pulls I'm not sure what your comment means. Is this issue getting addressed? Or is this a WONTFIX.

@salathe
Copy link
Contributor

salathe commented Mar 15, 2018

Won't fix.

@scottchiefbaker
Copy link
Author

@salathe can you elaborate on why this isn't getting fixed?

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

Successfully merging this pull request may close these issues.

5 participants