summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-262-0/+66
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #70091: Phar does not mark UTF-8 filenames in ZIP archives
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-262-0/+66
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix #70091: Phar does not mark UTF-8 filenames in ZIP archives
| | * | Fix #70091: Phar does not mark UTF-8 filenames in ZIP archivesChristoph M. Becker2021-01-262-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default encoding of filenames in a ZIP archive is IBM Code Page 437. Phar, however, only supports UTF-8 filenames. Therefore we have to mark filenames as being stored in UTF-8 by setting the general purpose bit 11 (the language encoding flag). The effect of not setting this bit for non ASCII filenames can be seen in popular tools like 7-Zip and UnZip, but not when extracting the archives via ext/phar (which is agnostic to the filename encoding), or via ext/zip (which guesses the encoding). Thus we add a somewhat brittle low-level test case. Closes GH-6630.
* | | | Merge branch 'PHP-8.0'Dmitry Stogov2021-01-261-0/+35
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Skip dummy frames allocated on CPU stack of zend_call_function(). (Usage of "current_observed_frame" varible looks unsafe to me).
| * | | Skip dummy frames allocated on CPU stack of zend_call_function().Dmitry Stogov2021-01-261-0/+35
| | | | | | | | | | | | | | | | (Usage of "current_observed_frame" varible looks unsafe to me).
* | | | Fix proptable canonicalization bypass in ArrayObjectNikita Popov2021-01-262-174/+179
| | | | | | | | | | | | | | | | | | | | | | | | When an ArrayObject wraps an object, we should be using the proptable canonicalilzation rules, which require all keys to be strings.
* | | | Add support for generating class entries from stubsMáté Kocsis2021-01-2641-201/+498
| | | | | | | | | | | | | | | | | | | | | | | | Closes GH-6289 Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* | | | Distinguishing opcache SHM on stats tools for MacDavid CARLIER2021-01-261-7/+15
| | | | | | | | | | | | | | | | Closes GH-6628.
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-252-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #75850: Unclear error message wrt. __halt_compiler() w/o semicolon
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-252-2/+2
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix #75850: Unclear error message wrt. __halt_compiler() w/o semicolon
| | * | Fix #75850: Unclear error message wrt. __halt_compiler() w/o semicolonChristoph M. Becker2021-01-252-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | We add the failure reason to the error message. Closes GH-6638.
| | * | Updated to version 2021.1 (2021a)Derick Rethans2021-01-251-2360/+2559
| | | |
* | | | Remove unnecessary TRUE/FALSE defines in tidyNikita Popov2021-01-251-10/+2
| | | | | | | | | | | | | | | | Instead use standard true/false.
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-254-9/+36
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #53251: bindtextdomain with null dir doesn't return old value
| * | | Fix #53251: bindtextdomain with null dir doesn't return old valueChristoph M. Becker2021-01-254-9/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently, users expect `bindtextdomain` and `bind_textdomain_codeset` with `null` as second argument to work like their C counterparts, namely to return the previously set value. Thus, we support that. Closes GH-6631.
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-251-0/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | * PHP-8.0: Fix opcache phpize build on FreeBSD Updated to version 2021.1 (2021a)
| * | | Fix opcache phpize build on FreeBSDAlex Samorukov2021-01-251-0/+3
| | | | | | | | | | | | | | | | Closes GH-6589.
| * | | Updated to version 2021.1 (2021a)Derick Rethans2021-01-251-2360/+2559
| | | |
* | | | Allow specifying sqlite3 DSN (file:/) in PDO SQLitetzmfreedom2021-01-253-0/+77
| | | | | | | | | | | | | | | | Closes GH-6610.
* | | | Updated to version 2021.1 (2021a)Derick Rethans2021-01-251-2360/+2559
| | | |
* | | | Disable jit in observer opline testNikita Popov2021-01-251-0/+1
| | | | | | | | | | | | | | | | This test fails in --repeat mode with tracing JIT.
* | | | Fix #80330: Replace language in APIs and source code/docsDarek Slusarczyk2021-01-254-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename MYSQLI_REFRESH_SLAVE to MYSQLI_REFRESH_REPLICA in line with upstream change in MySQL. The old name is retained for backwards-compatibility reasons, and may be deprecated/removed in the future. Closes GH-6632.
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-242-1/+10
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Add missing stub for SNMPException
| * | | Add missing stub for SNMPExceptionChristoph M. Becker2021-01-242-1/+10
| | | |
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-242-1/+10
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Add missing stub for com_exception
| * | | Add missing stub for com_exceptionChristoph M. Becker2021-01-242-1/+10
| | | |
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-211-0/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Add missing SKIPIF clause for recently introduced test case
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-211-0/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Add missing SKIPIF clause for recently introduced test case
| | * | Add missing SKIPIF clause for recently introduced test caseChristoph M. Becker2021-01-211-0/+1
| | | |
| | * | Fix #80648: Fix for bug 79296 should be based on runtime versionChristoph M. Becker2021-01-201-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of checking for actually affected libzip versions, we now always `ZIP_TRUNCATE` empty files unless `ZIP_RDONLY` is set. Closes GH-6625.
* | | | Accept zend_string in zend_prepare_string_for_scanningNikita Popov2021-01-211-2/+2
| | | |
* | | | Add array_is_list(array $array) functionDusk2021-01-206-23/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function tests if an array contains only sequential integer keys. While list isn't an official type, this usage is consistent with the community usage of "list" as an annotation type, cf. https://psalm.dev/docs/annotating_code/type_syntax/array_types/#lists Rebased and modified version of #4886 - Use .stub.php files - Add opcache constant evaluation when argument is a constant - Change from is_list(mixed $value) to array_is_list(array $array) RFC: https://wiki.php.net/rfc/is_list Co-Authored-By: Tyson Andre <tysonandre775@hotmail.com> Co-Authored-By: Dusk <dusk@woofle.net> Closes GH-6070
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-202-0/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Add missing SKIPIF clauses to new test cases
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-202-0/+2
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Add missing SKIPIF clauses to new test cases
| | * | Add missing SKIPIF clauses to new test casesChristoph M. Becker2021-01-202-0/+2
| | | |
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-201-2/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Skip preloading test on windows
| * | | Skip preloading test on windowsNikita Popov2021-01-201-2/+5
| | | |
* | | | Merge branch 'PHP-8.0'Dmitry Stogov2021-01-203-1/+36
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fixed bug #80634 (write_property handler of internal classes is skipped on preloaded JITted code)
| * | | Fixed bug #80634 (write_property handler of internal classes is skipped on ↵Dmitry Stogov2021-01-203-1/+36
| | | | | | | | | | | | | | | | preloaded JITted code)
* | | | Update 'East Asian Width' table to comply with Unicode 13.0Alex Dowad2021-01-194-54/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of manually maintaining the data in eaw_table.h, it is now automatically generated by ucgendat/ucgendat.php, using the EastAsianWidth.txt file from the Unicode Consortium. Something must be said about the deleted test case. Back in 2004, someone noticed that `mb_strwidth` didn't comply with Unicode 4.0. A test case was added to expose the problem. Well, time keeps moving on, and with the changing years, new Unicodes are born and old Unicodes die. Some characters which were counted as double-width in Unicode 4.0 are no longer such in Unicode 13.0, which renders the test case obsolete. At the same time, make a couple of spelling/grammar fixes in ucgendat.php.
* | | | Use zend_string_equals() in PDOGeorge Peter Banyard2021-01-191-22/+17
| | | | | | | | | | | | | | | | Closes GH-6623
* | | | Rename zend-test to zend_testNikita Popov2021-01-1947-48/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The extension name should match the name of the ext/ directory, otherwise it will not get picked up by run-tests. It would be possible to remap this in run-tests, but I think it's better to rename the extension to follow the standard format. Other extensions also use underscore instead of hyphen (e.g. pdo_mysql and not pdo-mysql). Of course, the ./configure option remains hyphenated. Closes GH-6613.
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-1938-140/+140
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix observer tests on Windows
| * | | Fix observer tests on WindowsNikita Popov2021-01-1938-140/+140
| | | | | | | | | | | | | | | | Use %e instead of a hardcoded forward slash.
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-192-1/+8
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fixed bug #80644: ResourceBundle::get() doesn't reset error state
| * | | Fixed bug #80644: ResourceBundle::get() doesn't reset error stateNikita Popov2021-01-192-1/+8
| | | |
* | | | Use standard C99 64bits int typesGeorge Peter Banyard2021-01-192-12/+5
| | | | | | | | | | | | | | | | Closes GH-6622
* | | | php_pdo_register_driver() might failGeorge Peter Banyard2021-01-195-7/+11
| | | | | | | | | | | | | | | | Therefore correctly report failure in MINIT for the drivers which didn't.
* | | | Remove unnecessary (char*) castsGeorge Peter Banyard2021-01-191-4/+4
| | | | | | | | | | | | | | | | The functions accepts a const char*
* | | | Refactor PDO's last inserted ID handler to use and return zend_stringGeorge Peter Banyard2021-01-198-46/+37
| | | | | | | | | | | | | | | | Closes GH-6617