Bug #77992 [Opn]: Assertion failure in file cache when unserializing empty try_catch_array

From: Date: Wed, 08 May 2019 12:34:41 +0000
Subject: Bug #77992 [Opn]: Assertion failure in file cache when unserializing empty try_catch_array
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220780@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77992&edit=1

 ID:                 77992
 Updated by:         cmb@php.net
 Reported by:        v-huli4 at microsoft dot com
 Summary:            Assertion failure in file cache when unserializing
                     empty try_catch_array
 Status:             Open
 Type:               Bug
 Package:            opcache
 Operating System:   Windows
 PHP Version:        7.3.5
 Block user comment: N
 Private report:     N

 New Comment:

Thanks for reporting this issue!

Indeed, this test case can't work on Windows because /tmp isn't
available there.


Previous Comments:
------------------------------------------------------------------------
[2019-05-08 11:52:04] 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


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=77992&edit=1


Thread (3 messages)

« previous php.bugs (#220780) next »