]> granicus.if.org Git - php/commit
run-tests: remove use of FILE_BINARY constant
authorGerard Roche <gerardroche@users.noreply.github.com>
Tue, 12 May 2020 09:07:18 +0000 (10:07 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 12 May 2020 14:59:25 +0000 (16:59 +0200)
commit16f23cd1590115c035549cbb0cfcb9ed9e22edbc
tree705a3e07ddc96cd30e07bd4365bf7bf665c068c7
parentf07fbfb8a9129b5031201936d3e5c0e53445b28e
run-tests: remove use of FILE_BINARY constant

The FILE_BINARY (and FILE_TEXT) constants are not really valid or useful
constants. It looks like they were added in 5.2.7 and have "no effect,
and are only available for forward compatibility."

See: https://www.php.net/manual/en/filesystem.constants.php

The default value of the file_put_contents() flags parameter is 0 and
FILE_BINARY is set to 0, so removing it doesn't change functionality.

P.S. Maybe those constants should be deprecated or removed in 8.0.

Closes GH-5556.
run-tests.php