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

From: Date: Fri, 29 Jun 2018 08:52:30 +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-216032@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:             Open
 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:

Before that I update the phpunit repository did composer update.


Previous Comments:
------------------------------------------------------------------------
[2018-06-29 08:51:18] dc dot link at yahoo dot fr

Did this

git fetch --prune
git reset --hard
git clean -xdf
git checkout master
git rebase origin/master

./buildconf --force
./configure --prefix=/tmp/PHP --disable-cgi --enable-opcache --enable-opcache-file --with-zlib
--with-xsl=/usr --enable-mbstring --enable-bcmath --with-gmp --with-openssl --with-bz2 --enable-soap
--enable-intl --enable-pcntl --with-tidy --with-curl --enable-zip --with-readline --without-pear
--enable-phpdbg

/tmp/PHP/bin/php ../../../phpunit
PHPUnit 7.3-g11d92ae06 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: 386 ms, Memory: 4.00MB

OK (1 test, 1 assertion)

------------------------------------------------------------------------
[2018-06-28 16:58:50] sebastian@php.net

In case it matters, here is how I build PHP 7.3:

git fetch --prune
git reset --hard
git clean -xdf
git checkout master
git rebase origin/master

./buildconf --force
./configure --prefix=/usr/local/php-7.3 --disable-cgi --enable-opcache --enable-opcache-file
--with-zlib --with-xsl=/usr --enable-mbstring --enable-bcmath --with-gmp --with-openssl --with-bz2
--enable-soap --enable-intl --enable-pcntl --with-tidy --with-curl --enable-zip --with-readline
--without-pear --enable-phpdbg
make -j5
make install

------------------------------------------------------------------------
[2018-06-28 15:41:22] cmb@php.net

I tried with 2ff26bdf7370fff79d743c390e23cd9f477c855d (which
shouldn't make any difference), and some different configurations,
but the reproducer always lets the test succeed, now.

------------------------------------------------------------------------
[2018-06-28 12:42:07] sebastian@php.net

Using the commands provided in the original ticket, I can still reproduce the problem with
95a71caab1dad8e0092f672723dc9020dff8263d.

------------------------------------------------------------------------
[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?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=76510


--
Edit this bug report at https://bugs.php.net/bug.php?id=76510&edit=1


Thread (23 messages)

« previous php.bugs (#216032) next »