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

From: Date: Thu, 21 Jun 2018 11:52:55 +0000
Subject: Bug #76510 [NEW]: file_exists() stopped working for phar:// in PHP 7.3
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215831@lists.php.net to get a copy of this message
From:             sebastian
Operating system: Linux
PHP version:      7.3Git-2018-06-21 (Git)
Package:          PHAR related
Bug Type:         Bug
Bug description:file_exists() stopped working for phar:// in PHP 7.3

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 bug report at https://bugs.php.net/bug.php?id=76510&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=76510&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=76510&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=76510&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=76510&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=76510&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=76510&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=76510&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=76510&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=76510&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=76510&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=76510&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=76510&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=76510&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76510&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=76510&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=76510&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=76510&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76510&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=76510&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=76510&r=mysqlcfg



Thread (23 messages)

« previous php.bugs (#215831) next »