Test: /ext/standard/tests/bug78042.phpt - Version 7.2.20-dev        

Bug #78042 SplTempFileObject::isReadable() / SplTempFileObject::isWritable() return values
Submitted: 2019-05-20 15:27:19 Modified:
From: phansys Assigned:
Status: Open Package: Filesystem function related
PHP Version: Irrelevant OS: Linux

There are 3 different diffs reported by users for this test.

Count Diff
2 (33%)
026+ bool(false)
027+
028+ Warning: fread(): Length parameter must be greater than 0 in %s/bug78042.php on line 51
027- bool(true)
2 (33%)
026+ bool(false)
027+ bool(false)
028+
029+ Warning: fread(): Length parameter must be greater than 0 in %s/bug78042.php on line 50
027- bool(true)
028- bool(true)
2 (33%)
029+
030+ Fatal error: Uncaught Error: Call to undefined method SplFileInfo::fwrite() in %s/bug78042.php:50
031+ Stack trace:
029- bool(true)
030- bool(true)
031- bool(true)
032+ #0 {main}
033+ thrown in %s/bug78042.php on line 50