php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77992 Assertion failure in file cache when unserializing empty try_catch_array
Submitted: 2019-05-08 11:52 UTC Modified: 2019-05-21 09:57 UTC
From: v-huli4 at microsoft dot com Assigned: cmb (profile)
Status: Closed Package: Testing related
PHP Version: 7.3.5 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: v-huli4 at microsoft dot com
New email:
PHP Version: OS:

 

 [2019-05-08 11:52 UTC] v-huli4 at microsoft dot com
Description:
------------
test ext\opcache\tests\bug76275.phpt fails when enabling opcache, across all builds of 7.1.29, 7.2.18 and 7.3.5

The test output gives a warning saying opcache.file_cache must be a full path of accessible directory, but actually the php.ini does set it as a good directory. The test report mentioned unserializing failure as title, also show below:
d:\PHP-TP\rt\7.3.5>d:\php-rt\7.3.5\nts\x64-opcache-on\php.exe run-test.php -p d:\php-rt\7.3.5\nts\x64-opcache-on\php.exe ext\opcache\tests\bug76275.phpt

=====================================================================
PHP         : d:\php-rt\7.3.5\nts\x64-opcache-on\php.exe
PHP_SAPI    : cli
PHP_VERSION : 7.3.5
ZEND_VERSION: 3.3.5
PHP_OS      : WINNT - Windows NT HOLLYLI-T440 10.0 build 17763 (Windows 10) AMD64
INI actual  : D:\PHP-RT\7.3.5\nts\x64-opcache-on\php.ini
More .INIs  :
CWD         : d:\PHP-TP\rt\7.3.5
Extra dirs  :
VALGRIND    : Not used
=====================================================================
Running selected tests.
FAIL Bug #76275: Assertion failure in file cache when unserializing empty try_catch_array [D:\PHP-TP\rt\7.3.5\ext\opcache\tests\bug76275.phpt]
=====================================================================
Number of tests :    1                 1
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    1 (100.0%) (100.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #76275: Assertion failure in file cache when unserializing empty try_catch_array [D:\PHP-TP\rt\7.3.5\ext\opcache\tests\bug76275.phpt]
=====================================================================

Test script:
---------------
d:\php-rt\7.3.5\nts\x64-opcache-on\php.exe run-test.php -p d:\php-rt\7.3.5\nts\x64-opcache-on\php.exe ext\opcache\tests\bug76275.phpt

Expected result:
----------------
Done

Actual result:
--------------
Wed May  8 04:39:57 2019 (15088): Warning opcache.file_cache must be a full path of accessible directory.

Done

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-05-08 12:34 UTC] cmb@php.net
Thanks for reporting this issue!

Indeed, this test case can't work on Windows because /tmp isn't
available there.
 [2019-05-21 09:57 UTC] cmb@php.net
-Status: Open +Status: Closed -Package: opcache +Package: Testing related -Assigned To: +Assigned To: cmb
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 10 15:01:28 2024 UTC