Edit report at https://bugs.php.net/bug.php?id=76510&edit=1
ID: 76510
Updated by: cmb@php.net
Reported by: sebastian@php.net
Summary: file_exists() stopped working for phar:// in PHP 7.3
-Status: Open
+Status: Verified
Type: Bug
Package: PHAR related
Operating System: Linux
PHP Version: 7.3Git-2018-06-21 (Git)
Block user comment: N
Private report: N
New Comment:
I can confirm the regression.
Previous Comments:
------------------------------------------------------------------------
[2018-06-21 11:52:54] sebastian@php.net
Description:
------------
https://github.com/sebastianbergmann/phpunit/blob/master/src/TextUI/Command.php#L1179
stopped working in master / PHP 7.3.
The file_exists() call always returns FALSE even if the queried file exists.
Here is how to reproduce the issue:
$ git clone https://github.com/sebastianbergmann/phpunit.git
$ cd phpunit
$ composer update
$ cd tests/_files/phpunit-example-extension
$ php-72 ../../../phpunit
PHPUnit 7.3-gee3ee1aee by Sebastian Bergmann and contributors.
Runtime: PHP 7.2.7-dev
Configuration: /usr/local/src/phpunit/tests/_files/phpunit-example-extension/phpunit.xml
Extension: phpunit/phpunit-example-extension 3.0.3
. 1 / 1 (100%)
Time: 39 ms, Memory: 4.00MB
OK (1 test, 1 assertion)
$ php-73 ../../../phpunit
Fatal error: Trait 'PHPUnit\ExampleExtension\TestCaseTrait' not found in
/usr/local/src/phpunit/tests/_files/phpunit-example-extension/tests/OneTest.php on line 15
In my environment, php-72 and php-73 are aliases:
$ php-72 --version
PHP 7.2.7-dev (cli) (built: Jun 12 2018 08:02:44) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
$ php-73 --version
PHP 7.3.0-dev (cli) (built: Jun 21 2018 14:23:45) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76510&edit=1