|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patch bug63070.patch for APC Bug #63070Patch version 2012-09-13 08:28 UTC Return to Bug #63070 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions: 2012-09-13 08:28 UTC | 2012-09-13 08:28 UTC | 2012-09-12 06:48 UTC | 2012-09-12 06:29 UTCDeveloper: laruence@php.net
zval *freeop1 = NULL;
zval *inc_filename = NULL, tmp_inc_filename;
- char realpath[MAXPATHLEN] = {0};
php_stream_wrapper *wrapper;
char *path_for_open;
- char *path_for_open;
- char *full_path = NULL;
+ char *path_for_open, realpath[MAXPATHLEN];
int ret = 0;
apc_opflags_t* flags = NULL;
@@ -153,7 +151,7 @@
wrapper = php_stream_locate_url_wrapper(Z_STRVAL_P(inc_filename), &path_for_open, 0 TSRMLS_CC);
- if (wrapper != &php_plain_files_wrapper || !(IS_ABSOLUTE_PATH(path_for_open, strlen(path_for_open)) || (full_path = expand_filepath(path_for_open, realpath TSRMLS_CC)))) {
+ if (wrapper != &php_plain_files_wrapper || !IS_ABSOLUTE_PATH(path_for_open, strlen(path_for_open))) {
+ if (wrapper != &php_plain_files_wrapper || !IS_ABSOLUTE_PATH(path_for_open, strlen(path_for_open)) || !VCWD_REALPATH(path_for_open, realpath)) {
/* Fallback to original handler */
if (inc_filename == &tmp_inc_filename) {
zval_dtor(&tmp_inc_filename);
@@ -161,9 +159,6 @@
|
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jun 11 20:00:01 2026 UTC |