mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Merge branch 'PHP-7.0'
* PHP-7.0: More verbose error messages
This commit is contained in:
commit
78fb8118ec
@ -1283,9 +1283,16 @@ zend_persistent_script *zend_file_cache_script_load(zend_file_handle *file_handl
|
||||
}
|
||||
|
||||
/* verify header */
|
||||
if (memcmp(info.magic, "OPCACHE", 8) != 0 ||
|
||||
memcmp(info.system_id, ZCG(system_id), 32) != 0) {
|
||||
zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot read from file '%s'\n", filename);
|
||||
if (memcmp(info.magic, "OPCACHE", 8) != 0) {
|
||||
zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot read from file '%s' (wrong header)\n", filename);
|
||||
zend_file_cache_flock(fd, LOCK_UN);
|
||||
close(fd);
|
||||
unlink(filename);
|
||||
efree(filename);
|
||||
return NULL;
|
||||
}
|
||||
if (memcmp(info.system_id, ZCG(system_id), 32) != 0) {
|
||||
zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot read from file '%s' (wrong \"system_id\")\n", filename);
|
||||
zend_file_cache_flock(fd, LOCK_UN);
|
||||
close(fd);
|
||||
unlink(filename);
|
||||
|
Loading…
Reference in New Issue
Block a user