summaryrefslogtreecommitdiff
path: root/ext/sysvshm
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-151-2/+2
|
* Add AS_HELP_STRING to *nix build configure optionsPeter Kokot2019-03-071-2/+4
| | | | | | | | 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-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-154-6/+0
| | | | | | | | | | | | | | | | | | | | | | | 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 testsGabriel Caruso2018-10-149-9/+9
|
* 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
* Remove unused Git attributes identPeter Kokot2018-07-253-7/+1
| | | | | | | | | | | | | | | 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.
* Sync sysvsem and sysvshm versions in phpinfoPeter Kokot2018-06-032-1/+13
| | | | | | This patch removes the versions of the sysvsem and sysvshm extensions in the phpinfo output to sync them with PHP core and bundled extensions versions displayed. Instead it displays the extension enabled status.
* Use bool instead of boolean while throwing a type errorGabriel Caruso2018-02-041-2/+2
| | | | | | | | | | PHP requires boolean typehints to be written "bool" and disallows "boolean" as an alias. This changes the error messages to match the actual type name and avoids confusing messages like "must be of type boolean, boolean given". This a followup to ce1d69a1f6dcf15d43029301059c25e5bc09a577, which implements the same change for integer->int.
* Use int instead of integer in type errorsGabriel Caruso2018-02-046-11/+11
| | | | | | | PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
* year++Xinchen Hui2018-01-022-2/+2
|
* Move constants into read-only data segmentDmitry Stogov2017-12-141-1/+1
|
* Get rid of all these old package[2].xml files, most of these had no had a ↵Kalle Sommer Nielsen2017-08-171-40/+0
| | | | | | release since PHP4, or any release at all in close to 10 years, some even did not have a package registered at pecl OCI, PDO_OCI and zip are left as they are actively developed and released there
* Update copyright headers to 2017Sammy Kaye Powers2017-01-022-2/+2
|
* fix formatAnatol Belski2016-08-181-1/+1
|
* Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-08-181-1/+1
|\ | | | | | | | | * PHP-7.0: fix test
| * fix testAnatol Belski2016-08-181-1/+1
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-08-181-0/+20
|\ \ | |/ | | | | | | * PHP-7.0: Fixed bug #72858 shm_attach null dereference
| * Fixed bug #72858 shm_attach null dereferenceAnatol Belski2016-08-181-0/+20
| |
* | Fixed compilation warningsDmitry Stogov2016-06-231-1/+1
| |
* | Added ZEND_ATTRIBUTE_FORMAT to some middind functions.Dmitry Stogov2016-06-211-6/+6
| | | | | | | | | | "%p" replaced by ZEND_LONG_FMT to avoid compilation warnings. Fixed most incorrect use cases of format specifiers.
* | Merge branch 'PHP-7.0'Lior Kaplan2016-01-012-2/+2
|\ \ | |/ | | | | | | | | | | * PHP-7.0: Update header to PHP Version 7 Happy new year (Update copyright to 2016) Happy new year (Update copyright to 2016)
| * Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-012-2/+2
| |\ | | | | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| | * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-012-2/+2
| | |
| | * bump yearXinchen Hui2015-01-152-2/+2
| | |
* | | replace typedef by an appropriate includeAnatol Belski2015-10-101-1/+1
|/ /
* | add testAnatol Belski2015-09-221-0/+22
| |
* | Fixed bug #70546 (ext/sysvshm: two broken tests on Solaris) by rainer.jungXinchen Hui2015-09-222-3/+1
| |
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-1/+1
| | | | | | | | semantick changes).
* | Windows support for sysvshmKalle Sommer Nielsen2015-04-229-9/+47
| | | | | | | | | | | | | | A little background: * key_t is an int, like ext/shmop * There is no ftok() (from ext/standard), so tests have a new check to see whether or not it is available. This however means that the 7 tests will all be skipped for Windows. I know we cannot properly implement an ftok() function since there is no inodes for NTFS, maybe we should look into using the GetFileInfoByHandle() or similar to use the system unique ID for a file to get the same functionality, Anatol? * Despite the lack of phpt's, local testing works flawlessly but we better look into a solution for this if we are to keep this patch
* | cleanup mod version macros and mod defs, round xAnatol Belski2015-03-232-1/+4
| |
* | Cleanup resource handling APIsXinchen Hui2015-02-021-3/+7
| |
* | bump yearXinchen Hui2015-01-152-2/+2
| |
* | trailing whitespace removalStanislav Malyshev2015-01-102-22/+22
| |
* | Use "float" and "integer" in typehint and zpp errorsAndrea Faulds2014-12-211-1/+1
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-20/+20
| |
* | Move smart_str implementation into Zend/Nikita Popov2014-09-211-1/+1
| | | | | | | | | | | | | | | | So we can use it there as well... For now I've retained the zend_smart_str_public.h header, though it would probably be better to just move that one struct into zend_types.h.
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-192-2/+2
| |
* | master renames phase 1Anatol Belski2014-08-252-33/+33
| |
* | fixed sysvshmAnatol Belski2014-08-202-5/+5
| |
* | port sysvshm, sysvsem and sysvmsgAnatol Belski2014-08-192-32/+32
| |
* | basic macro replacements, all at onceAnatol Belski2014-08-191-2/+2
| |
* | In most user extensions functions like mysql_close() should use ↵Dmitry Stogov2014-05-131-1/+1
| | | | | | | | zend_list_close() instead of zend_list_delete(). This closes the actual connection and frees extension specific data structures, but doesn't free zend_reference structure that might be referenced from zval(s). This also doesn't decrement the resource reference counter.
* | Refactor sysvsem, sysvshm, sysmsgXinchen Hui2014-05-093-10/+10
|/
* Bump yearXinchen Hui2014-01-032-2/+2
|
* Happy New YearXinchen Hui2013-01-012-2/+2
|
* - Year++Felipe Pena2012-01-012-2/+2
|
* Fixed bug #55750 (memory copy issue in sysvshm extension).Ilia Alshanetsky2011-10-031-1/+1
|