summaryrefslogtreecommitdiff
path: root/ext/mysqli
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Add another round of missing parameter types to stubsMáté Kocsis2020-08-072-3/+3
| | | | | | | | | | | | Closes GH-5950
* | | Accept zend_object* in zend_update_propertyNikita Popov2020-08-071-7/+7
| | |
* | | Implement named parametersNikita Popov2020-07-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From an engine perspective, named parameters mainly add three concepts: * The SEND_* opcodes now accept a CONST op2, which is the argument name. For now, it is looked up by linear scan and runtime cached. * This may leave UNDEF arguments on the stack. To avoid having to deal with them in other places, a CHECK_UNDEF_ARGS opcode is used to either replace them with defaults, or error. * For variadic functions, EX(extra_named_params) are collected and need to be freed based on ZEND_CALL_HAS_EXTRA_NAMED_PARAMS. RFC: https://wiki.php.net/rfc/named_params Closes GH-5357.
* | | Add a few missing parameter types in stubsMáté Kocsis2020-07-302-8/+7
| | | | | | | | | | | | Related to GH-5627
* | | Fix some clang warningsNikita Popov2020-07-232-3/+3
| | |
* | | Fix arg/func infoNikita Popov2020-07-213-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mysqli_get_server_info() cannot return null. The underlying API is infallible. * mysqli_select_db() func info is redundant. * mb_detect_order() can only return array|true, not array|false. Also make the func_info.phpt test that is supposed to catch these kinds of issues actually work.
* | | Review the usage of apostrophes in error messagesMáté Kocsis2020-07-105-5/+5
| | | | | | | | | | | | Closes GH-5590
* | | Remove no_separation flagNikita Popov2020-07-071-1/+0
| | |
* | | Remove proto comments from C filesMax Semenik2020-07-064-243/+122
| | | | | | | | | | | | Closes GH-5758
* | | [skip-ci] Add README for ext/mysqli testsTiffany2020-07-061-0/+39
| | | | | | | | | | | | Closes GH-5804
* | | Add get_gc handle for object iteratorsNikita Popov2020-07-011-1/+2
| | | | | | | | | | | | Optional handler with the same semantics as the object handler.
* | | Update outdated arginfo hashesMáté Kocsis2020-06-301-1/+1
| | |
* | | Replace EXPECTF when possibleFabien Villepinte2020-06-2914-15/+15
| | | | | | | | | | | | Closes GH-5779
* | | [ci skip] Various typo fixes in stub comments and CHANGES fileAyesh Karunaratne2020-06-251-1/+1
| | |
* | | Introduce InternalIteratorNikita Popov2020-06-244-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Userland classes that implement Traversable must do so either through Iterator or IteratorAggregate. The same requirement does not exist for internal classes: They can implement the internal get_iterator mechanism, without exposing either the Iterator or IteratorAggregate APIs. This makes them usable in get_iterator(), but incompatible with any Iterator based APIs. A lot of internal classes do this, because exposing the userland APIs is simply a lot of work. This patch alleviates this issue by providing a generic InternalIterator class, which acts as an adapater between get_iterator and Iterator, and can be easily used by many internal classes. At the same time, we extend the requirement that Traversable implies Iterator or IteratorAggregate to internal classes as well. Closes GH-5216.
* | | Remove unnecessary PHPDoc-alike blocks from testsMáté Kocsis2020-06-243-3/+0
| | | | | | | | | | | | Closes GH-5759
* | | 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 some UNKNOWN default valuesMáté Kocsis2020-06-093-11/+7
| | | | | | | | | | | | In ext/ffi, ext/intl, ext/mysqli, and ext/pcntl
* | | Improve type error messages when an object is givenMáté Kocsis2020-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | | From now on, we always display the given object's type instead of just reporting "object". Additionally, make the format of return type errors match the format of argument errors. Closes GH-5625
* | | Annotate internal functions with the mixed typeMáté Kocsis2020-05-252-5/+4
| | | | | | | | | | | | Closes GH-5618
* | | Fix some final classes in stubsMáté Kocsis2020-05-192-6/+5
| | |
* | | Fix [-Wextra-tokens] warning in MySQLi extension which breaks buildGeorge Peter Banyard2020-05-181-2/+2
| | | | | | | | | | | | Didn't double check and this slipped through with my big search and replace
* | | Fix [-Wundef] warning in MySQLi extensionGeorge Peter Banyard2020-05-187-50/+50
| | |
* | | Fix UNKNOWN default values in various extensionsMáté Kocsis2020-05-055-47/+27
| | | | | | | | | | | | Closes GH-5514
* | | Avoid spurious failures of MySQL INSERT packet overflow testAlex Dowad2020-05-011-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test creates a MySQL table called 'test'. In several cases, I have seen a spurious test failure (in CI) with an error message saying: "table 'test' already exists". It may be that another test had used a table with the same name and not cleaned it out correctly. Or maybe we have multiple tests running in parallel in some CI environments, or the same test DB being used for multiple runs of the test suite. In any case, change the table name so it is exclusive to this test case only. Also, if the test table exists at the beginning of the test, drop it. Closes GH-5479
* | | Revert "Insert one more debug output"Nikita Popov2020-04-301-1/+0
| | | | | | | | | | | | This reverts commit 45cb42166d4a53fe0154be08097f112d6ec72a27.
* | | Insert one more debug outputNikita Popov2020-04-281-0/+1
| | |
* | | Remove support for libmysqlclient 5.0Nikita Popov2020-04-236-62/+6
| | | | | | | | | | | | Closes GH-5391.
* | | Generate function entries from stubs for mysqliMáté Kocsis2020-04-1912-638/+811
| | | | | | | | | | | | Closes GH-5420
* | | Merge branch 'PHP-7.4'Nikita Popov2020-04-162-5/+5
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix MySQL local infile / attr handling on big endian systems
| * | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-04-162-5/+5
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix MySQL local infile / attr handling on big endian systems
| | * Fix MySQL local infile / attr handling on big endian systemsguirish2020-04-162-5/+5
| | | | | | | | | | | | | | | | | | Make sure pointer types match what is used by libmysql everywhere. Closes GH-5380.
* | | Remove int6store()Nikita Popov2020-04-141-1/+1
| | | | | | | | | | | | | | | The implementation is broken (syntactically). As it's not used anyway, I'm just dropping it instead.
* | | Fix default value of the $class_name parameter of mysqli_fetch_object()Máté Kocsis2020-04-102-4/+4
| | |
* | | Fix the default value of the $flags parameter of mysqli_begin_transaction()Máté Kocsis2020-04-102-6/+13
| | |
* | | Add missing parameter to the stub of mysqli_real_connectMáté Kocsis2020-04-102-0/+2
| | |
* | | Fix mysqli_get_client_info() stubNikita Popov2020-04-092-2/+2
| | | | | | | | | | | | The dummy link argument is not nullable.
* | | Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-46/+51
| | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge branch 'PHP-7.4'Nikita Popov2020-04-081-4/+6
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Make mysqli_poll test more deterministic
| * | Make mysqli_poll test more deterministicNikita Popov2020-04-081-5/+7
| | | | | | | | | | | | Handle errors appearing in different order.
* | | Annotate function aliases in stubsMáté Kocsis2020-04-041-1/+6
| | |
* | | Stubs: Store information per-classNikita Popov2020-04-031-243/+243
| | | | | | | | | | | | We'll need this if we want to generate method entries.
* | | Do not include the same stub multiple timesMáté Kocsis2020-04-035-15/+18
| | | | | | | | | | | | Closes GH-5322
* | | Drop wchar header check as always defined since C95George Peter Banyard2020-03-311-21/+0
| | |
* | | Improve error messages of various extensionsMáté Kocsis2020-03-231-1/+1
| | | | | | | | | | | | Closes GH-5278
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-03-231-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix test for Windows
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-03-231-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix test for Windows
| | * Fix test for WindowsChristoph M. Becker2020-03-231-1/+1
| | | | | | | | | | | | | | | Windows filenames may very well contain a colon, so we adjust the test accordingly.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-03-092-2/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Enclose INI values containing {TMP} in quotes
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-03-092-2/+2
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Enclose INI values containing {TMP} in quotes