summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Make "MySQL server has gone away" errors more consistentNikita Popov2019-06-033-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | Don't generate explicit warnings for these in two places, use usual error handling mechanism. Additionally suppress a number of warnings if the server has gone away.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-05-221-0/+50
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-05-221-0/+50
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-05-221-0/+50
| | |\ \ | | | |/
| | | * Fix #77956 - When mysqli.allow_local_infile = Off, return a client errorSjon Hortensius2019-05-221-0/+50
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-03-181-6/+1
|\ \ \ \ | |/ / /
| * | | Don't use random mode in mysqli_query testNikita Popov2019-03-181-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | MYSQLI_ASYNC is also valid here, at least with mysqlnd. Rather than using a random mode that is prone to failing once in a blue moon, use a fixed invalid value.
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-03-151-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Replace dirname(__FILE__) by __DIR__ in tests
| * | | Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-151-1/+1
| | | |
* | | | Adjust tests for zpp TypeError changeNikita Popov2019-03-11106-1202/+14
|/ / /
* | | Use EXPECT when possibleGabriel Caruso2019-03-111-1/+1
| | | | | | | | | | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* | | Remove more leftovers of mysqli embedded serverNikita Popov2019-02-281-9/+0
| | |
* | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-02-211-0/+27
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-02-211-0/+27
| |\ \ | | |/
| | * Fixed bug #77597Nikita Popov2019-02-211-0/+27
| | | | | | | | | | | | | | | | | | The same variable was reused in two nested loops... The test doesn't fail on 7.2, but I'm fixing this here anyway as the code is clearly wrong, and probably erroneous in other situations.
* | | Implement fine-grained conflict handlingNikita Popov2019-02-201-0/+1
| | | | | | | | | | | | | | | | | | Tests can specify conflict keys, either in --CONFLICTS-- or a per-directory CONFLICTS file. Non-conflicting tests may be run in parallel.
* | | Merge branch 'PHP-7.3' into PHP-7.4Darek Slusarczyk2019-02-1111-0/+71
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.2' into PHP-7.3Darek Slusarczyk2019-02-1111-0/+71
| |\ \ | | |/
| | * Merge branch 'PHP-7.1' into PHP-7.2Darek Slusarczyk2019-02-1111-0/+71
| | |\
| | | * security fix - by default 'local infile' is disabled:Darek Slusarczyk2019-02-1111-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - set default for mysqli.allow_local_infile=0 - explicitly disable PDO::MYSQL_ATTR_LOCAL_INFILE in case of lack of driver options - add getAttribute support for PDO::MYSQL_ATTR_LOCAL_INFILE - update existing tests where needed - add new tests [checking default value and setting on] the 'local infile' in ext/mysqli and ext/pdo_mysql
| | | * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-15269-274/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1424-45/+45
| | | |
| | | * Sync leading and final newlines in source code filesPeter Kokot2018-10-146-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | * Convert CRLF line endings to LFPeter Kokot2018-10-135-185/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch simplifies line endings tracked in the Git repository and syncs them to all include the LF style instead of the CRLF files. Newline characters: - LF (\n) (*nix and Mac) - CRLF (\r\n) (Windows) - CR (\r) (old Mac, obsolete) To see which line endings are in the index and in the working copy the following command can be used: `git ls-files --eol` Git additionally provides `.gitattributes` file to specify if some files need to have specific line endings on all platforms (either CRLF or LF). Changed files shouldn't cause issues on modern Windows platforms because also Git can do output conversion is core.autocrlf=true is set on Windows and use CRLF newlines in all files in the working tree. Unless CRLF files are tracked specifically, Git by default tracks all files in the index using LF newlines.
| | * | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-15253-258/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1424-45/+45
| | | |
| | * | Sync leading and final newlines in source code filesPeter Kokot2018-10-145-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-15182-186/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1420-37/+37
| | | |
| * | | Sync leading and final newlines in source code filesPeter Kokot2018-10-145-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-15182-186/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-141-1/+1
| | | |
* | | | Trim trailing whitespace in testsGabriel Caruso2018-10-1420-36/+36
| | | |
* | | | Sync leading and final newlines in source code filesPeter Kokot2018-10-145-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | mysqli_fork: Fix undefined variablebugreportuser2018-10-061-1/+1
| | | |
* | | | Remove unused filesPeter Kokot2018-09-263-188/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - ext/simplexml/tests/bug25756_1.xml - ext/simplexml/tests/bug25756_2.xml - ext/simplexml/tests/bug25756.xsd Added via 503d74aa29901ccf6419b9429febc59772a24ffd and then removed via 9e29f17493284dee81d2842f6067b24fba9538a5 - ext/mysqli/tests/cacert.pem - ext/mysqli/tests/client-cert.pem - ext/mysqli/tests/client-key.pem Added via e9f9f66f2ecc9cdd320081baa2151aa636dbaab1 and then removed via 6d51b7b2e3468601acdaaf9041c9131b5aa47f98 - ext/gd/tests/simpletext私はガラスを食べられます.jpg Added via 3d3f11ede4cc7c83d64cc5edaae7c29ce9c6986f and never used - ext/gd/tests/src.png Added via cc938b5df026ec0e9127e82ae88d39fd89592388 and never used - ext/zlib/tests/gzgetss.test Added via d536ecac5ca34f351f219b880c7983b682c99ec0 as a file content of the ext/zlib/tests/gzgetss.gzbut but never used in tests directly. Removed for better clarity of zlib tests - ext/soap/tests/interop/Round3/GroupD/round3_groupD_import2_absolute.wsdl - ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimerpc.wsdl - ext/soap/tests/interop/Round4/GroupG/round4_groupG_mimedoc.wsdl Added via 1d25fc5c7b62f763b66a4c745d5e29894419aca9 and never used - ext/reflection/tests/exception.inc Removed via 9f8ba2e8a13966eb4b7832d8909ce4ddaa76af2f - ext/phar/tests/files/extracted.inc Removed via 549bf83bd132c5e9bf120194f4e6fab9cbd8c30c - ext/phar/tests/cache_list/files/extracted.inc Added via 05c31040972206179bd2858775db61cba35a2ea7 and never used
* | | | Merge branch 'PHP-7.3'Nikita Popov2018-09-191-4/+4
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2018-09-191-4/+4
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-09-191-4/+4
| | |\ \ | | | |/
| | | * Fix intermittent failures in mysqli_stmt_bind_result_format.phptNikita Popov2018-09-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two distinct issues here: * $trend was compared against 'NULL' using !=, which does not work as intended in the case where $trend==0.0. * current_targets was declared as double(17,0), which means that the fractional part was rounded, so that the same comparison in SQL (rounded) and in PHP (not rounded) did not necessarily match. Please don't write mt_rand based tests, it takes ages to debug this crap...
* | | | Renumber ZEND_ACC_... flagsDmitry Stogov2018-09-114-92/+92
| | | |
* | | | Remove empty PHP tags from testGabriel Caruso2018-09-081-3/+1
|/ / /
* | | Skip test on incompatible serversAnatol Belski2018-07-091-0/+10
| | |
* | | Fix inverted stristr() argument order in mysqli testNikita Popov2018-07-051-2/+2
| | |
* | | Fixe bug #76386Victor Csiky2018-06-151-0/+94
| | | | | | | | | | | | ..that is also a duplicate of #67122
* | | Merge branch 'PHP-7.2'Nikita Popov2018-03-232-4/+4
|\ \ \ | |/ /
| * | Add missing skip prefix for some SKIPIF messagesatvoicu2018-03-232-4/+4
| | |
* | | Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-20160-160/+160
| | | | | | | | | | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* | | [Bug 75448] In case of failure, mysqli::prepare() returns NULL instead of FALSESergei Morozov2018-02-1098-423/+443
| | |
* | | Use bool instead of boolean while throwing a type errorGabriel Caruso2018-02-045-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.