Dmitry Stogov
7c8b3b2c96
Fix GH-15821: Core dumped in Zend/Optimizer/zend_inference.c:4062
2024-09-10 16:14:03 +03:00
Niels Dossche
201c691fab
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix buffer size configuration for AArch64
2024-09-09 22:02:52 +02:00
Niels Dossche
f8486c7ddc
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix buffer size configuration for AArch64
2024-09-09 22:02:46 +02:00
Niels Dossche
bcd1f23b30
Fix buffer size configuration for AArch64
2024-09-09 22:02:39 +02:00
Niels Dossche
90b91d3974
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-15658: Segmentation fault in Zend/zend_vm_execute.h
2024-09-09 20:26:50 +02:00
Niels Dossche
d2a5c98797
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-15658: Segmentation fault in Zend/zend_vm_execute.h
2024-09-09 20:26:44 +02:00
Niels Dossche
c1ffd4b484
Fix GH-15658: Segmentation fault in Zend/zend_vm_execute.h
...
Implement a minimal ZEND_MATCH handler using a tail call.
Closes GH-15782.
2024-09-09 20:26:16 +02:00
Niels Dossche
f56a659293
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-15661: Access null pointer in Zend/Optimizer/zend_inference.c
2024-09-09 20:12:07 +02:00
Niels Dossche
75f5cbf89e
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-15661: Access null pointer in Zend/Optimizer/zend_inference.c
2024-09-09 20:12:01 +02:00
Niels Dossche
86ef8d5466
Fix GH-15661: Access null pointer in Zend/Optimizer/zend_inference.c
...
Closes GH-15666.
2024-09-09 20:10:16 +02:00
Dmitry Stogov
d670ee7d03
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix OPcache tests under specific conditions
2024-09-09 10:00:47 +03:00
Dmitry Stogov
94f5ef09a0
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix OPcache tests under specific conditions
2024-09-09 10:00:41 +03:00
Go Kudo
d966c296d0
Fix OPcache tests under specific conditions
2024-09-09 10:00:25 +03:00
Dmitry Stogov
d0acf3012e
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix OPcache tests under specific conditions
2024-09-09 09:57:49 +03:00
Dmitry Stogov
fb2266b1ca
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix OPcache tests under specific conditions
2024-09-09 09:56:37 +03:00
Go Kudo
bca5f6e74f
Fix OPcache tests under specific conditions
2024-09-09 09:55:52 +03:00
Dmitry Stogov
faa1904fb6
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-15652: Segmentation fault in the Zend engine when JIT enabled (#15717 )
2024-09-02 21:59:14 +03:00
Dmitry Stogov
be8589651d
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-15652: Segmentation fault in the Zend engine when JIT enabled (#15717 )
2024-09-02 21:55:40 +03:00
Dmitry Stogov
1e78cf941c
Fix GH-15652: Segmentation fault in the Zend engine when JIT enabled ( #15717 )
2024-09-02 21:55:19 +03:00
Ilija Tovilo
b839c5f1af
Fix building of callgraph including preloaded symbols (GH-15545)
...
This issue was introduced in GH-15021. When building the call graph, we can now
see preloaded functions. However, building the call graph involves adding the
function to the caller list of the callee, which we don't want to do for
functions not coming from the script.
Fixes GH-15490
2024-08-26 17:22:04 +02:00
Gina Peter Banyard
a79c70f574
[RFC] Convert exit (and die) from language constructs to functions ( #13483 )
...
RFC: https://wiki.php.net/rfc/exit-as-function
2024-08-14 12:44:12 +01:00
Ilija Tovilo
2e9cc9bc30
Allow optimizer to depend on preloaded symbols ( #15021 )
...
* Allow optimizer to depend on preloaded symbols
It is safe for the optimizer to rely on preloaded symbols. This can occur when
compiling non-preloaded files, referencing preloaded ones.
* Disable inline pass for observer test
* Move duplicated code into functions
* Add comment to specific optimization value
* Optimizer should only rely on preloaded symbols in the symbol table
* Fix skipif for windows
2024-08-02 17:35:27 +02:00
Dmitry Stogov
53b329e278
Fix GH-15101: _ir_RSTORE: Assertion `ctx->control' ( #15153 )
2024-07-29 19:17:25 +03:00
Niels Dossche
5270ada34c
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix nightly failure in test variation due to number of temp variables varying when observers are enabled
2024-07-27 16:37:14 +02:00
Niels Dossche
950d010cc5
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix nightly failure in test variation due to number of temp variables varying when observers are enabled
2024-07-27 16:37:09 +02:00
Niels Dossche
4df858602a
Fix nightly failure in test variation due to number of temp variables varying when observers are enabled
2024-07-27 16:37:01 +02:00
Bob Weinand
e406ec81f4
Merge branch 'PHP-8.3'
2024-07-22 18:32:04 +02:00
Bob Weinand
61b455b59c
Merge branch 'PHP-8.2' into PHP-8.3
2024-07-22 18:30:10 +02:00
Bob Weinand
a18df90a8b
Fix GH-13817: Segmentation fault for enabled observers after pass 4
...
Instead of fixing up temporaries count in between observer steps, just apply the additional temporary in the two affected observer steps.
Closes GH-14018.
2024-07-22 18:28:03 +02:00
Ilija Tovilo
780a8280d2
[RFC] Property hooks ( #13455 )
...
RFC: https://wiki.php.net/rfc/property-hooks
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com >
2024-07-14 11:55:03 +02:00
Niels Dossche
1a07bb9252
Fix GH-14873: PHP 8.4 min function fails on typed integer
...
The problem is that this line in the VM: `ZVAL_NULL(result);` changes the type
of arg1 as well, because after the DFA pass the result and input both use
CV0($result).
We should not contract assignments with CVs in frameless calls with
arguments.
An older attempt is found at GH-14876 that tried to modify the VM/JIT.
Closes GH-14903.
2024-07-13 00:29:09 +02:00
Ilija Tovilo
706e9ed058
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Skip JIT test if php is compiled without jit
2024-05-23 16:35:58 +02:00
Ilija Tovilo
69a800151b
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Skip JIT test if php is compiled without jit
2024-05-23 16:35:51 +02:00
Ilija Tovilo
04c9749e35
Skip JIT test if php is compiled without jit
2024-05-23 16:35:29 +02:00
Ilija Tovilo
92b9543ca9
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix enabling of JIT at runtime
2024-05-22 14:33:33 +02:00
Ilija Tovilo
706e79761e
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix enabling of JIT at runtime
2024-05-22 14:33:25 +02:00
Ilija Tovilo
9506ca6001
Fix enabling of JIT at runtime
...
Fixes GH-14267
Closes GH-14294
2024-05-22 14:32:43 +02:00
Ilija Tovilo
1c30c5e707
Print location on class redeclaration
...
Fixes GH-13950
Closes GH-13999
2024-04-30 14:34:43 +02:00
Arnaud Le Blanc
326dc17bb4
Fix tests when stdout is unbuffered ( #13924 )
2024-04-16 13:49:11 +02:00
Tim Düsterhus
08b2ab22f4
Include the source location in Closure names ( #13550 )
...
* Include the source location in Closure names
This change makes stack traces involving Closures, especially multiple
different Closures, much more useful, because it's more easily visible *which*
closure was called for a given stack frame.
The implementation is similar to that of anonymous classes which already
include the file name and line number within their generated classname.
* Update scripts/dev/bless_tests.php for closure naming
* Adjust existing tests for closure naming
* Adjust tests for closure naming that were not caught locally
* Drop the namespace from closure names
This is redundant with the included filename.
* Include filename and line number as separate keys in Closure debug info
* Fix test
* Fix test
* Include the surrounding class and function name in closure names
* Fix test
* Relax test expecations
* Fix tests after merge
* NEWS / UPGRADING
2024-04-12 18:21:13 +02:00
Bob Weinand
6d848fa2de
Add zend_test.observer.enabled=0 to more tests
2024-04-10 01:17:10 +02:00
Bob Weinand
e9292c3d3d
Merge branch 'PHP-8.3'
2024-04-08 20:22:02 +02:00
Bob Weinand
5ead5c5a11
Merge branch 'PHP-8.2' into PHP-8.3
2024-04-08 20:19:46 +02:00
Bob Weinand
e48a5c14b9
Add zend_test.observer.enabled=0 to opcache tests asserting specific TMP count
...
Necessary to succeed when tests are run with zend_test.observer.enabled=1.
2024-04-08 20:16:35 +02:00
Bob Weinand
13c8d9317f
Merge branch 'PHP-8.3'
2024-04-08 15:25:00 +02:00
Bob Weinand
f52b2a9cdc
Merge branch 'PHP-8.2' into PHP-8.3
2024-04-08 15:10:29 +02:00
Bob Weinand
af098acd6e
Always load EX(opline) into the current frame in JIT when observers are enabled
...
Fixes #13772 .
Closes #13776 .
2024-04-08 15:09:14 +02:00
Bob Weinand
18496cc3d4
Merge branch 'PHP-8.3'
2024-04-02 18:13:10 +02:00
Bob Weinand
dbaeb62ab1
Merge branch 'PHP-8.2' of github.com:php/php-src into PHP-8.3
2024-04-02 18:11:55 +02:00
Bob Weinand
e7462bff19
Run one testsuite with observers enabled in CI ( #13869 )
...
Signed-off-by: Bob Weinand <bobwei9@hotmail.com >
2024-04-02 18:11:02 +02:00