Nikita Popov
15846ff115
Add ZVAL_OBJ_COPY macro
...
For the common ZVAL_OBJ + GC_ADDREF pattern.
This mirrors the existing ZVAL_STR_COPY API.
2020-06-17 16:36:56 +02:00
Máté Kocsis
b516566b84
Convert CURL resources to objects
...
Closes GH-5402
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com >
2020-06-17 16:11:57 +02:00
Sara Golemon
1e095e3412
Update CREDITS
2020-06-17 13:04:01 +00:00
Dmitry Stogov
18347758d7
Improved JIT for SEPARATE_ARRAY
2020-06-17 14:45:25 +03:00
Dmitry Stogov
3830855a65
Tracing JIT support for PHP references in ASSIGN instruction
2020-06-17 12:24:51 +03:00
Nikita Popov
5aa649cf51
Merge branch 'PHP-7.4'
2020-06-17 09:35:19 +02:00
Nikita Popov
3d6199db8a
Add mbregex skipif
2020-06-17 09:35:02 +02:00
Dmitry Stogov
93aaf68088
cleanup
2020-06-17 10:32:53 +03:00
Christoph M. Becker
92c4b06513
Use ZEND_UNREACHABLE() instead of ZEND_ASSERT(0)
...
Instead of marking unreachable code with `ZEND_ASSERT(0)`, we introduce
`ZEND_UNREACHABLE()`, so that MSVC which does not consider `assert(0)`
to mark unreachable code does no longer trigger C4715[1] warnings in
debug builds. This may be useful for other compilers as well.
[1] <https://docs.microsoft.com/de-de/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4715?view=vs-2019 >
2020-06-16 18:39:09 +02:00
Dmitry Stogov
9ff3230c20
Merge exit points
2020-06-16 19:20:08 +03:00
Dmitry Stogov
626ccc45e4
Eliminate a dead check
2020-06-16 19:05:35 +03:00
Dmitry Stogov
8425214c1d
Tracing JIT support for PHP references in array related instructions
2020-06-16 17:59:04 +03:00
Máté Kocsis
2e18b30d44
Convert resource to object in Sysvshm extension
...
Closes GH-5499
2020-06-16 16:36:11 +02:00
Christoph M. Becker
aa754ba85e
FR #79344 : xmlwriter_write_attribute_ns: $prefix should be nullable
...
The `$prefix` parameter of `xmlwriter_write_element_ns()` and
`xmlwriter_start_element_ns()` is nullable, what allows these functions
to be used instead of their non NS variants. Consequently, we make the
`$prefix` parameter of `xmlwriter_write_attribute_ns()` and
`xmlwriter_start_attribute_ns()` nullable as well.
2020-06-16 15:50:01 +02:00
Nikita Popov
2c207ebe6b
Remove debug code from usleep()
...
This was added to debug CI failures, but ultimately didn't help
understand the macos timing issues. Drop it now so it's not
forgotten...
2020-06-16 14:51:58 +02:00
Nikita Popov
bbe74a6e3a
Merge branch 'PHP-7.4'
2020-06-16 14:32:33 +02:00
Nikita Popov
3f2f36d5d4
Fix non-default syntax in mb_ereg_search()
2020-06-16 14:31:29 +02:00
Dmitry Stogov
77d0587fdb
Use "lea" to add/sub register with constant
2020-06-16 14:04:05 +03:00
Dmitry Stogov
a459799910
Improved JIT for ZVAL_COPY_DEREF
2020-06-16 13:24:28 +03:00
Nikita Popov
c260613c6f
Optimize parallel test runner startup
...
Don't connect to each worker individually: First spawn all processes
and then establish connections in any order.
This avoids a ~1s wait when running on many cores.
2020-06-16 11:39:03 +02:00
David Carlier
15b2cc7c28
Implements an openpty wrapper for solaris based systems
...
This is only used by proc_open pty support, and as such declared
directly there.
2020-06-16 11:19:00 +02:00
David Carlier
727ae51a0c
Fix JIT build on solaris/illumos
...
thr_self to detect the proper thread identifier but all
related typedef'd types conflict with the vtune part.
2020-06-16 11:18:50 +02:00
Nikita Popov
8b822afb0c
Fix printf type
2020-06-16 10:57:29 +02:00
Jens de Nies
01be55fc00
Made sure zpp is always called and refactored some existing zpp calls.
...
Closes GH-5714
2020-06-16 10:45:14 +02:00
Jens de Nies
58a65c4b96
Fixed some oci8 tests.
...
Closes GH-5716
2020-06-16 10:38:06 +02:00
Dmitry Stogov
bdd8406372
Added JIT debug flag to dump the size of generated code (opcache.jit_debug=0x200)
2020-06-16 11:27:34 +03:00
Fabien Villepinte
293a0e797c
Fix typo
2020-06-15 21:32:01 +02:00
Dmitry Stogov
f04f7c3995
Added note
2020-06-15 17:21:32 +03:00
Dmitry Stogov
a92022f878
Fixed JIT
2020-06-15 15:35:02 +03:00
Dmitry Stogov
bb3d4456ee
Change GC_COLLECTABLE flag into GC_NOT_COLLECTABLE to simplify GC_MAY_LEAK() check
2020-06-15 14:26:22 +03:00
Dmitry Stogov
18f2ef094a
FETCH_FIM_R/IS JIT improvement
2020-06-15 12:15:56 +03:00
Nikita Popov
9b4601a65c
Fix typo in file cache job
2020-06-15 10:13:04 +02:00
Christoph M. Becker
63cb47a86b
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #79687 : Sony picture - PHP Warning - Make, Model, MakerNotes
2020-06-13 18:33:17 +02:00
Christoph M. Becker
59e343c779
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #79687 : Sony picture - PHP Warning - Make, Model, MakerNotes
2020-06-13 18:32:15 +02:00
Christoph M. Becker
5621c5faf8
Fix #79687 : Sony picture - PHP Warning - Make, Model, MakerNotes
...
Even if the length of a maker note does not match our expectations
(either because the maker note is corrupted, or because our
expectations do not quite match reality), there is no need to let
parsing fail; we can still go on parsing the other meta information.
2020-06-13 18:30:57 +02:00
Máté Kocsis
793823655e
Fix ZPP of OCI_Lob::free
2020-06-13 10:53:49 +02:00
Nikita Popov
cb0fa99174
Merge branch 'PHP-7.4'
2020-06-12 15:41:39 +02:00
Nikita Popov
8641d76f62
Drop freetype from i386
...
For some reason this seems to pick up the amd64 library (though
we do install the i386 one).
2020-06-12 15:41:05 +02:00
Nikita Popov
e0d2070108
Use shared setup.yml on azure
...
Make sure things stay synchronized between different x64 jobs.
2020-06-12 15:41:00 +02:00
Nikita Popov
50c87e92fc
Use GC stack in nested data removal
...
We should be doing this anyway to prevent stack overflow, but on
master this is important for an additional reason: The temporary
GC buffer provided for get_gc handlers may get reused if the scan
is performed recursively instead of indirected via the GC stack.
This fixes oss-fuzz #23350 .
2020-06-12 15:02:12 +02:00
Christoph M. Becker
b7a55aaff2
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #79676 : imagescale adds black border with IMG_BICUBIC
2020-06-12 14:09:16 +02:00
Christoph M. Becker
ff7fd3dc85
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #79676 : imagescale adds black border with IMG_BICUBIC
2020-06-12 14:07:43 +02:00
Christoph M. Becker
86e1f0ea11
Fix #79676 : imagescale adds black border with IMG_BICUBIC
...
We have to loop over all image pixels to avoid the black border. This
is also done in external libgd in `_gdScaleOneAxis` and `_gdScalePass`.
2020-06-12 14:05:54 +02:00
Nikita Popov
4f9a1122e1
Avoid out of range float to int cast in exif
...
Use convert_any_int instead of convert_any_format to directly get
an integer.
Also adjust SRATIONAL handling to not go through a double division.
This was introduced to avoid SIGFPE for the INT_MIN / -1 case,
but we can just handle that explicitly.
2020-06-12 12:54:41 +02:00
Nikita Popov
bf4f3ddb2f
Merge branch 'PHP-7.4'
2020-06-12 12:35:57 +02:00
Nikita Popov
09532a12a6
Suppress deprecation warning in sockets.c
...
This one was quite a journey...
2020-06-12 12:35:02 +02:00
Nikita Popov
2ba10ad0c5
Revert accidental change
...
Not sure how this happened, but I seem to have reverted
2fd278bc21
as part of
1386850838 .
Restore the change.
2020-06-12 11:34:01 +02:00
Nikita Popov
c7ad8a8738
Initialize indentation_uses_spaces field
...
This avoids reading a trap representation from _Bool,
but shouldn't matter as far as behavior is concerned.
2020-06-12 11:23:48 +02:00
Nikita Popov
88021ffe0e
Fix count_commas implementation
...
Ooops, I did not account for the changing length here.
2020-06-12 11:04:35 +02:00
Nikita Popov
f68a64a8a8
Fix null pointer UB in add_assoc_image_info()
...
And clean up this function a bit by reducing indentation and
variable scope.
2020-06-12 10:56:54 +02:00