summaryrefslogtreecommitdiff
path: root/ext/sysvsem
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-8.0'Nikita Popov2021-02-161-0/+1
|\ | | | | | | | | * PHP-8.0: Mark resource-like objects as non-comparable
| * Mark resource-like objects as non-comparableNikita Popov2021-02-161-0/+1
| | | | | | | | | | | | | | As these hold on to some internal resource, there can't be two "equal" objects with different identity. Make sure the lack of public properties doesn't result in these being treated as always equal.
* | Improve class entry generationMáté Kocsis2021-02-161-2/+1
| | | | | | | | Related to GH-6701
* | Generate class entries for snmp, soap, sockets, sodium, sqlite3, sysv*, tidyMáté Kocsis2021-02-153-6/+16
| | | | | | | | Closes GH-6696
* | Replace zend_bool uses with boolNikita Popov2021-01-151-2/+2
|/ | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* Review parameter names in ext/sysvsemMáté Kocsis2020-10-012-5/+5
| | | | Closes GH-6248
* Run tidyNikita Popov2020-09-182-2/+2
| | | | | This should fix most of the remaining issues with tabs and spaces being mixed in tests.
* Change int parameter types to bool when the parameter behaves as boolMáté Kocsis2020-09-173-9/+7
| | | | Closes GH-6148
* Remove proto comments from C filesMax Semenik2020-07-061-16/+8
| | | | Closes GH-5758
* Replace EXPECTF when possibleFabien Villepinte2020-06-292-7/+2
| | | | Closes GH-5779
* Add flag to forbid dynamic property creation on internal classesNikita Popov2020-06-241-1/+1
| | | | | | | | | | | | | | | | | | | While performing resource -> object migrations, we're adding defensive classes that are final, non-serializable and non-clonable (unless they are, of course). This path adds a ZEND_ACC_NO_DYNAMIC_PROPERTIES flag, that also forbids the creation of dynamic properties on these objects. This is a subset of #3931 and targeted at internal usage only (though may be extended to userland at some point in the future). It's already possible to achieve this (what the removed WeakRef/WeakMap code does), but there's some caveats: First, this simple approach is only possible if the class has no declared properties, otherwise it's necessary to special-case those properties. Second, it's easy to make it overly strict, e.g. by forbidding isset($obj->prop) as well. And finally, it requires a lot of boilerplate code for each class. Closes GH-5572.
* Include stub hash in generated arginfo filesNikita Popov2020-06-241-1/+2
| | | | | | | | | | | | The hash is used to check whether the arginfo file needs to be regenerated. PHP-Parser will only be downloaded if this is actually necessary. This ensures that release artifacts will never try to regenerate stubs and thus fetch PHP-Parser, as long as you do not modify any files. Closes GH-5739.
* Convert resource to object in Sysvshm extensionMáté Kocsis2020-06-161-7/+7
| | | | Closes GH-5499
* Fix [-Wundef] warning in Sysvsem extensionGeorge Peter Banyard2020-05-182-2/+2
|
* Fix use-after-free in sysvsemNikita Popov2020-05-111-5/+5
|
* Rename the recently introduced Sysvsem class to SysvSemaphoreMáté Kocsis2020-05-073-16/+16
|
* Remove out-dated commentsChristoph M. Becker2020-05-061-8/+0
|
* Convert resource to object in ext/sysvsemMáté Kocsis2020-05-066-97/+117
| | | | Closes GH-5508
* Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-4/+4
| | | | | | | Closes GH-5353. From now on, PHP will have reflection information about default values of parameters of internal functions. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* Generate function entries for another batch of extensionsMáté Kocsis2020-04-053-12/+18
| | | | Closes GH-5352
* Reindent phpt filesNikita Popov2020-02-032-84/+84
|
* Make error messages more consistent by fixing capitalizationMáté Kocsis2020-01-171-9/+9
| | | | Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
* Use RETURN_THROWS() after zend_fetch_resource*()Máté Kocsis2020-01-031-2/+2
|
* Use RETURN_THROWS() during ZPP in most of the extensionsMáté Kocsis2019-12-311-4/+4
| | | | Except for some bigger ones: reflection, sodium, spl
* Cleanup return values when parameter parsing is unsuccessfulMáté Kocsis2019-10-301-1/+1
|
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-252-4/+0
| | | | Closes GH-4732.
* Added arginfo stubs for sysvsemStephen Reay2019-08-123-22/+42
| | | | Closes GH-4523.
* 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
* 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-033-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
|
* fix typo in sysvsem.cΥоаnn B2018-10-231-1/+1
|
* Replace obsolete AC_TRY_FOO with AC_FOO_IFELSEPeter Kokot2018-07-301-4/+2
| | | | | | | | | | | | | | | | | | | | | | | 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
* 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.
* 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-39/+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
* Resolve conflictSammy Kaye Powers2017-01-031-1/+5
|\
| * Fix for nowait.phpt failing intermittentlyMitch Hagstrand2017-01-021-1/+5
| | | | | | | | | | | | | | The parent process was releasing the child semaphore after the child process continued execution. Now the child semaphore is released before the child process continues execution.
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-022-2/+2
|/
* Fix nowait.phpt to no longer depend on sleepingMitch Hagstrand2017-01-021-65/+92
| | | | | | | In Travis CI the nowait.phpt test sometimes fails because of the usleep() not being long enough ensure proper execution order. Instead of depending on sleeping the test now uses two semaphores to guarantee execution order.
* Added ZEND_ATTRIBUTE_FORMAT to some middind functions.Dmitry Stogov2016-06-211-8/+8
| | | | | "%p" replaced by ZEND_LONG_FMT to avoid compilation warnings. Fixed most incorrect use cases of format specifiers.
* 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
| |
* | 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-4/+4
| |