Skip to content

Commit 02294f0

Browse files
committed
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`.
1 parent c1f7aae commit 02294f0

File tree

15 files changed

+11
-1
lines changed

15 files changed

+11
-1
lines changed

build/genif.sh

100644100755
File mode changed.

ext/curl/sync-constants.php

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php
23

34
/**

ext/fileinfo/fileinfo.php

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php
23
if(!extension_loaded('fileinfo')) {
34
dl('fileinfo.' . PHP_SHLIB_SUFFIX);

ext/hash/bench.php

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php
23

34
/*

ext/mbstring/ucgendat/ucgendat.php

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php error_reporting(E_ALL);
23

34
/* This is based on the ucgendat.c file from the OpenLDAP project, licensed

ext/mbstring/ucgendat/uctest.php

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php error_reporting(E_ALL);
23

34
$dir = __DIR__;

ext/pcre/upgrade-pcre.php

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php
23

34
// script to upgrade PCRE. just drop the pcre-x.x.tar.xx here and run the script

ext/pdo/pdo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php
23
dl('pdo.so');
34
dl('pdo_sqlite.so');

ext/pdo_mysql/get_error_codes.php

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php
23
$codes = array();
34
$maxlen = 0;

run-tests.php

100644100755
File mode changed.

sapi/cli/generate_mime_type_map.php

100644100755
File mode changed.

sapi/phpdbg/create-test.php

100644100755
File mode changed.

scripts/dev/check_parameters.php

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php
23
/*
34
+----------------------------------------------------------------------+

scripts/dev/find_tested.php

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php
23

34

scripts/dev/search_underscores.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/local/bin/php -n
1+
#!/usr/bin/env php
22
<?php
33

44
/*

0 commit comments

Comments
 (0)