php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78727 Undefined index: scripts
Submitted: 2019-10-22 19:32 UTC Modified: 2019-10-23 17:35 UTC
From: v-altruo at microsoft dot com Assigned:
Status: Closed Package: Testing related
PHP Version: 7.4.0RC4 OS: Windows Server 2012 R2
Private report: No CVE-ID: None
 [2019-10-22 19:32 UTC] v-altruo at microsoft dot com
Description:
------------
Test seems to fail only on this windows operating system for x86 TS build.

Failed Test: ext\opcache\tests\blacklist-win32.phpt

Expected result:
----------------
Array
(
    [0] => %c:\path\to\foo
    [1] => %c:\path\to\foo2
    [2] => %c:\path\to\bar
    [3] => __DIR__\blacklist.inc
    [4] => __DIR__\current.php
    [5] => %scurrent.php
    [6] => %scurrent.php
)
ok
1

Actual result:
--------------
Array
(
    [0] => C:\path\to\foo
    [1] => C:\path\to\foo2
    [2] => C:\path\to\bar
    [3] => __DIR__\blacklist.inc
    [4] => __DIR__\current.php
    [5] => C:\phpbuilds\php-7.4.0RC4\php-test-pack-7.4.0RC4\ext\opcache\tests\current.php
    [6] => C:\phpbuilds\php-7.4.0RC4\php-test-pack-7.4.0RC4\ext\opcache\tests\current.php
)
ok

Notice: Undefined index: scripts in C:\..\php-test-pack-7.4.0RC4\ext\opcache\tests\blacklist-win32.php on line 9

Warning: count(): Parameter must be an array or an object that implements Countable in C:\..\php-test-pack-7.4.0RC4\ext\opcache\tests\blacklist-win32.php on line 9

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-10-22 21:46 UTC] v-altruo at microsoft dot com
Test also fails (same output) for windows server 2019. However, for all builds whenever opcache is enabled.
 [2019-10-23 17:35 UTC] v-altruo at microsoft dot com
-Status: Open +Status: Closed
 [2019-10-23 17:35 UTC] v-altruo at microsoft dot com
Re-downloaded 7.4.0RC4 build and tested again. Test passes now.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Apr 10 20:01:24 2021 UTC