summaryrefslogtreecommitdiff
path: root/ext/posix
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Handle gr_mem misalignment on macosNikita Popov2019-06-201-2/+9
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-171-12/+9
|\ \ \ \ | |/ / /
| * | | Add debug output to posix_getlogin() testNikita Popov2019-06-171-12/+9
| | | |
* | | | Merge branch 'PHP-7.4'Joe Watkins2019-06-051-10/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: fix flaky posix test
| * | | Merge branch 'PHP-7.3' into PHP-7.4Joe Watkins2019-06-051-10/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.3: fix flaky posix test
| | * | Merge branch 'PHP-7.2' into PHP-7.3Joe Watkins2019-06-051-10/+1
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.2: fix flaky posix test
| | | * fix flaky posix testJoe Watkins2019-06-051-10/+1
| | | |
| | | * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1514-14/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. 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-1480-300/+300
| | | |
| | | * Trim trailing whitespace in source code filesPeter Kokot2018-10-131-6/+6
| | | |
| | | * Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-09-042-1/+4
| | | |\
| | | | * Fix bug #75481: makedev warningPeter Kokot2018-09-042-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To use makedev the sys/sysmacros.h needs to be included on newer systems. Cherry-picked from PHP-7.3.
| | * | | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1514-14/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. 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-1480-300/+300
| | | | |
* | | | | Convert fetch_resource warnings into TypeErrorsNikita Popov2019-06-032-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | More type checks that are not part of zpp and should generate a TypeError in PHP 8.
* | | | | Merge branch 'PHP-7.4'Joe Watkins2019-06-011-0/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: skip where no groups available
| * | | | skip where no groups availableJoe Watkins2019-06-011-0/+1
| | | | |
* | | | | Merge branch 'PHP-7.4'Peter Kokot2019-05-121-2/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Normalize comments in *nix build system m4 files
| * | | | Normalize comments in *nix build system m4 filesPeter Kokot2019-05-121-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge branch 'PHP-7.4'Nikita Popov2019-04-101-3/+0
|\ \ \ \ \ | |/ / / /
| * | | | Remove posix_getlogin() check from posix_getpwnam() testNikita Popov2019-04-101-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It doesn't make sense to pass false to posix_getpwnam(). I'm not sure what exactly this is guarding against, but it won't work in this form.
* | | | | Merge branch 'PHP-7.4'Dmitry Stogov2019-03-123-5/+12
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Switch to use ZTS cache
| * | | | Switch to use ZTS cacheDmitry Stogov2019-03-123-5/+12
| | | | |
* | | | | Adjust tests for zpp TypeError changeNikita Popov2019-03-1113-274/+0
| | | | |
* | | | | Merge branch 'PHP-7.4'Peter Kokot2019-03-071-2/+5
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Add AS_HELP_STRING to *nix build configure options
| * | | | Add AS_HELP_STRING to *nix build configure optionsPeter Kokot2019-03-071-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge branch 'PHP-7.4'Nikita Popov2019-03-0524-804/+0
|\ \ \ \ \ | |/ / / /
| * | | | Remove more zpp error testsNikita Popov2019-03-0524-804/+0
| | | | |
* | | | | Merge branch 'PHP-7.4'Peter Kokot2019-03-011-5/+12
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Test for function posix_getpwnam() basic functionality
| * | | | Test for function posix_getpwnam() basic functionalityRodrigo Prado2019-03-011-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The coverage for the function posix_getpwnam() that was not covered yet. http://gcov.php.net/PHP_HEAD/lcov_html/ext/posix/posix.c.gcov.php#1182 Rodrigo Prado de Jesus <royopa [at] gmail [dot] com> User Group: PHPSP #PHPTestFestBrasil
* | | | | Merge branch 'PHP-7.4'Peter Kokot2019-02-141-0/+31
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Add test to function posix_getlogin()
| * | | | Add test to function posix_getlogin()Rodrigo Prado de Jesus2019-02-141-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Increased the coverage lines 587-595 in file ext/posix/posix.c User Groups: PHPVale PHPSP PHPDF PHPWomenBR Hangout presented by #PHPTestFestBrasil on 2017-11-14 https://www.youtube.com/watch?v=bBWkzZEadNo
* | | | | Merge branch 'PHP-7.4'Peter Kokot2019-02-141-0/+28
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Create posix_getpwnam_basic_01.phpt
| * | | | Create posix_getpwnam_basic_01.phptRodrigo Prado2019-02-141-0/+28
| | | | | | | | | | | | | | | | | | | | User Group: PHPSP #phptestfestbrasil
* | | | | Merge branch 'PHP-7.4'Peter Kokot2019-02-141-0/+27
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Add basic test for posix getgrnam
| * | | | Add basic test for posix getgrnamRiccardo Magliocchetti2019-02-141-0/+27
| | | | |
* | | | | Remove $errcontext argument to error handlersNikita Popov2019-02-051-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm removing the argument entirely here, but we might want to change this to passing null or and empty array instead, if the impact of dropping it entirely turns out to be too large. This was deprecated as part of https://wiki.php.net/rfc/deprecations_php_7_2 as a doc-only deprecation.
* | | | Some more test removalsNikita Popov2019-02-053-168/+0
| | | | | | | | | | | | | | | | Noticed these while implementing error handler changes.
* | | | Remove zpp variation testsNikita Popov2019-02-059-1253/+0
| | | |
* | | | Remove local variablesPeter Kokot2019-02-031-9/+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.
* | | | Remove yearly range from copyright noticeZeev Suraski2019-01-302-2/+2
| | | |
* | | | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1519-19/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. 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-1430-61/+61
| | | |
* | | | Trim trailing whitespace in testsGabriel Caruso2018-10-1480-244/+244
| | | |
* | | | Remove __USE_GNU definesNikita Popov2018-09-171-5/+0
|/ / / | | | | | | | | | | | | | | | | | | | | | This is an internal glibc macro, it should not be necessary to use it if we already define _GNU_SOURCE (we do through AC_USE_SYSTEM_EXTENSIONS). Needing to use __USE_GNU generally indicates an inclusion order problem (libc header included before config.h).
* | | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2018-09-012-0/+23
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Fix #75696: posix_getgrnam fails to print details of group
| * | Merge branch 'PHP-7.1' into PHP-7.2Christoph M. Becker2018-09-012-0/+23
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: Fix #75696: posix_getgrnam fails to print details of group
| | * Fix #75696: posix_getgrnam fails to print details of groupChristoph M. Becker2018-09-012-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | According to the POSIX specification of `getgrnam_r()` the result of `sysconf(_SC_GETGR_R_SIZE_MAX)` is an initial value suggested for the size of the buffer, and `ERANGE` signals that insufficient storage was supplied. So if we get `ERANGE`, we try again with a buffer twice as big, and so on, instead of failing.
| * | year++Xinchen Hui2018-01-022-2/+2
| | |
* | | Replace obsolete AC_TRY_FOO with AC_FOO_IFELSEPeter Kokot2018-07-301-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autoconf 2.50 released in 2001 made several macros obsolete including the AC_TRY_RUN, AC_TRY_COMPILE and AC_TRY_LINK: http://git.savannah.gnu.org/cgit/autoconf.git/tree/ChangeLog.2 These macros should be replaced with the current AC_FOO_IFELSE instead: - AC_TRY_RUN with AC_RUN_IFELSE and AC_LANG_SOURCE - AC_TRY_LINK with AC_LINK_IFELSE and AC_LANG_PROGRAM - AC_TRY_COMPILE with AC_COMPILE_IFELSE and AC_LANG_PROGRAM PHP 5.4 to 7.1 require Autoconf 2.59+ version, PHP 7.2 and above require 2.64+ version, and the PHP 7.2 phpize script requires 2.59+ version which are all greater than above mentioned 2.50 version therefore systems should be well supported by now. This patch was created with the help of autoupdate script: autoupdate <file> Reference docs: - https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html - https://www.gnu.org/software/autoconf/manual/autoconf-2.59/autoconf.pdf