com php-src: Make PHP development tools files and scripts executable: build/genif.sh ext/curl/sync-constants.php ext/fileinfo/fileinfo.php
ext/hash/bench.php ext/mbstring/ucgendat/ucgendat.php ext/mbstring/ucgendat/uctest.php ext/pcre/upgrade-pcre.php ext/pdo/pdo.php
ext/pdo_mysql/get_error_codes.php run-tests.php s api/cli/generate_mime_type_map.php sapi/phpdbg/create -test.php scripts/dev/check_parameters.php
scripts/de v/find_tested.php scripts/d

From: Date: Wed, 29 Aug 2018 18:58:17 +0000
Subject: com php-src: Make PHP development tools files and scripts executable: build/genif.sh ext/curl/sync-constants.php ext/fileinfo/fileinfo.php
ext/hash/bench.php ext/mbstring/ucgendat/ucgendat.php ext/mbstring/ucgendat/uctest.php ext/pcre/upgrade-pcre.php ext/pdo/pdo.php
ext/pdo_mysql/get_error_codes.php run-tests.php s api/cli/generate_mime_type_map.php sapi/phpdbg/create -test.php scripts/dev/check_parameters.php
scripts/de v/find_tested.php scripts/d
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102930@lists.php.net to get a copy of this message
Commit: 02294f0c84740a2c3fd2d13a4a66544717d778bb Author: Peter Kokot <peterkokot@gmail.com> Wed, 29 Aug 2018 20:50:08 +0200 Parents: c1f7aae19cb4096b94663714bf94dce437de23aa Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=02294f0c84740a2c3fd2d13a4a66544717d778bb Log: 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. Changed paths: M build/genif.sh M ext/curl/sync-constants.php M ext/fileinfo/fileinfo.php M ext/hash/bench.php M ext/mbstring/ucgendat/ucgendat.php M ext/mbstring/ucgendat/uctest.php M ext/pcre/upgrade-pcre.php M ext/pdo/pdo.php M ext/pdo_mysql/get_error_codes.php M run-tests.php M sapi/cli/generate_mime_type_map.php M sapi/phpdbg/create-test.php M scripts/dev/check_parameters.php M scripts/dev/find_tested.php M scripts/dev/search_underscores.php Diff: 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 093483e..08d2d28 --- 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 old mode 100644 new mode 100755 index 791d03a..11bb6ed --- 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 old mode 100644 new mode 100755 index eb94cd0..4dd5723 --- 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 old mode 100644 new mode 100755 index 556a8cf..4320402 --- 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 old mode 100644 new mode 100755 index 62a4e71..5be4a0c --- 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 old mode 100644 new mode 100755 index b0da6cd..3b642df --- 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 1008f7b..a11cb62 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 old mode 100644 new mode 100755 index a1ed850..93f523e --- 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; diff --git a/run-tests.php b/run-tests.php old mode 100644 new mode 100755 diff --git a/sapi/cli/generate_mime_type_map.php b/sapi/cli/generate_mime_type_map.php old mode 100644 new mode 100755 diff --git a/sapi/phpdbg/create-test.php b/sapi/phpdbg/create-test.php old mode 100644 new mode 100755 diff --git a/scripts/dev/check_parameters.php b/scripts/dev/check_parameters.php old mode 100644 new mode 100755 index a9c58f8..bab7ed9 --- a/scripts/dev/check_parameters.php +++ b/scripts/dev/check_parameters.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php <?php /* +----------------------------------------------------------------------+ diff --git a/scripts/dev/find_tested.php b/scripts/dev/find_tested.php old mode 100644 new mode 100755 index 4e1e2a3..33d53d8 --- a/scripts/dev/find_tested.php +++ b/scripts/dev/find_tested.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php <?php diff --git a/scripts/dev/search_underscores.php b/scripts/dev/search_underscores.php index 23db7dd..cac1a5d 100755 --- a/scripts/dev/search_underscores.php +++ b/scripts/dev/search_underscores.php @@ -1,4 +1,4 @@ -#! /usr/local/bin/php -n +#!/usr/bin/env php <?php /*

« previous php.cvs (#102930) next »