com php-src: Make PHP development tools files executable: Zend/zend_vm_gen.php ext/fileinfo/create_data_file .php
ext/standard/html_tables/html_table_gen.php

From: Date: Sun, 16 Sep 2018 22:02:36 +0000
Subject: com php-src: Make PHP development tools files executable: Zend/zend_vm_gen.php ext/fileinfo/create_data_file .php
ext/standard/html_tables/html_table_gen.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-103124@lists.php.net to get a copy of this message
Commit: 03bbdf275a7ed627f178160c91f7b101900f9b82 Author: Peter Kokot <peterkokot@gmail.com> Mon, 17 Sep 2018 00:02:36 +0200 Parents: c9884354d2984933625ed2fd38817dafd5888870 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=03bbdf275a7ed627f178160c91f7b101900f9b82 Log: Make PHP development tools files executable This patch makes few remaining PHP development tools files executable and adds a shebang to them. 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. Shebang is not visible in the output of the generated file. Changed paths: M Zend/zend_vm_gen.php M ext/fileinfo/create_data_file.php M ext/standard/html_tables/html_table_gen.php Diff: diff --git a/Zend/zend_vm_gen.php b/Zend/zend_vm_gen.php old mode 100644 new mode 100755 index 383b0cb..6c69737 --- a/Zend/zend_vm_gen.php +++ b/Zend/zend_vm_gen.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php <?php /* +----------------------------------------------------------------------+ diff --git a/ext/fileinfo/create_data_file.php b/ext/fileinfo/create_data_file.php old mode 100644 new mode 100755 index bf1f563..c1284c6 --- a/ext/fileinfo/create_data_file.php +++ b/ext/fileinfo/create_data_file.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php /* This is a generated file, do not modify */ /* Usage: php create_data_file.php /path/to/magic.mgc > data_file.c */ <?php diff --git a/ext/standard/html_tables/html_table_gen.php b/ext/standard/html_tables/html_table_gen.php old mode 100644 new mode 100755 index 5d7a006..a1c4763 --- a/ext/standard/html_tables/html_table_gen.php +++ b/ext/standard/html_tables/html_table_gen.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php <?php /* +----------------------------------------------------------------------+

« previous php.cvs (#103124) next »