summaryrefslogtreecommitdiff
path: root/ext/enchant
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-8.0'Nikita Popov2021-02-161-0/+2
|\ | | | | | | | | * PHP-8.0: Mark resource-like objects as non-comparable
| * Mark resource-like objects as non-comparableNikita Popov2021-02-161-0/+2
| | | | | | | | | | | | | | 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-3/+2
| | | | | | | | Related to GH-6701
* | Implicitly enable function entry generation when class entry generation is ↵Máté Kocsis2021-02-092-5/+2
| | | | | | | | | | | | enabled Closes GH-6675
* | Generate class entries from stubs for another batch of extensionsMáté Kocsis2021-02-083-10/+32
|/ | | | Closes GH-6669
* Review parameter names in ext/enchantMáté Kocsis2020-10-022-28/+28
| | | | Closes GH-6258
* Run tidyNikita Popov2020-09-183-18/+18
| | | | | This should fix most of the remaining issues with tabs and spaces being mixed in tests.
* Promote warning to exception in ext/enchantMáté Kocsis2020-08-241-2/+2
| | | | Closes GH-6022
* Throw ValueError on empty tag in enchant_broker_request_dict()George Peter Banyard2020-07-312-2/+22
|
* Add a few missing parameter types in stubsMáté Kocsis2020-07-302-1/+2
| | | | Related to GH-5627
* Remove proto comments from C filesMax Semenik2020-07-061-50/+25
| | | | Closes GH-5758
* Remove leftover debug commentNikita Popov2020-07-021-1/+1
|
* Skip enchant test under asanNikita Popov2020-07-022-1/+2
| | | | | There is a known memory leak here: https://bugs.launchpad.net/ubuntu/+source/enchant/+bug/305468
* Replace EXPECTF when possibleFabien Villepinte2020-06-291-1/+1
| | | | Closes GH-5779
* Add flag to forbid dynamic property creation on internal classesNikita Popov2020-06-241-2/+2
| | | | | | | | | | | | | | | | | | | 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.
* Remove outdated PHPDoc from ext/enchant's stubMáté Kocsis2020-06-231-2/+0
|
* Call zpp in enchant_broker_*_dict_path with libenchant-2Nikita Popov2020-06-181-22/+7
| | | | | Even if the function is a dummy, we still need to call zpp to comply with arginfo.
* Convert enchant resources to opaque objectsMáté Kocsis2020-05-2930-289/+335
| | | | | | | Additionally, deprecate ENCHANT_MYSPELL and ENCHANT_ISPELL constants. Closes GH-5577 Co-authored-by: Remi Collet <remi@php.net>
* Return empty array instead of null from enchant APIsNikita Popov2020-05-273-15/+8
| | | | Closes GH-5566.
* Revert "convert enchant resources to objects of new classes - EnchantBroker ↵Remi Collet2020-05-1332-618/+282
| | | | | | - EnchantDict add OO interface deprecate enchant_broker_free* (use unset instead) deprecate ENCHANT_MYSPELL and ENCHANT_ISPELL constants" This reverts commit 7db4c24a37c96b3961cb1989ab71941e115b0fac.
* Revert "add myself as enchant maintainer"Remi Collet2020-05-131-1/+1
| | | | This reverts commit f987219c69360aa2f9364f826c71ef6a1c78f7d9.
* convert enchant resources to objects of new classes - EnchantBroker - ↵Remi Collet2020-05-1332-282/+618
| | | | EnchantDict add OO interface deprecate enchant_broker_free* (use unset instead) deprecate ENCHANT_MYSPELL and ENCHANT_ISPELL constants
* add myself as enchant maintainerRemi Collet2020-05-061-1/+1
|
* Fix enchant stubChristoph M. Becker2020-05-062-3/+3
|
* enchant: bump license versionRemi Collet2020-05-062-6/+6
|
* Fix UNKNOWN default values in various extensionsMáté Kocsis2020-05-053-3/+3
| | | | Closes GH-5514
* Use libenchant2 if available on WindowsChristoph M. Becker2020-05-041-7/+17
| | | | | | This is basically the same as commit 3427545[1], but for Windows. [1] <http://git.php.net/?p=php-src.git;a=commitdiff;h=342754575237da912874f781a24eefe76434ce5a>
* Use libenchant-2 when availableRemi Collet2020-05-041-16/+28
|
* remove deprecated call and deprecate function to be removed in libenchant v2Remi Collet2020-04-3011-31/+74
| | | | add LIBENCHANT_VERSION constant
* Generate function entries from stubs for a couple of extensionsMáté Kocsis2020-04-044-54/+52
| | | | Closes GH-5347
* Merge branch 'PHP-7.4'Christoph M. Becker2020-02-281-10/+6
|\ | | | | | | | | * PHP-7.4: Fix #79311: enchant_dict_suggest() fails on big endian architecture
| * Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-02-281-10/+6
| |\ | | | | | | | | | | | | * PHP-7.3: Fix #79311: enchant_dict_suggest() fails on big endian architecture
| | * Fix #79311: enchant_dict_suggest() fails on big endian architectureChristoph M. Becker2020-02-281-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For obvious reasons, we must not assign a `size_t` value to an `int` variable using memcpy(). However, there is actually no need for the intermediate `n_sugg_st` here, if we use the proper types in the first place. A regression test is not necessary, because dict_suggest.phpt already exhibits the erroneous behavior on big endian architectures.
| | * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-151-1/+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 *.phptPeter Kokot2018-10-1422-83/+83
| | |
| | * Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+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
* | | Reindent phpt filesNikita Popov2020-02-035-14/+14
| | |
* | | Fix #78880 Another roundMáté Kocsis2020-01-191-1/+1
| | |
* | | Use RETURN_THROWS() in various placesMáté Kocsis2020-01-031-1/+1
| | |
* | | Use ZEND_THROWS() during ZPP in the GD, gettext, GMP, and hash extensionsMáté Kocsis2019-12-311-1/+1
| | |
* | | Use ZEND_THROWS() during ZPP in enchant, exif, fileinfo, filter, and FTP ↵Máté Kocsis2019-12-311-21/+21
| | | | | | | | | | | | extensions
* | | Add union return types for function stubsMáté Kocsis2019-11-112-12/+6
| | |
* | | Merge branch 'PHP-7.4'Fabien Villepinte2019-10-191-1/+1
|\ \ \ | |/ /
| * | Fix proto of enchant_broker_list_dicts()Fabien Villepinte2019-10-191-1/+1
| | |
* | | Fix grammar in skipif messagesFabien Villepinte2019-10-1217-17/+17
| | |
* | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-252-4/+0
| | | | | | | | | | | | Closes GH-4732.
* | | Don't explicitly set return value on ZPP failureChristoph M. Becker2019-08-161-20/+20
| | | | | | | | | | | | | | | Failing ZPP throws as of PHP 8.0.0, so explicitly setting a return value is useless, and also slightly confusing.
* | | creating stubs for echant extVictor Gazotti2019-08-153-67/+183
|/ /
* | Show actual enchant version if possibleChristoph M. Becker2019-06-273-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As of libenchant 1.6.0 there is enchant_get_version()[1], so we use it, if available, to show the actual enchant version in the PHP info. We also drop the fake ENCHANT_VERSION_STRING altogether, but stick with showing version 1.5.x if at least HAVE_ENCHANT_BROKER_SET_PARAM is defined. Future scope: we may consider requiring enchant 1.6.0 (or later), since this has been released in April 2010, and likely is available everywhere. [1] <https://www.abisource.com/projects/enchant/>