From 02294f0c84740a2c3fd2d13a4a66544717d778bb Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Wed, 29 Aug 2018 20:50:08 +0200 Subject: [PATCH] Make PHP development tools files and scripts executable This patch makes several scripts and PHP development tools files executable and adds more proper shebangs to the PHP scripts. The `#!/usr/bin/env php` shebang provides running the script via `./script.php` and uses env to find PHP script location on the system. At the same time it still provides running the script with a user defined PHP location using `php script.php`. --- build/genif.sh | 0 ext/curl/sync-constants.php | 1 + ext/fileinfo/fileinfo.php | 1 + ext/hash/bench.php | 1 + ext/mbstring/ucgendat/ucgendat.php | 1 + ext/mbstring/ucgendat/uctest.php | 1 + ext/pcre/upgrade-pcre.php | 1 + ext/pdo/pdo.php | 1 + ext/pdo_mysql/get_error_codes.php | 1 + run-tests.php | 0 sapi/cli/generate_mime_type_map.php | 0 sapi/phpdbg/create-test.php | 0 scripts/dev/check_parameters.php | 1 + scripts/dev/find_tested.php | 1 + scripts/dev/search_underscores.php | 2 +- 15 files changed, 11 insertions(+), 1 deletion(-) mode change 100644 => 100755 build/genif.sh mode change 100644 => 100755 ext/curl/sync-constants.php mode change 100644 => 100755 ext/fileinfo/fileinfo.php mode change 100644 => 100755 ext/hash/bench.php mode change 100644 => 100755 ext/mbstring/ucgendat/ucgendat.php mode change 100644 => 100755 ext/mbstring/ucgendat/uctest.php mode change 100644 => 100755 ext/pcre/upgrade-pcre.php mode change 100644 => 100755 ext/pdo_mysql/get_error_codes.php mode change 100644 => 100755 run-tests.php mode change 100644 => 100755 sapi/cli/generate_mime_type_map.php mode change 100644 => 100755 sapi/phpdbg/create-test.php mode change 100644 => 100755 scripts/dev/check_parameters.php mode change 100644 => 100755 scripts/dev/find_tested.php diff --git a/build/genif.sh b/build/genif.sh old mode 100644 new mode 100755 diff --git a/ext/curl/sync-constants.php b/ext/curl/sync-constants.php old mode 100644 new mode 100755 index 093483ed9c..08d2d28460 --- a/ext/curl/sync-constants.php +++ b/ext/curl/sync-constants.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php