Bug #78386 [NEW]: fstat mode has unexpected value on PHP 7.4

From: Date: Thu, 08 Aug 2019 20:01:22 +0000
Subject: Bug #78386 [NEW]: fstat mode has unexpected value on PHP 7.4
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222143@lists.php.net to get a copy of this message
From: theodorejb at outlook dot com Operating system: Windows 10 PHP version: 7.4.0beta2 Package: Filesystem function related Bug Type: Bug Bug description:fstat mode has unexpected value on PHP 7.4 Description: ------------ PHP 7.4 beta 2 returns a different fstat mode value for file pointers than PHP 7.3. This is causing functionality in Slim-Psr7 to break. Test script: --------------- <?php $handle = popen('echo 12', 'r'); $stats = fstat($handle); var_dump($stats['mode']); // PHP 7.3 prints 4096, PHP 7.4 beta 2 prints 33206 $isPipe = ($stats['mode'] & 0010000) !== 0; var_dump($isPipe); // PHP 7.3 prints true, PHP 7.4 beta 2 prints false -- Edit bug report at https://bugs.php.net/bug.php?id=78386&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78386&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78386&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78386&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78386&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78386&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78386&r=support Expected behavior: https://bugs.php.net/fix.php?id=78386&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78386&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78386&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78386&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78386&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78386&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78386&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78386&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78386&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78386&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78386&r=mysqlcfg

« previous php.bugs (#222143) next »