]> granicus.if.org Git - php/commit
Fix bug #78138: opcache.validate_permission incorrectly works with PHAR files
authorAlex Scott <alex@cgi-central.net>
Tue, 11 Jun 2019 14:31:07 +0000 (18:31 +0400)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 2 Jul 2019 10:25:50 +0000 (12:25 +0200)
commita4acff3e21778e8d1f635cf74611b1c13de5ee2a
tree9d7faba1218604cd118d0ca18a5f375146e36049
parent57688ad7bff7e769078d1e670a65853635d31a71
Fix bug #78138: opcache.validate_permission incorrectly works with PHAR files

opcache incorrectly handles PHAR files when opcache.validate_permission
option enabled, because it calls

  access("phar://path-to/file.phar/path/inside.php", R_OK);

rather than

  access("path-to/file.phar", R_OK)
ext/opcache/ZendAccelerator.c