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

From: Date: Thu, 28 Jun 2018 12:42:09 +0000
Subject: Bug #76510 [Fbk]: file_exists() stopped working for phar:// in PHP 7.3
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216013@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 Updated by: sebastian@php.net Reported by: sebastian@php.net Summary: file_exists() stopped working for phar:// in PHP 7.3 Status: Feedback Type: Bug Package: PHAR related Operating System: Linux PHP Version: 7.3Git-2018-06-21 (Git) Assigned To: cmb Block user comment: N Private report: N New Comment: Using the commands provided in the original ticket, I can still reproduce the problem with 95a71caab1dad8e0092f672723dc9020dff8263d. Previous Comments: ------------------------------------------------------------------------ [2018-06-28 12:30:25] cmb@php.net Indeed, it appears to work now. Has there been an update to any of the other requirements besides PHP? ------------------------------------------------------------------------ [2018-06-25 10:38:06] dc dot link at yahoo dot fr 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) ------------------------------------------------------------------------ [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 (#216013) next »