summaryrefslogtreecommitdiff
path: root/scripts/dev
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove phpextdistPeter Kokot2019-05-061-27/+0
| | | | | | | | This script hasn't been used since using PEAR as a package manager for PHP extensions since it is using Makefile.in as an indicator if the current directory is extension. Instead of this script extensions can be packaged differently and more properly with either current PEAR or with some other manual method.
* Simplify checking of *nix build toolsPeter Kokot2019-04-291-4/+0
| | | | | | | | | The buildmk.stamp file has been created by the *nix build checking step to run the check step only once. Instead of poluting the project root directory, the stamp file can be also omitted. Performance difference is very minimal to not justify having the stamp check at all today anymore. This patch integrates the buildcheck.sh to buildconf script directly.
* Refactor PHP_PROG_BISON and PHP_PROG_RE2CPeter Kokot2019-03-302-55/+96
| | | | | | | | | | | | | | | | | This patch refactors these macros to also checks for the required given versions of bison and re2c. - PHP_PROG_RE2C and PHP_PROG_BISON take optional args - minmimum version required, and bison also excluded versions. - Instead of caching values this uses manual checking and messaging outputs. - It looks like the minimum version of RE2C 0.13.4 is working ok so far. The genfiles script improvements: - Add make override in genfiles - Move checkings from makedist to genfiles - Refactored output messages - Various minor enhancements
* Upgrade deprecated directives and use non-posix bisonPeter Kokot2019-03-191-1/+1
| | | | | | | | | | With Bison 3.0 some directives are deprecated: - %name-prefix "x" should be %define api.prefix {x} - %error-verbose should be %define parse.error verbose Bison 3.3 also started emiting more warnings and since PHP souce parsers are not POSIX compliant this patch fixes this as pointed out via 495a46aa1dc564656bf919cb49aae48a31ae15f4.
* Leave bundled generated files untouchedPeter Kokot2019-03-182-14/+0
| | | | | | When building lexer and parser files leave bundled files untouched as are tracked in the Git. *.orig files also don't need to be cleaned anymore.
* Move distribution generator script to scripts/devPeter Kokot2019-03-162-0/+258
| | | | | | | | | | | The more proper place for shell scripts dedicated for development, and releasing PHP should be the scripts/dev directory. Having a cleaner root project directory helps find the main README.md and files relevant to install PHP. These scripts are also used by the release managers mostly who create release packages and aren't used often by the majority of developers working on and installing PHP.
* Make credits script executable from other pathsPeter Kokot2019-03-161-0/+6
|
* Support passing single file to bless_tests.phpNikita Popov2019-02-201-8/+21
| | | | Or a mix of multiple directories/files. Also make the file executable.
* Handle exception patterns in bless_tests.phpNikita Popov2019-02-181-1/+3
|
* Move some scripts from root directory to scripts/dev/Peter Kokot2019-02-162-0/+14
| | | | | | | | At the time of this commit, there is a dedicated folder for development related tools and such scripts might fit better there to not bloat the project root directory too much. Move snapshot to scripts/dev/snapshot
* Add bless_tests.phpNikita Popov2019-02-111-0/+49
| | | | Helper script to perform certain kinds of trivial test updates.
* Remove yearly range from copyright noticeZeev Suraski2019-01-302-2/+2
|
* Avoid mention of php7 in credits scriptNikita Popov2019-01-281-3/+3
|
* Remove some obsolete config_vars.mk occurrencesPeter Kokot2018-10-161-1/+1
| | | | | The `config_vars.mk` file was a part of previous *nix build system and has been removed via 9d9d39a0de3bec962c343051011f5a2ed7d7b242.
* Sync leading and final newlines in source code filesPeter Kokot2018-10-142-2/+0
| | | | | | | | | | | | | | | | | | | | | | 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-132-10/+10
|
* Make PHP development tools files and scripts executablePeter Kokot2018-08-293-1/+3
| | | | | | | | | | 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`.
* Merge branch 'PHP-7.3'Christoph M. Becker2018-08-251-0/+0
|\ | | | | | | | | * PHP-7.3: Remove some old parts of the php
| * Remove some old parts of the phpPeter Kokot2018-08-251-0/+0
| | | | | | | | | | | | Since ba138a3746b3077ebe5b7356b5b49f21cfc30438 the generate-phpt library has been unbundled from the php-src. This patch cleans two remaining parts.
* | Fix some misspellingsGabriel Caruso2018-08-121-1/+1
|/
* Remove unused Git attributes identPeter Kokot2018-07-251-3/+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.
* Removed the generated-tests library, this is a left Zöe's phpruntests ↵Kalle Sommer Nielsen2018-07-2377-2827/+0
| | | | | | repository it seems and never fully implemented. The only times this part of the code has been touched throughout the years has been minor PRs and entire php-src grep commits. If anything this belongs to the phpruntests.git repository.
* [ci skip] Remove trailing WSChristoph M. Becker2018-06-051-5/+5
| | | | | | | | Since commit 2238403 removed respective trailing WS in files generated by this script, we remove the trailing WS in the first place, to avoid further mundane merge conflicts. [1] http://git.php.net/?p=php-src.git;a=commit;h=2238403892ccf87143a59814538d9f764509d9e7
* Fix some misspellingsGabriel Caruso2018-02-061-1/+1
|
* Simplify returns in generate-phptGabriel Caruso2018-01-266-43/+17
|
* Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2018-01-032-3/+3
|\ | | | | | | | | * PHP-7.1: Happy new year (Update copyright to 2018)
| * Happy new year (Update copyright to 2018)Lior Kaplan2018-01-022-3/+3
| |
* | Set default value for some properties in generate-phptDanilo Correa2017-12-131-2/+2
|/
* fix stub to accept user properlyJoe Watkins2017-01-091-1/+1
|
* More check_parameters improvementsNikita Popov2015-10-021-23/+37
| | | | | | | | | * Switch default REPORT_LEVEL to 1 to cut down on the noise * Make initialization of 'C' variable always required * Don't require init of lLdb variable if ! is used * Don't throw error about missing init of not detected parameters (This was a regression in the last changeset) * Support method_parameters and throw variations
* More check_parameters improvementsNikita Popov2015-10-011-11/+23
| | | | | | | | * Allow / on everything but lLdb (on which it will work, but makes no sense). * For ! on lLdb add additional zend_bool* parameter. * For optional s and p only require one of the variables to be initialized. The length is usually not initialized.
* Update scripts/dev/check_parameters.php for PHP 7Sean DuBois2015-10-011-40/+22
| | | | | Also fix deprecation errors and move from preg_replace -> preg_replace_callback.
* one new line too muchAnatol Belski2015-08-201-1/+1
|
* use the bare tarball filename for the stub, no path elementsAnatol Belski2015-08-191-2/+2
|
* Merge branch 'pull-request/1454'Christoph M. Becker2015-08-131-3/+9
|\ | | | | | | | | * pull-request/1454: Docs for find_tested.php
| * Docs for find_tested.phpNikhil Vimal2015-08-041-3/+9
| | | | | | Initial Pass, also fixing the extra space before the extract_tests function name to keep with standards.
* | make use of PHPROOT for possible mkdist integrationAnatol Belski2015-08-101-2/+5
| |
* | make scripts/dev/gen_verify_stub executableAnatol Belski2015-08-101-0/+0
| |
* | initial add verification stub generatorAnatol Belski2015-08-101-0/+48
|/
* Revert "Fix arginfo for built-in engine functions"Dmitry Stogov2015-06-221-74/+0
| | | | This reverts commit d2356541d0386e3f0b6d593e2cc046ced68ff050.
* Revert "Fix genarginfo to respect by-ref passing"Dmitry Stogov2015-06-221-12/+4
| | | | This reverts commit db6990a91b2ca931074b29886c7f7819b14bb021.
* Fix genarginfo to respect by-ref passingBob Weinand2015-06-221-4/+12
|
* Fix arginfo for built-in engine functionsRasmus Lerdorf2015-06-211-0/+74
|
* typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-191-0/+0
|
* Merge branch 'master' into issue-67910Florian MARGAINE2014-09-202-2/+2
|\ | | | | | | | | | | Conflicts: README.PARAMETER_PARSING_API ext/gmp/tests/001.phpt
| * s/PHP 5/PHP 7/Johannes Schlüter2014-09-192-2/+2
| |
* | Replaces php5 with php7, without whitespace changes.Florian MARGAINE2014-09-201-3/+3
|/
* Merge branch 'PHP-5.5' into PHP-5.6Lior Kaplan2014-08-171-1/+1
|\ | | | | | | | | * PHP-5.5: typofixes
| * typofixesVeres Lajos2014-08-171-1/+1
| |
* | Merge branch 'PHP-5.5'Stanislav Malyshev2013-08-042-1/+1
|\ \ | |/ | | | | | | * PHP-5.5: non living code related typo fixes