com php-src: fix incompatible pointer: ext/opcache/ZendAccelerator.c

From: Date: Thu, 05 Mar 2015 11:01:27 +0000
Subject: com php-src: fix incompatible pointer: ext/opcache/ZendAccelerator.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85252@lists.php.net to get a copy of this message
Commit: 45fb8b517c2b5dd15bf87205f930f9b7d807bcb8 Author: Anatol Belski <ab@php.net> Thu, 5 Mar 2015 08:41:50 +0100 Parents: 2f88a2d52001e707e5ce6f49473e3f0ca2ceee3a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=45fb8b517c2b5dd15bf87205f930f9b7d807bcb8 Log: fix incompatible pointer Changed paths: M ext/opcache/ZendAccelerator.c Diff: diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index efd0be4..a1e7d9c 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -703,7 +703,7 @@ static accel_time_t zend_get_file_handle_timestamp_win(zend_file_handle *file_ha utc_base = (((unsigned __int64)utc_base_ft.dwHighDateTime) << 32) + utc_base_ft.dwLowDateTime; } - if (GetFileAttributesEx(file_handle->opened_path, GetFileExInfoStandard, &fdata) != 0) { + if (file_handle->opened_path && GetFileAttributesEx(file_handle->opened_path->val, GetFileExInfoStandard, &fdata) != 0) { unsigned __int64 ftime; if (CompareFileTime (&fdata.ftLastWriteTime, &utc_base_ft) < 0) {

« previous php.cvs (#85252) next »