summaryrefslogtreecommitdiff
path: root/ext/dba
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-8.0'Christoph M. Becker2021-03-151-2/+2
|\ | | | | | | | | * PHP-8.0: Fix #80817: dba_popen() may cause segfault during RSHUTDOWN
| * Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-03-151-2/+2
| |\ | | | | | | | | | | | | * PHP-7.4: Fix #80817: dba_popen() may cause segfault during RSHUTDOWN
| | * Fix #80817: dba_popen() may cause segfault during RSHUTDOWNChristoph M. Becker2021-03-151-2/+2
| | | | | | | | | | | | We need to close persistent streams with the proper flag.
* | | Improve class entry generationMáté Kocsis2021-02-161-1/+0
| | | | | | | | | | | | Related to GH-6701
* | | Deprecate passing null to non-nullable arg of internal functionNikita Popov2021-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This deprecates passing null to non-nullable scale arguments of internal functions, with the eventual goal of making the behavior consistent with userland functions, where null is never accepted for non-nullable arguments. This change is expected to cause quite a lot of fallout. In most cases, calling code should be adjusted to avoid passing null. In some cases, PHP should be adjusted to make some function arguments nullable. I have already fixed a number of functions before landing this, but feel free to file a bug if you encounter a function that doesn't accept null, but probably should. (The rule of thumb for this to be applicable is that the function must have special behavior for 0 or "", which is distinct from the natural behavior of the parameter.) RFC: https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg Closes GH-6475.
* | | Implicitly enable function entry generation when class entry generation is ↵Máté Kocsis2021-02-092-5/+2
| | | | | | | | | | | | | | | | | | enabled Closes GH-6675
* | | Generate class entries for a few extensionsMáté Kocsis2021-02-032-2/+6
| | | | | | | | | | | | Relates to GH-6644
* | | Replace zend_bool uses with boolNikita Popov2021-01-154-12/+12
| | | | | | | | | | | | | | | | | | | | | 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.
* | | Make convert_to_*_ex simple aliases of convert_to_*Nikita Popov2021-01-141-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Historically, the _ex variants separated the zval first, if a conversion was necessary. This distinction no longer makes sense since PHP 7. The only difference that was still left is that _ex checked whether the type is the same first, but the usage of these macros did not actually distinguish on whether such an inlined check is valuable or not in a given context. Also drop the unused convert_to_explicit_type macros.
* | Fix stub for dba_key_split()Nikita Popov2020-10-223-5/+7
| | | | | | | | | | | | | | | | | | This is an extremely weird function, but the behavior seems to be intentional, and is quite clearly documented. So we adjust the stub to also accept false|null as arguments. I believe the implementation already correctly matches union type semantics.
* | Update ext/dba parameter namesNikita Popov2020-10-082-36/+36
| | | | | | | | Closes GH-6292.
* | Run tidyNikita Popov2020-09-1835-90/+90
| | | | | | | | | | This should fix most of the remaining issues with tabs and spaces being mixed in tests.
* | Add a bunch of missing argument types to stubsMáté Kocsis2020-08-032-3/+15
| |
* | Review the usage of apostrophes in error messagesMáté Kocsis2020-07-103-3/+3
| | | | | | | | Closes GH-5590
* | Remove proto comments from C filesMax Semenik2020-07-063-86/+43
| | | | | | | | Closes GH-5758
* | Replace EXPECTF when possibleFabien Villepinte2020-06-294-4/+4
| | | | | | | | Closes GH-5779
* | 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.
* | Fix missing initializers in dba inifileNikita Popov2020-06-231-5/+5
| |
* | Improve a last couple of argument error messagesMáté Kocsis2020-04-203-3/+3
| | | | | | | | Closes GH-5404
* | Fix typo (UNKOWN -> UNKNOWN)Christoph M. Becker2020-04-092-2/+2
| |
* | Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-2/+2
| | | | | | | | | | | | | | 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 from stubs for a couple of extensionsMáté Kocsis2020-04-044-39/+40
| | | | | | | | Closes GH-5347
* | Revert "Replace @param annotations with type declarations"Christoph M. Becker2020-02-172-8/+13
| | | | | | | | This reverts commit c31029f335ca1b453af799805c43c37e959ad555.
* | Replace @param annotations with type declarationsChristoph M. Becker2020-02-162-13/+8
| |
* | Reindent phpt filesNikita Popov2020-02-0328-358/+358
| |
* | Fix #78880 Another roundMáté Kocsis2020-01-191-2/+2
| |
* | Use RETURN_THROWS() in various placesMáté Kocsis2020-01-031-1/+1
| |
* | Use RETURN_THROWS() after zend_fetch_resource*()Máté Kocsis2020-01-031-2/+2
| |
* | Merge branch 'PHP-7.4'Christoph M. Becker2020-01-032-0/+41
|\ \ | |/ | | | | | | * PHP-7.4: Fix #78808: [LMDB] MDB_MAP_FULL: Environment mapsize limit reached
| * Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-01-032-0/+41
| |\ | | | | | | | | | | | | * PHP-7.3: Fix #78808: [LMDB] MDB_MAP_FULL: Environment mapsize limit reached
| | * Fix #78808: [LMDB] MDB_MAP_FULL: Environment mapsize limit reachedChristoph M. Becker2020-01-032-0/+41
| | | | | | | | | | | | | | | | | | | | | We implement support for a fifth parameter, which allows to specify the mapsize. The parameter defaults to zero, in which case the compiled in default mapsize (usually 1048576) will be used. The mapsize should be a multiple of the page size of the OS.
| | * Trim trailing whitespace in *.phptPeter Kokot2018-10-1460-161/+161
| | |
| | * Sync leading and final newlines in source code filesPeter Kokot2018-10-143-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-44/+44
| | |
* | | Use RETURN_THROWS() during ZPP in the date, dba and dom extensionsMáté Kocsis2019-12-311-12/+12
| | |
* | | Add union return types for function stubsMáté Kocsis2019-11-112-17/+9
| | |
* | | Clean DONE tags from testsFabien Villepinte2019-11-0729-63/+0
| | | | | | | | | | | | | | | | | | | | | Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
* | | Cleanup return values when parameter parsing is unsuccessfulMáté Kocsis2019-10-301-3/+3
| | |
* | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-2526-52/+0
| | | | | | | | | | | | Closes GH-4732.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2019-09-231-0/+4
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Allow lookup of distro-packaged QDBM headers on Debian
| * | Allow lookup of distro-packaged QDBM headers on DebianStephen Reay2019-09-231-0/+4
| | |
* | | Add ext/dba stubsChristoph M. Becker2019-09-223-76/+126
| | |
* | | Remove some misleading RETURN_FALSENikita Popov2019-08-121-2/+2
| | | | | | | | | | | | | | | | | | These functions throw, so they can't return false. This is just a subset...
* | | Merge branch 'PHP-7.4'Peter Kokot2019-07-131-6/+6
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Convert all php_error_docref0 to php_error_docref
| * | Convert all php_error_docref0 to php_error_docrefGeorge Peter Banyard2019-07-131-6/+6
| | | | | | | | | | | | Closes GH-4394
* | | Merge branch 'PHP-7.4'Nikita Popov2019-06-051-0/+6
|\ \ \ | |/ /
| * | Allow exceptions in __toString()Nikita Popov2019-06-051-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
* | | Merge branch 'PHP-7.4'Peter Kokot2019-05-121-17/+13
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Normalize comments in *nix build system m4 files
| * | Normalize comments in *nix build system m4 filesPeter Kokot2019-05-121-17/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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'Peter Kokot2019-03-191-54/+0
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Remove extension readmes