summaryrefslogtreecommitdiff
path: root/ext/skeleton
Commit message (Collapse)AuthorAgeFilesLines
* Rename skeleton stub fileNikita Popov2020-01-061-0/+0
| | | | Add the .php suffix
* Convert the example skeleton extension to use arginfo stubsCraig Duncan2019-11-182-10/+6
|
* ext/skeleton: Update use of PHP_CHECK_LIBRARYHugh McMaster2019-06-031-10/+10
| | | | Closes GH-4218.
* Normalize comments in *nix build system m4 filesPeter Kokot2019-05-121-4/+4
| | | | | | | | | Normalization include: - Use dnl for everything that can be ommitted when configure is built in favor of the shell comment character # which is visible in the output. - Line length normalized to 80 columns - Dots for most of the one line sentences - Macro definitions include similar pattern header comments now
* Disable checking for library in ext skeletonPeter Kokot2019-05-101-8/+8
|
* Update the extension template file to use PKG_CHECK_MODULESHugh McMaster2019-05-091-18/+28
|
* Always use pkg-config from the host architectureHugh McMaster2019-04-291-1/+0
|
* Add AS_HELP_STRING to *nix build configure optionsPeter Kokot2019-03-071-6/+9
| | | | | | | | The Autoconf's default AS_HELP_STRING macro can properly format help strings [1] so watching out if columns are aligned manually is not anymore. [1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
* Remove local variablesPeter Kokot2019-02-032-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* skeleton: support PHP 7.2Vincent JARDIN2019-01-021-0/+7
| | | | | | | | | | | | | skeleton can still be leveraged with older PHP releases, including PHP 7.2. I wanted to add this capability since PHP 7.2 is still widely provided with most Linux distributions. I am using ext_skel.php on a vanilla Ubuntu 18.04 and Windows in order to illustrate how to develop a PHP extension for both OS using the default tools provided by the distributions. see: https://github.com/vjardin/php-bonjour
* Merge branch 'PHP-7.2' into PHP-7.3Peter Kokot2018-10-191-1/+0
|\ | | | | | | | | | | | | * PHP-7.2: [ci skip] Update NEWS [ci skip] Update NEWS Fix #77035: The phpize and ./configure create redundant .deps file
| * Trim trailing whitespace in *.phptPeter Kokot2018-10-141-1/+1
| |
| * Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* | Trim trailing whitespace in *.phptPeter Kokot2018-10-143-3/+3
| |
* | Sync leading and final newlines in source code filesPeter Kokot2018-10-143-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* | Trim trailing whitespace in source code filesPeter Kokot2018-10-131-1/+1
| |
* | Remove unused Git attributes identPeter Kokot2018-07-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* | improve extension skeleton generatorPedro Magalhães2018-02-222-0/+112
| |
* | Move constants into read-only data segmentDmitry Stogov2017-12-141-1/+1
| |
* | Added missing config.x.in files for ext_skelKalle Sommer Nielsen2017-08-112-0/+14
| |
* | Redesigned ext_skel to be written entirely in PHP with no dependencies, this ↵Kalle Sommer Nielsen2017-07-239-484/+105
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | means it will now run on Windows without Cygwin and other nonsense. It no longer includes a way to generate XML documentation (the PHP documentation utilities already got tools for that in svn under phpdoc/doc-base) and it no longer support function stubs. $ php ext_skel.php --help php ext_skel.php --ext=<name> [--experimental] [--author=<name>] [--dir=<path>] [--std] [--onlyunix] [--onlywindows] [--help] --ext=<name> The name of the extension defined as <name> --experimental Passed if this extension is experimental, this creates the EXPERIMENTAL file in the root of the extension --author=<name> Your name, this is used if --header is passed and for the CREDITS file --dir=<path> Path to the directory for where extension should be created. Defaults to the directory of where this script lives --std If passed, the standard header and vim rules footer used in extensions that is included in the core, will be used --onlyunix Only generate configure scripts for Unix --onlywindows Only generate configure scripts for Windows --help This help Example usage: $ php ext_skel.php --ext test --std --experimental $ php ext_skel.php --ext kalle --author "Kalle Sommer Nielsen" $ php ext_skel.php --ext phpfi --dir "/home/kalle/dev/" --onlyunix
* awk: syntax errorthink2016-11-261-3/+3
| | | awk version 20070501
* Move semicolon into TSRMLS_CACHE_EXTERN/DEFINENikita Popov2016-03-032-2/+2
| | | | Also re bug #71575.
* Remove TSRMLS_* from code, they are not used anymoreStanislav Malyshev2016-02-171-1/+1
|
* switch to the unified globals accessor where appropriateAnatol Belski2015-07-291-6/+2
|
* Merge branch 'pull-request/1235'Stanislav Malyshev2015-04-181-4/+3
|\ | | | | | | | | | | * pull-request/1235: modify skeleton confirm_extname_compiled modify skeleton.c function
| * modify skeleton confirm_extname_compiled王星星2015-04-121-3/+2
| |
| * modify skeleton.c function王星星2015-04-121-1/+1
|/
* made ZEND_TSRMLS_CACHE_* macros look like function callsAnatol Belski2015-02-162-3/+3
| | | | which also comply with the current semantics for such macros
* Fix the most obvious issues here.Rasmus Lerdorf2015-01-201-2/+2
| | | | There are other problems though
* trailing whitespace removalStanislav Malyshev2015-01-102-6/+6
|
* integrated the static tsrmls cache into ext/skelAnatol Belski2014-12-172-8/+12
|
* second shot on removing TSRMLS_*Anatol Belski2014-12-141-2/+2
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-1/+1
|
* removed *.dsw and *.dsp filesAnatol Belski2014-09-281-113/+0
|
* Replaces php5 with php7, without whitespace changes.Florian MARGAINE2014-09-202-5/+5
|
* first show to make 's' work with size_tAnatol Belski2014-08-271-1/+1
|
* master renames phase 1Anatol Belski2014-08-251-1/+1
|
* fixes to ext/skeletonAnatol Belski2014-08-191-1/+1
|
* There is memleakXinchen Hui2014-05-081-1/+3
|
* update skeletonkrakjoe2014-05-081-1/+1
|
* fixed skeleton to produce the normalized ext version macrosAnatol Belski2013-10-142-1/+3
| | | | See http://news.php.net/php.pecl.dev/11191 for more info.
* Slightly modernize ext_skel and sekelton/Johannes Schlüter2013-07-172-70/+56
| | | | | | | | | - .svnignore ->.gitignore - Add .gitignore entries for DSO stand-alone builds stuff - Docs don't use CVS but SVN - reorder extname.c file so it needs less forward declarations - take forward declarations out of php_extname.h - Drop #if for 12 years old PHP version compatibility
* Fix typoCarson McDonald2013-04-051-1/+1
|
* Replace $Revision$ with $Id$ in keyword expansion enable filesDavid Soria Parra2012-03-201-1/+1
|
* - Make usage of new PHP_FE_END macroFelipe Pena2011-07-251-1/+1
|
* MFH: New way for check void parametersFelipe Pena2008-03-101-1/+1
|
* Improved PHP binary size and startup speed with GCC4 visibility control (Nuno)Dmitry Stogov2008-01-301-2/+4
|
* Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)Dmitry Stogov2007-09-271-1/+1
|
* - Avoid sprintf, even when checked copy'n'paste or changes lead to errorsMarcus Boerger2007-02-241-3/+3
|