Bug #76510 [Com]: file_exists() stopped working for phar:// in PHP 7.3

From: Date: Mon, 25 Jun 2018 10:38:07 +0000
Subject: Bug #76510 [Com]: file_exists() stopped working for phar:// in PHP 7.3
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215967@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76510&edit=1 ID: 76510 Comment by: dc dot link at yahoo dot fr Reported by: sebastian@php.net Summary: file_exists() stopped working for phar:// in PHP 7.3 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 stumbled upon this ticket and tried to reproduce myself with php master : ~/Contribs/php-src/sapi/cli/php ../../../phpunit PHPUnit 7.3-g2e9ab306f by Sebastian Bergmann and contributors. Runtime: PHP 7.3.0-dev Configuration: /home/test/Contribs/php-src/phpunit/tests/_files/phpunit-example-extension/phpunit.xml Extension: phpunit/phpunit-example-extension 3.0.3 . 1 / 1 (100%) Time: 512 ms, Memory: 4.00MB OK (1 test, 1 assertion) Previous Comments: ------------------------------------------------------------------------ [2018-06-21 15:31:21] cmb@php.net I can confirm the regression. ------------------------------------------------------------------------ [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

« previous php.bugs (#215967) next »