1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

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`.
This commit is contained in:
Peter Kokot
2018-08-29 20:50:08 +02:00
parent c1f7aae19c
commit 02294f0c84
15 changed files with 11 additions and 1 deletions

0
build/genif.sh Normal file → Executable file
View File

1
ext/curl/sync-constants.php Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/env php
<?php
/**

1
ext/fileinfo/fileinfo.php Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/env php
<?php
if(!extension_loaded('fileinfo')) {
dl('fileinfo.' . PHP_SHLIB_SUFFIX);

1
ext/hash/bench.php Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/env php
<?php
/*

1
ext/mbstring/ucgendat/ucgendat.php Normal file → Executable file
View File

@@ -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

1
ext/mbstring/ucgendat/uctest.php Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/env php
<?php error_reporting(E_ALL);
$dir = __DIR__;

1
ext/pcre/upgrade-pcre.php Normal file → Executable file
View File

@@ -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

View File

@@ -1,3 +1,4 @@
#!/usr/bin/env php
<?php
dl('pdo.so');
dl('pdo_sqlite.so');

1
ext/pdo_mysql/get_error_codes.php Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/env php
<?php
$codes = array();
$maxlen = 0;

0
run-tests.php Normal file → Executable file
View File

0
sapi/cli/generate_mime_type_map.php Normal file → Executable file
View File

0
sapi/phpdbg/create-test.php Normal file → Executable file
View File

1
scripts/dev/check_parameters.php Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/env php
<?php
/*
+----------------------------------------------------------------------+

1
scripts/dev/find_tested.php Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/env php
<?php

View File

@@ -1,4 +1,4 @@
#! /usr/local/bin/php -n
#!/usr/bin/env php
<?php
/*