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

15 files changed

+11
-1
lines changed

Diff for: build/genif.sh

100644100755
File mode changed.

Diff for: ext/curl/sync-constants.php

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php
23

34
/**

Diff for: ext/fileinfo/fileinfo.php

100644100755
+1
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);

Diff for: ext/hash/bench.php

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php
23

34
/*

Diff for: ext/mbstring/ucgendat/ucgendat.php

100644100755
+1
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

Diff for: ext/mbstring/ucgendat/uctest.php

100644100755
+1
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__;

Diff for: ext/pcre/upgrade-pcre.php

100644100755
+1
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

Diff for: ext/pdo/pdo.php

+1
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');

Diff for: ext/pdo_mysql/get_error_codes.php

100644100755
+1
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;

Diff for: run-tests.php

100644100755
File mode changed.

Diff for: sapi/cli/generate_mime_type_map.php

100644100755
File mode changed.

Diff for: sapi/phpdbg/create-test.php

100644100755
File mode changed.

Diff for: scripts/dev/check_parameters.php

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php
23
/*
34
+----------------------------------------------------------------------+

Diff for: scripts/dev/find_tested.php

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env php
12
<?php
23

34

Diff for: scripts/dev/search_underscores.php

+1-1
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)