com php-src: Merge branch 'PHP-5.6': ext/phar/phar_object.c
| From: | Michael Wallner | Date: | Mon, 30 Mar 2015 14:29:18 +0000 |
| Subject: | com php-src: Merge branch 'PHP-5.6': ext/phar/phar_object.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85948@lists.php.net to get a copy of this message | ||
Commit: 3ec9d9f3b674bd99bfb4655668a16b2476407a4d
Author: Michael Wallner <mike@php.net> Mon, 30 Mar 2015 16:29:18 +0200
Parents: 8994a5eb1da5f6c3d9e16aaaca60bb96ded82c79 b7389f0f0780dd189d73ffb3fd7d8843793f5530
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3ec9d9f3b674bd99bfb4655668a16b2476407a4d
Log:
Merge branch 'PHP-5.6'
* PHP-5.6:
BFN
Fixed bug #64931
Bugs:
https://bugs.php.net/64931
Changed paths:
MM ext/phar/phar_object.c
Diff:
diff --cc ext/phar/phar_object.c
index e276613,8da46c0..67e15c5
--- a/ext/phar/phar_object.c
+++ b/ext/phar/phar_object.c
@@@ -3579,8 -3624,8 +3579,8 @@@ static void phar_add_file(phar_archive_
phar_entry_data *data;
php_stream *contents_file;
- if (filename_len >= sizeof(".phar")-1 && !memcmp(filename,
".phar", sizeof(".phar")-1)) {
+ if (filename_len >= sizeof(".phar")-1 && !memcmp(filename,
".phar", sizeof(".phar")-1) && (filename[5] == '/' ||
filename[5] == '\\' || filename[5] == '\0')) {
- zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Cannot create any
files in magic \".phar\" directory", (*pphar)->fname);
+ zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, "Cannot create any files in magic
\".phar\" directory", (*pphar)->fname);
return;
}