php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #51918
Patch phar_restful revision 2012-01-11 18:08 UTC by f at overridelogic dot com

Patch phar_restful for PHAR related Bug #51918

Patch version 2012-01-11 18:08 UTC

Return to Bug #51918 | Download this patch
Patch Revisions:

Developer: f@overridelogic.com

Index: ext/phar/phar_object.c
===================================================================
--- ext/phar/phar_object.c	(revision 322072)
+++ ext/phar/phar_object.c	(working copy)
@@ -680,7 +680,7 @@
 	}
 
 	/* retrieve requested file within phar */
-	if (!(SG(request_info).request_method && SG(request_info).request_uri && (!strcmp(SG(request_info).request_method, "GET") || !strcmp(SG(request_info).request_method, "POST")))) {
+	if (!(SG(request_info).request_method && SG(request_info).request_uri && (!strcmp(SG(request_info).request_method, "GET") || !strcmp(SG(request_info).request_method, "POST") || !strcmp(SG(request_info).request_method, "PUT") || !strcmp(SG(request_info).request_method, "DELETE") || !strcmp(SG(request_info).request_method, "OPTIONS")))) {
 		return;
 	}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC