summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | 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-204-1/+39
| | | | | | | | | | | | | | | | 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.
* | | | Merge branch 'PHP-8.0'Gabriel Caruso2021-01-190-0/+0
|\ \ \ \ | |/ / /
| * | | Next is 8.0.3Gabriel Caruso2021-01-194-6/+9
| | | |
* | | | Merge branch 'PHP-8.0'Gabriel Caruso2021-01-190-0/+0
|\ \ \ \ | |/ / /
| * | | Fix NEWS placeholder for the next versionGabriel Caruso2021-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | This aligns with the PHP-7.4 and PHP-7.3 branches, and should fix the `sgolemon/php-release` script run for releasing 8.0.2.
* | | | Use zend_string_equals() in PDOGeorge Peter Banyard2021-01-191-22/+17
| | | | | | | | | | | | | | | | Closes GH-6623
* | | | Merge branch 'PHP-8.0'Derick Rethans2021-01-190-0/+0
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.4' into PHP-8.0Derick Rethans2021-01-190-0/+0
| |\ \ \ | | |/ /
| | * | Update NEWS and versionDerick Rethans2021-01-192-2/+4
| | | |
| | * | Update NEWS for PHP 7.4.15RC1Derick Rethans2021-01-191-1/+1
| | | |
* | | | Rename zend-test to zend_testNikita Popov2021-01-1964-66/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-193-1/+12
| | | |
* | | | 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-199-46/+40
| | | | | | | | | | | | | | | | Closes GH-6617
* | | | Refactor PDO doer handler to use zend_stringGeorge Peter Banyard2021-01-1910-34/+42
| | | |
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-196-10/+37
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fixed bug #42560
| * | | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2021-01-196-10/+37
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fixed bug #42560
| | * | Fixed bug #42560sj-i2021-01-196-10/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check open_basedir after the fallback to the system's temporary directory in tempnam(). In order to preserve the current behavior of upload_tmp_dir (do not check explicitly specified dir, but check fallback), new flags are added to check open_basedir for explicit dir and for fallback. Closes GH-6526.
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-192-4/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: ldap_search() and friends can return array
| * | | ldap_search() and friends can return arrayChristoph M. Becker2021-01-192-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | See the description of <https://www.php.net/ldap-search>, and also the implementation. Closes GH-6620.
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-195-1/+91
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fix #69279: Compressed ZIP Phar extractTo() creates garbage files
| * | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-196-1/+93
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Fix #69279: Compressed ZIP Phar extractTo() creates garbage files
| | * | Fix #69279: Compressed ZIP Phar extractTo() creates garbage filesChristoph M. Becker2021-01-196-1/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When extracting compressed files from an uncompressed Phar, we must not use the direct file pointer, but rather get an uncompressed file pointer. We also add a test to show that deflated and stored entries are properly extracted. This also fixes #79912, which appears to be a duplicate of #69279. Co-authored-by: Anna Filina <afilina@gmail.com> Closes GH-6599.
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-191-4/+13
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Keep JIT region executable under ZTS
| * | | Keep JIT region executable under ZTSDylan K. Taylor2021-01-191-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When one thread tries to compile a script, another thread may already be executing JITed code. In this case we can't make the memory non-executable. This violates the W^X principle, but doesn't seem to be avoidable for ZTS builds for now. The same problem does not exist for NTS, as it's a different process executing there, which has it's own memory protection mapping. Closes GH-6595.
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-191-12/+7
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Observe unused return values in JIT
| * | | Observe unused return values in JITNikita Popov2021-01-191-12/+7
| | | | | | | | | | | | | | | | | | | | Even if the return value is not used, it should still be available to the observer.
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-194-16/+18
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Disable opcache optimizations during some observer tests
| * | | Disable opcache optimizations during some observer testsNikita Popov2021-01-194-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | Opcache inlines functions that only return a constant. Disable optimizations to prevent differences in tests where such functions are used (or rewrite the test to not depend on it).
* | | | Mark classes cached by opcache by ZEND_ACC_CACHED flag and prevent useless ↵Dmitry Stogov2021-01-195-80/+43
| | | | | | | | | | | | | | | | copying and desrpoying of immutable data.
* | | | Avoid modification of trait infoDmitry Stogov2021-01-192-5/+23
| | | |
* | | | Delete an outdated comment for read_property and read_dimension. [ci skip]sj-i2021-01-191-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The comment is outdated as of PHP7. For example, in the current code, zend_assign_op_overloaded_property() expects the refcount of the returned value from read_property to be greater than 0 when the returned value is a refcounted, to call zval_ptr_dtor() later. History: - The same description was originally written in a commit in 2004 alongside the write side. https://github.com/php/php-src/commit/c8c0e979826b677de5f786920289056242ea5c54 - One requested to put the description in somewhere. https://externals.io/message/7789 - Then it was added as a comment in zend_object_handler.h . https://github.com/php/php-src/commit/7d3215d33321173c58db4d86b7398e16c5c55d13 - At the time the comment was written, there were at least three places where the code actually set the reference count to 0 in read_properties. - https://github.com/php/php-src/blob/7d3215d33321173c58db4d86b7398e16c5c55d13/ext/dom/php_dom.c#L229 - https://github.com/php/php-src/blob/7d3215d33321173c58db4d86b7398e16c5c55d13/ext/mysqli/mysqli.c#L190 - https://github.com/php/php-src/blob/7d3215d33321173c58db4d86b7398e16c5c55d13/ext/simplexml/simplexml.c#L245 - All three of the above were removed during the development of PHP 7. - https://github.com/php/php-src/commit/2f0a758fbbf39ff8684d167f86c708cc361db782 - https://github.com/php/php-src/commit/2402d6cbbc5e04362b23b183f9129a8db230bcce - https://github.com/php/php-src/commit/a975c7e0fe95a94c119eb1c8e519b2357aa50dcc - In the current code, even when they generate and return a refcounted value, its refcount would be 1. Closes GH-6618.
* | | | gen_stub: Also verify implementation-aliasNikita Popov2021-01-199-7/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes --verify also check @implementation-alias. Failures are ignored using @no-verify instead. Some mistakes have been made that would have been caught by this... Closes GH-6615.
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-183-4/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: SplFileObject::fgets() cannot return false
| * | | SplFileObject::fgets() cannot return falseNikita Popov2021-01-183-4/+4
| | | | | | | | | | | | | | | | | | | | spl_filesystem_file_read() is called with silent=0, so it will throw on failure.
* | | | gen_stub: Don't use $aliasMap during verificationNikita Popov2021-01-182-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some functions have multiple aliases, while the $aliasMap can only record one. Methodsynopsis generation probably shouldn't use it either, but at least that case seems to only be interested in whether there is an alias at all.
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-182-4/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Sync gzgets signature with fgets
| * | | Sync gzgets signature with fgetsNikita Popov2021-01-182-4/+4
| | | |
* | | | Use ENT_QUOTES|ENT_SUBSTITUTE default for HTML encoding and decoding functionsCraig Francis2021-01-1814-35/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | htmlspecialchars() etc now use ENT_QUOTES | ENT_SUBSTITUTE rather than ENT_COMPAT by default. Closes GH-6583.
* | | | gen_stub: Compare phpdoc return type in --verifyNikita Popov2021-01-181-5/+6
| | | |
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-186-7/+7
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | * PHP-8.0: Sync datefmt_get_calendar_object signature Sync intlcal_create_instance() and IntlCalendar::createInstance() Sync date_diff and DateTime::diff return type
| * | | Sync datefmt_get_calendar_object signatureNikita Popov2021-01-182-2/+2
| | | | | | | | | | | | | | | | | | | | In this case, it's only a matter of using the same type order in both cases.