diff options
| author | Christoph M. Becker <cmb@php.net> | 2015-08-18 13:44:14 +0200 |
|---|---|---|
| committer | Christoph M. Becker <cmb@php.net> | 2015-08-18 13:44:14 +0200 |
| commit | 1b5e87a579080da1452e173981b7d8a6814f15c0 (patch) | |
| tree | 8e0bdda339242780b63a16cfbecccffdd987b37a | |
| parent | 22eaa995ee62ba6332a82d4754a179b6be847fe9 (diff) | |
| download | php-git-1b5e87a579080da1452e173981b7d8a6814f15c0.tar.gz | |
Fix #70289: Different sort in php7 (and hhvm) compared to php5
We add a respective note to UPGRADING. Furthermore, as renaming of zend_qsort()
and the new zend_insert_sort() are irrelevant for user-land, we move this
info to UPGRADING.INTERNALS.
| -rw-r--r-- | UPGRADING | 5 | ||||
| -rw-r--r-- | UPGRADING.INTERNALS | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -431,9 +431,8 @@ Standard library changes . call_user_method() and call_user_method_array() no longer exists. . ob_start() no longer issues an E_ERROR, but instead an E_RECOVERABLE_ERROR in case an output buffer is created in an output buffer handler. - . Improved zend_qsort(using hybrid sorting algo) for better performance, - and also renamed zend_qsort to zend_sort. - . Added stable sorting algo zend_insert_sort. + . The internal sorting algorithm has been improved, what may result in + different sort order of elements that compare as equal. . Removed dl() function on fpm-fcgi. . setcookie() with an empty cookie name now issues a WARNING and doesn't send an empty set-cookie header line anymore. diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS index d5921ecf0f..384b71bdc2 100644 --- a/UPGRADING.INTERNALS +++ b/UPGRADING.INTERNALS @@ -19,6 +19,7 @@ PHP 7.0 INTERNALS UPGRADE NOTES s. Resource API changes t. Optimized strings concatenation. u. Streams changes + v. Sort algorithm changes 2. Build system changes a. Unix build system changes @@ -240,6 +241,11 @@ changes. See: https://wiki.php.net/phpng-upgrading using context stream option PHP_STREAM_OPTION_PIPE_BLOCKING or adding STREAM_USE_BLOCKING_PIPE when opening the stream. + v. Sort algorithm changes + - Improved zend_qsort(using hybrid sorting algo) for better performance, + and also renamed zend_qsort to zend_sort. + - Added stable sorting algo zend_insert_sort. + ======================== 2. Build system changes ======================== |
