Nikita Popov
6f8d0ba0dd
Fix bug #79868
...
This simply restores the code from PHP 7.4 which I incorrectly
"simplified" in master.
2020-07-20 15:15:23 +02:00
Nikita Popov
857166c351
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79839
2020-07-17 14:51:16 +02:00
Nikita Popov
0c28b47154
Fixed bug #79839
...
Add reference type sources in array_walk.
2020-07-17 14:50:22 +02:00
Christoph M. Becker
7e357f470d
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Enable further tests on Windows
2020-07-16 16:08:07 +02:00
Christoph M. Becker
c1b5e7a9ab
Enable further tests on Windows
2020-07-16 16:07:23 +02:00
Christoph M. Becker
371e29ef3a
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix tests regarding negative fileinode()
2020-07-15 16:39:54 +02:00
Christoph M. Becker
dd1d1191e1
Fix tests regarding negative fileinode()
...
The results of `fileinode()` may be negative due to wrap-around
behavior (at least on Windows as of PHP 7.4.0).
2020-07-15 16:38:38 +02:00
Martin Schröder
547d98b81d
Support socketpairs in proc_open()
...
Closes GH-5777.
2020-07-14 10:35:45 +02:00
Christoph M. Becker
99c78963c8
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix test for x86 Windows
2020-07-13 10:53:55 +02:00
Christoph M. Becker
e2c17cef4b
Fix test for x86 Windows
...
`st_dev` deliberately overflows on such systems, cf.
<http://svn.php.net/viewvc?view=revision&revision=350100 >.
2020-07-13 10:52:26 +02:00
twosee
40efb7ad61
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79830 introduced by fixing bug #79821
# Conflicts:
# ext/standard/var.c
2020-07-11 14:40:17 +08:00
twosee
6ef08b1903
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #79830 introduced by fixing bug #79821
2020-07-11 14:38:27 +08:00
twosee
56dec3cc73
Fixed bug #79830 introduced by fixing bug #79821
...
This also fixes memory error in debug_zval_dump and var_export.
2020-07-11 14:37:25 +08:00
twosee
342fe094b5
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79821
2020-07-11 06:19:41 +08:00
twosee
8db2ae8ffb
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #79821
2020-07-11 06:15:28 +08:00
twosee
150504e6b1
Fixed bug #79821
...
HashTable was reallocated (zend_hash_packed_grow) during php_var_dump, so we should call GC_ADDREF to make SEPARATE_ARRAY work.
Closes GH-5837.
2020-07-11 06:14:22 +08:00
Máté Kocsis
d30cd7d7e7
Review the usage of apostrophes in error messages
...
Closes GH-5590
2020-07-10 21:05:28 +02:00
Christoph M. Becker
2ad75ba784
Fix test cases
...
These tests are not supposed to check the result of `fclose(false)`.
2020-07-10 18:27:18 +02:00
Christoph M. Becker
9a5695bfc3
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Enable further ext/standard/tests/file tests on Windows
2020-07-10 13:42:13 +02:00
Christoph M. Becker
99aa5484e2
Enable further ext/standard/tests/file tests on Windows
2020-07-10 13:36:41 +02:00
Christoph M. Becker
ef1de5e973
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix skip reasons
2020-07-10 11:28:28 +02:00
Christoph M. Becker
7edc5e5e39
Fix skip reasons
...
These tests fail on Windows for different reasons, but not because
symlinks, links, or lstat() would not be supported on Windows
generally.
2020-07-10 11:26:48 +02:00
Christoph M. Becker
bdcda50304
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Enable symlink_link_linkinfo_is_link_* tests on Windows
2020-07-10 10:10:30 +02:00
Christoph M. Becker
68293b19d4
Enable symlink_link_linkinfo_is_link_* tests on Windows
...
We mark symlink_link_linkinfo_is_link_error2.phpt as XFAIL on Windows
ZTS. Several Windows API file system functions ignore trailing spaces
in absolute filenames after the final directory separator, which causes
`link(' ', $link)` to actually call `CreateHardLink()` which then
fails, because linking folders is not supported. However, with NTS
builds (as well as on other systems), the $target is found to not
exist, so the function fails without actually attempting to create the
link. This needs further investigation.
2020-07-10 10:08:12 +02:00
Ilija Tovilo
9fa1d13301
Implement match expression
...
RFC: https://wiki.php.net/rfc/match_expression_v2
Closes GH-5371.
2020-07-09 23:52:17 +02:00
George Peter Banyard
af1de14802
Use ZPP string|array union check in PCRE extension
2020-07-09 14:17:19 +02:00
Christoph M. Becker
e33dd6ab1f
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Prevent parallel test conflicts
2020-07-09 12:36:57 +02:00
Christoph M. Becker
db484b612d
Prevent parallel test conflicts
...
Both tests used the same folder, which could clash in case the tests
are run simultaneously.
2020-07-09 12:35:31 +02:00
Nikita Popov
dadb92ea35
Don't allow separation in array functions
...
The only case here that might be *somewhat* sensible is the userdata
argument of array_walk(), which could be used to keep persistent state
between callback invokations -- with the WTF moment that the final
result after the walk finishes will be unchanged. Nowdays, this is
much better achieved using a closure with a use-by-reference.
2020-07-07 09:15:43 +02:00
George Peter Banyard
c4a0ba8d6e
Refactor levenshtein()
...
Closes GH-5816
2020-07-07 00:41:10 +02:00
Christoph M. Becker
62f05ac01f
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix tests for x86 Windows
2020-07-03 10:39:00 +02:00
Christoph M. Becker
a58d865f65
Fix tests for x86 Windows
...
`st_dev` deliberately overflows on such systems, cf.
<http://svn.php.net/viewvc?view=revision&revision=350100 >.
2020-07-03 10:37:40 +02:00
Christoph M. Becker
807d6c0418
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Skip test if SeCreateSymbolicLinkPrivilege is not given
2020-07-03 09:10:37 +02:00
Christoph M. Becker
1b961c0c42
Skip test if SeCreateSymbolicLinkPrivilege is not given
2020-07-03 09:08:59 +02:00
Christoph M. Becker
e2be50001b
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Enable readlink_realpath_* tests on Windows
2020-07-02 18:31:43 +02:00
Christoph M. Becker
6f0b73345a
Enable readlink_realpath_* tests on Windows
...
We modify _basic1.phpt so it runs on Windows as well. The other test
cases hit the issue that `readlink()` fails normally for regular files,
but succeeds on Windows[1]. Therefore, we split these tests, but still
fix the skip reasons.
[1] <http://svn.php.net/viewvc?view=revision&revision=350097 >
2020-07-02 18:24:42 +02:00
Christoph M. Becker
1f12d9da5c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Enable most lstat_stat_* tests on Windows
2020-07-02 15:36:43 +02:00
Christoph M. Becker
1973ca21bd
Enable most lstat_stat_* tests on Windows
...
Most of these have been skipped on Windows for no good reason (`lstat`
is available there as of PHP 4). Several others would only fail,
because the `blksize` and `blocks` elements are always `-1` on Windows,
which can easily be fixed by using `%i` format specifiers instead of
`%d`.
2020-07-02 15:36:07 +02:00
Christoph M. Becker
66a5f9fb18
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Extract test helper function for SeCreateSymbolicLinkPrivilege check
2020-07-02 12:24:49 +02:00
Christoph M. Becker
c49fb83c38
Extract test helper function for SeCreateSymbolicLinkPrivilege check
2020-07-02 12:23:49 +02:00
codinghuang
5ea28fe6c4
Use correct ZPP mechanism in get_class_methods()
...
From now on, instead of returning null, an exception is thrown when
not a string or an object is passed to the function.
Closes GH-5792
2020-07-02 11:40:05 +02:00
Máté Kocsis
e93d20ad7e
Add ZPP macros for class name or object parameters
...
Closes GH-5647
2020-06-30 11:19:30 +02:00
Christoph M. Becker
8c11d8fedb
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #70362 : Can't copy() large 'data://' with open_basedir
2020-06-30 10:48:58 +02:00
Christoph M. Becker
993b19ae69
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #70362 : Can't copy() large 'data://' with open_basedir
2020-06-30 10:48:07 +02:00
Christoph M. Becker
7f3bc64287
Fix #70362 : Can't copy() large 'data://' with open_basedir
...
open_basedir is only relevant for plain files, so there is no need to
check it for other URL wrappers.
2020-06-30 10:46:53 +02:00
Fabien Villepinte
0c6d06ecfa
Replace EXPECTF when possible
...
Closes GH-5779
2020-06-29 21:31:44 +02:00
George Peter Banyard
562ceae7bc
Drop non-well formed numeric strings from math function tests
2020-06-28 19:32:11 +02:00
George Peter Banyard
a9625f8b35
Drop non-well formed numeric strings in array function tests
2020-06-28 19:29:37 +02:00
George Peter Banyard
76643cd4f3
Drop non-well formed numeric strings in strings function tests
2020-06-28 19:29:14 +02:00
Nikita Popov
e12b9df05d
Make sorting stable
...
Make user-exposed sorts stable, by storing the position of elements
in the original array, and using those positions as a fallback
comparison criterion. The base sort is still hybrid q/insert.
The use of true/false comparison functions is deprecated (but still
supported) and should be replaced by -1/0/1 comparison functions,
driven by the <=> operator.
RFC: https://wiki.php.net/rfc/stable_sorting
Closes GH-5236.
2020-06-25 10:49:34 +02:00