Máté Kocsis
d5871e26ad
Promote warnings to exceptions in ext/hash
2020-03-24 10:22:29 +01:00
Máté Kocsis
a42e8e8ec4
Add stubs for SPL iterators
...
Closes GH-5286
2020-03-24 08:02:27 +01:00
Máté Kocsis
01b266aac4
Improve error messages of various extensions
...
Closes GH-5278
2020-03-23 18:59:04 +01:00
Máté Kocsis
d7b73de8c9
Improve error messages of ext/reflection
...
Closes GH-5277
2020-03-23 17:23:45 +01:00
Nikita Popov
568592f1e9
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add test file
2020-03-23 17:14:42 +01:00
Nikita Popov
534e15b477
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add test file
2020-03-23 17:14:16 +01:00
Nikita Popov
2e8db5d6be
Add test file
...
Forgot the git add again...
2020-03-23 17:13:57 +01:00
Nikita Popov
dcbdcf87c8
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Handle NULL caller_call_opline
2020-03-23 17:12:55 +01:00
Nikita Popov
dd9b5c8680
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Handle NULL caller_call_opline
2020-03-23 17:12:12 +01:00
Nikita Popov
34f1266a9c
Handle NULL caller_call_opline
...
This can happen if there is an EXIT in the call arguments, in which
case the DO_CALL opcode may be eliminated as unreachable.
2020-03-23 17:12:01 +01:00
Christoph M. Becker
3b26a3868e
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix leak on Windows as well
2020-03-23 16:33:26 +01:00
Christoph M. Becker
0afdf194f0
Fix leak on Windows as well
...
Cf. <http://git.php.net/?p=php-src.git;a=commit;h=db08ef0d3274b239a6b9e68d71d02bb6acb71d82 >
2020-03-23 16:32:52 +01:00
Christoph M. Becker
d963b78523
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix test for Windows
2020-03-23 16:26:19 +01:00
Christoph M. Becker
efbc962c92
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix test for Windows
2020-03-23 16:23:33 +01:00
Christoph M. Becker
ba404f21e4
Fix test for Windows
...
Windows filenames may very well contain a colon, so we adjust the test
accordingly.
2020-03-23 16:22:45 +01:00
Christoph M. Becker
324337a3b1
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #79200 : Some iconv functions cut Windows-1258
2020-03-23 14:31:16 +01:00
Nikita Popov
816a1fd4af
Don't use quiet zpp in RecursiveIteratorIterator ctor
...
Don't be a special snowflake, generate a standard TypeError here.
2020-03-23 14:22:51 +01:00
Christoph M. Becker
a7bbfc95eb
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #79200 : Some iconv functions cut Windows-1258
2020-03-23 14:13:42 +01:00
Christoph M. Becker
32a2644305
Fix #79200 : Some iconv functions cut Windows-1258
...
To cater to potentially state-dependent encodings, we have to reset the
conversion descriptor into its initial shift state to properly finish
the conversion. Furthermore, state-dependent encodings may not show
progress when comparing `in_left` before and after the conversion; we
rather have to see whether `out_left` has decreased. Also we have to
cater to the fact that the final potentially state resetting call does
not signal failure, but we still have to break respective loops
afterwards.
2020-03-23 14:12:37 +01:00
Christoph M. Becker
bdb63a3068
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #79393 : Null coalescing operator failing with SplFixedArray
2020-03-23 13:59:22 +01:00
Máté Kocsis
fe88d23914
Fix ZPP of SplFileInfo::openFile()
2020-03-23 13:37:51 +01:00
Máté Kocsis
66fc55642c
Add stubs for SplFileInfo et al.
...
Closes GH-5287
2020-03-23 13:36:17 +01:00
Christoph M. Becker
4576da0aa7
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #79393 : Null coalescing operator failing with SplFixedArray
2020-03-23 13:31:25 +01:00
Christoph M. Becker
47c745555c
Fix #79393 : Null coalescing operator failing with SplFixedArray
...
We favor the KISS principle over optimization[1] – SPL is already
special enough.
[1] <https://github.com/php/php-src/pull/2489/commits/352f3d4476a79bb86136b431719df7394e5a8d4e#r112498098 >ff
2020-03-23 13:29:25 +01:00
Nikita Popov
e9c2dec720
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix RSA memory leak in mysqlnd auth
2020-03-23 12:01:15 +01:00
Nikita Popov
db08ef0d32
Fix RSA memory leak in mysqlnd auth
2020-03-23 11:55:22 +01:00
Nikita Popov
e88c7bf5c7
Fix signed integer overflow UB in dasm
...
Should hopefully fix the ubsan and community builds.
2020-03-23 11:12:42 +01:00
Nikita Popov
6766b5f9bc
Fix pointer UB in dynasm
...
Looks like newer GCC versions started warning about this.
2020-03-23 11:03:56 +01:00
Nikita Popov
adb7297b0f
Minor cleanup in spl_direcotry
...
* Rename variable for clarity
* Reduce section with replaced error handling
* Drop comment code line
2020-03-23 10:02:29 +01:00
ZoDream
28afaef6fa
Repair ext_skel.php to create the basic framework for a PHP extension
...
Copy the arginfo stubs file, and drop the %EXTNAME%_ to make things line up.
Closes GH-5289.
2020-03-23 09:25:06 +01:00
Tyson Andre
26b9780d02
Fix compilation error on mac with -Wshift-negative-value
...
Fix for mac OS build error seen in ccc49ead68
when shifting -1 (max argument count?)
```
ext/opcache/jit/zend_jit_trace.c:1668:2:
error: shifting a negative signed value is undefined
[-Werror,-Wshift-negative-value]
TRACE_FRAME_INIT(frame, op_array, 0, -1);
```
Closes GH-5284.
2020-03-23 09:24:26 +01:00
Tyson Andre
dcca0391e2
Skip ftruncate_bug76422 if disk_free_space() <= 4GB
...
Followup to https://github.com/php/php-src/pull/5043
In the middle of running this test with TESTS=-j9,
run-tests.php stopped the test suite because the partition started
with 3.5GB of free disk space and new test files couldn't be created.
Reclaiming the disk space of that file also took a while.
Closes GH-5283
2020-03-21 12:01:28 -04:00
Dmitry Stogov
4b8171e087
Add tracing JIT guards for INTI_FCALL_BY_NAME and INIT_NS_FCALL_BY_NAME
2020-03-20 16:59:02 +03:00
Remi Collet
d12b4c3c24
bump zip version
2020-03-20 14:08:57 +01:00
Christoph M. Becker
7defa7e883
Note that active => true has to be kept for $QA_RELEASES
...
Otherwise the bug tracker and test failure reporting will not work as
intended (and maybe there are even more issues).
2020-03-20 14:00:11 +01:00
Dmitry Stogov
3715475381
JIT for INIT_NS_FCALL_BY_NAME
2020-03-20 15:36:40 +03:00
Remi Collet
57042ac23e
add missing test
2020-03-20 12:13:25 +01:00
Remi Collet
db62ad18f3
fix test, thanks Indrek
2020-03-20 12:13:25 +01:00
Dmitry Stogov
166bc64caf
CAST to the same type mat be JIT-ed as QM_ASSIGN
2020-03-20 13:31:55 +03:00
Remi Collet
a4d12f46d1
ZipArchive::open(): Using empty file as ZipArchive is deprecated
2020-03-20 11:27:42 +01:00
Remi Collet
217ff8132e
Merge branch 'PHP-7.4'
...
* PHP-7.4:
unneeded after fix
NEWS
NEWS
Fix Bug #79296 ZipArchive::open fails on empty file
2020-03-20 11:19:04 +01:00
Remi Collet
347d18b48e
unneeded after fix
2020-03-20 11:18:52 +01:00
Remi Collet
6c0f9c3fc6
NEWS
2020-03-20 11:17:29 +01:00
Remi Collet
98687abb1d
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
NEWS
Fix Bug #79296 ZipArchive::open fails on empty file
2020-03-20 11:16:38 +01:00
Remi Collet
51c57a9c67
NEWS
2020-03-20 11:16:08 +01:00
Remi Collet
8aab43c85d
Fix Bug #79296 ZipArchive::open fails on empty file
2020-03-20 11:14:58 +01:00
Dmitry Stogov
517c30b05f
JIT for FETCH_THIS
2020-03-20 12:33:41 +03:00
Derick Rethans
9c6bda3027
Merge branch 'PHP-7.4'
2020-03-20 09:31:46 +00:00
Derick Rethans
673a3ceaa2
Mention which categories to use for patch releases
2020-03-20 09:31:37 +00:00
Christoph M. Becker
825384c478
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix potential test conflict
2020-03-20 08:57:43 +01:00