diff options
| author | Peter Kokot <peterkokot@gmail.com> | 2018-08-29 20:50:08 +0200 |
|---|---|---|
| committer | Peter Kokot <peterkokot@gmail.com> | 2018-08-29 20:58:17 +0200 |
| commit | 02294f0c84740a2c3fd2d13a4a66544717d778bb (patch) | |
| tree | 3c3fafbc67cbb47bd4232958ceb83872243c49c2 /ext | |
| parent | c1f7aae19cb4096b94663714bf94dce437de23aa (diff) | |
| download | php-git-02294f0c84740a2c3fd2d13a4a66544717d778bb.tar.gz | |
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`.
Diffstat (limited to 'ext')
| -rwxr-xr-x[-rw-r--r--] | ext/curl/sync-constants.php | 1 | ||||
| -rwxr-xr-x[-rw-r--r--] | ext/fileinfo/fileinfo.php | 1 | ||||
| -rwxr-xr-x[-rw-r--r--] | ext/hash/bench.php | 1 | ||||
| -rwxr-xr-x[-rw-r--r--] | ext/mbstring/ucgendat/ucgendat.php | 1 | ||||
| -rwxr-xr-x[-rw-r--r--] | ext/mbstring/ucgendat/uctest.php | 1 | ||||
| -rwxr-xr-x[-rw-r--r--] | ext/pcre/upgrade-pcre.php | 1 | ||||
| -rwxr-xr-x | ext/pdo/pdo.php | 1 | ||||
| -rwxr-xr-x[-rw-r--r--] | ext/pdo_mysql/get_error_codes.php | 1 |
8 files changed, 8 insertions, 0 deletions
diff --git a/ext/curl/sync-constants.php b/ext/curl/sync-constants.php index 093483ed9c..08d2d28460 100644..100755 --- a/ext/curl/sync-constants.php +++ b/ext/curl/sync-constants.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php <?php /** diff --git a/ext/fileinfo/fileinfo.php b/ext/fileinfo/fileinfo.php index 791d03a213..11bb6ed499 100644..100755 --- a/ext/fileinfo/fileinfo.php +++ b/ext/fileinfo/fileinfo.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php <?php if(!extension_loaded('fileinfo')) { dl('fileinfo.' . PHP_SHLIB_SUFFIX); diff --git a/ext/hash/bench.php b/ext/hash/bench.php index eb94cd07f7..4dd5723842 100644..100755 --- a/ext/hash/bench.php +++ b/ext/hash/bench.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php <?php /* diff --git a/ext/mbstring/ucgendat/ucgendat.php b/ext/mbstring/ucgendat/ucgendat.php index 556a8cf98f..43204020a6 100644..100755 --- a/ext/mbstring/ucgendat/ucgendat.php +++ b/ext/mbstring/ucgendat/ucgendat.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php <?php error_reporting(E_ALL); /* This is based on the ucgendat.c file from the OpenLDAP project, licensed diff --git a/ext/mbstring/ucgendat/uctest.php b/ext/mbstring/ucgendat/uctest.php index 62a4e71c5e..5be4a0cd21 100644..100755 --- a/ext/mbstring/ucgendat/uctest.php +++ b/ext/mbstring/ucgendat/uctest.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php <?php error_reporting(E_ALL); $dir = __DIR__; diff --git a/ext/pcre/upgrade-pcre.php b/ext/pcre/upgrade-pcre.php index b0da6cdb44..3b642dfacc 100644..100755 --- a/ext/pcre/upgrade-pcre.php +++ b/ext/pcre/upgrade-pcre.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php <?php // script to upgrade PCRE. just drop the pcre-x.x.tar.xx here and run the script diff --git a/ext/pdo/pdo.php b/ext/pdo/pdo.php index 1008f7bd04..a11cb62b4d 100755 --- a/ext/pdo/pdo.php +++ b/ext/pdo/pdo.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php <?php dl('pdo.so'); dl('pdo_sqlite.so'); diff --git a/ext/pdo_mysql/get_error_codes.php b/ext/pdo_mysql/get_error_codes.php index a1ed85016c..93f523ed20 100644..100755 --- a/ext/pdo_mysql/get_error_codes.php +++ b/ext/pdo_mysql/get_error_codes.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php <?php $codes = array(); $maxlen = 0; |
