Skip to content

Commit bada204

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
2 parents ee137a7 + f1a8138 commit bada204

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 7.3.8
44

5+
- Opcache:
6+
. Fixed bug #78106 (Path resolution fails if opcache disabled during request).
7+
(Nikita)
58

69
27 Jun 2019, PHP 7.3.7
710

ext/opcache/ZendAccelerator.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2360,7 +2360,6 @@ static void accel_activate(void)
23602360
zend_alter_ini_entry_chars(key, "0", 1, ZEND_INI_SYSTEM, ZEND_INI_STAGE_RUNTIME);
23612361
zend_string_release_ex(key, 0);
23622362
zend_accel_error(ACCEL_LOG_WARNING, "Can't cache files in chroot() directory with too big inode");
2363-
ZCG(accelerator_enabled) = 0;
23642363
return;
23652364
}
23662365
}

ext/opcache/tests/bug78106.phpt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
2-
Bug #78106: PHP Fatal error: Uncaught Error: Class 'Phpfastcache\Config\Config' not found
3-
--XFAIL--
4-
Not fixed yet
2+
Bug #78106: Path resolution fails if opcache disabled during request
53
--FILE--
64
<?php
75

ext/opcache/zend_accelerator_module.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ static ZEND_INI_MH(OnEnable)
240240
return FAILURE;
241241
} else {
242242
*p = 0;
243+
ZCG(accelerator_enabled) = 0;
243244
return SUCCESS;
244245
}
245246
}

0 commit comments

Comments
 (0)