0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 18:41:52 +00:00
Commit Graph

1157 Commits

Author SHA1 Message Date
Stefan Siegl
bf319f7620 run github action on pull/request push to php8 branch only 2024-09-29 18:11:48 +02:00
Stefan Siegl
b763f390d3 remove stray echo statement 2024-09-29 17:59:42 +02:00
Stefan Siegl
56eb76bd9a Check for libnode (additional/instead of libv8) 2024-09-29 10:05:47 +02:00
Stefan Siegl
9f854c5343 remove remains of old travis/jenkins/vagrant testenv stuff 2024-09-28 23:59:01 +02:00
Stefan Siegl
01b5948a94
Merge pull request #535 from JoshuaBehrens/feature/ci-tests
Add github workflow to test building and testing the extension
2024-09-28 21:41:13 +02:00
Stefan Siegl
4605c5b21e
Merge pull request #536 from stesie/support-v8-12.x
Support v8 12.x, retaining compatibility with 10.2
2024-09-28 21:40:47 +02:00
Stefan Siegl
4d4eccb3ad support both V8 10.x and 12.x 2024-09-28 18:09:43 +02:00
Joshua Behrens
fee0f81ba2
Add test build info to readme 2024-09-28 10:58:58 +02:00
Joshua Behrens
29e788aa1f
Add build cache for compiling v8 2024-09-28 04:22:51 +02:00
Joshua Behrens
128495208a
Install google depot tools with an action 2024-09-28 02:42:08 +02:00
Joshua Behrens
aef80cd1c1
Add github workflow to test building and testing the extension 2024-09-28 02:41:50 +02:00
Stefan Siegl
d0c4a3614d adapt V8 12.8 interceptor signatures 2024-09-28 00:48:30 +02:00
Stefan Siegl
888684b483 use v8::Global instead of v8::Persistent 2024-09-27 23:27:59 +02:00
Stefan Siegl
73e684f4a8 fix zend_string access issues & user after free in error handling code 2024-09-27 23:06:17 +02:00
Stefan Siegl
cba24df614 adapt v8 api change, closes #528 2024-09-27 23:06:17 +02:00
Stefan Siegl
aac40cd72e
Merge pull request #534 from stesie/bugfix/pr-532-more-robust-scanning
More robust scanning, override SEARCH_PATH by explicitly given dir
2024-09-24 20:56:27 +02:00
Stefan Siegl
d1af93e544 update build instructions 2024-09-21 00:15:10 +02:00
Stefan Siegl
ff1b080d2c also check for c++20 standard (and drop c++1y which is too old anyways) 2024-09-20 23:27:35 +02:00
Stefan Siegl
303ab95a90 More robust scanning, override SEARCH_PATH by explicitly given dir 2024-09-20 23:23:04 +02:00
Stefan Siegl
8edc8b65d8 Add missing include 2024-09-20 21:32:27 +02:00
Stefan Siegl
b4471849c8
Merge pull request #532 from JoshuaBehrens/feature/hassle-free-installation
Improve configureless installation on debian and redhat machines
2024-09-20 21:25:35 +02:00
Joshua Behrens
32aa91305d
Allow manual path assignments still match a {lib,include} pattern 2024-09-08 01:11:00 +02:00
Joshua Behrens
66d155679b
Restructure code so an always false condition is moved to skimming loop 2024-09-07 23:43:20 +02:00
Joshua Behrens
be6e1a809a
Add opinionated checks for installations on debian 12 and different architectures 2024-09-07 16:43:30 +02:00
Joshua Behrens
c01f24f5e4
Split include and lib directory variables
Solves #522
Solves #529
2024-09-07 16:09:53 +02:00
Stefan Siegl
ccf94d83b4
Merge pull request #531 from jkrzefski/patch-1
Update link to V8 version overview in README
2024-08-29 08:04:18 +02:00
Julian Krzefski
7aa2ffb979 Update link to V8 version overview in README 2024-08-25 16:14:20 +02:00
Stefan Siegl
1b521b3d58
Merge pull request #524 from redbullmarky/php8
Fixed compile issue against V8 12
2024-02-18 21:10:43 +01:00
Mark Grainger
7dcff4f3c9 Fixed compile issue against V8 12 2024-02-15 08:50:27 +00:00
Stefan Siegl
133bf61e05
Merge pull request #512 from chrisbckr/php8-v8js_to_zval_check_arraybuffer
Since ArrayBuffer has InternalFieldCount set to 2 by default, added !…
2023-02-27 12:09:49 +01:00
Christiano Becker
752cbdb8ac Since ArrayBuffer has InternalFieldCount set to 2 by default, added !isArrayBuffer() and !isArrayBufferView() to ensure that is PHP object 2023-02-27 08:03:22 -03:00
Stefan Siegl
21ed0f8ba9
Merge pull request #510 from chrisbckr/php8-tojson
Implements toJSON function that redirects to jsonSerialize
2023-02-22 20:26:04 +01:00
Christiano Becker
f696867dc2 Fixed tab-based indentation 2023-02-22 16:16:22 -03:00
Christiano Becker
34d944a9f5 toJSON: use zend_hash_find_ptr_lc instead of ZEND_HASH_FOREACH_STR_KEY_PTR 2023-02-22 16:13:13 -03:00
Christiano Becker
9cb0400f90 Added tests/tojson_001.phpt 2023-02-21 09:02:39 -03:00
Christiano Becker
c59982f129 Added toJSON Symbol that calls jsonSerialize if the php class exported implements JsonSerializable interface 2023-02-21 09:02:39 -03:00
Stefan Siegl
752cfa1d50
Merge pull request #509 from chrisbckr/php8-propagate_exception_magic_methods
Php8 propagate exception magic methods
2023-02-20 20:20:26 +01:00
Christiano Becker
35b5bff977 * Added test tests/php_exceptions_007.phpt 2023-02-20 14:59:41 -03:00
Christiano Becker
cfa5e722fb * Propagate exception when zend_read_property reads __get and throws an exception 2023-02-20 14:51:40 -03:00
Stefan Siegl
293a201d64
Merge pull request #508 from chrisbckr/php82-AllowDynamicProperties
PHP 8.2 compatibility
2023-02-20 12:15:37 +01:00
Christiano Becker
fab7a68717 PHP 8.2 compatibility
* tests/array_access_002.phpt - added #[AllowDynamicProperties] to the class MyArray
* tests/js-construct-protected-ctor.phpt - some change on how pph8.2 Exepctions references the line that caused the exception, when some call have multiple lines (eg: the executeString in this test), now references the line where the command started (first line) instead of the last line.
* V8Js Object Export: added to not enumerate magic methods __serialize and __unserialize - this two methods was added to DateTime objects and was causing tests/var_dump.phpt failing.
2023-02-20 08:09:13 -03:00
Stefan Siegl
7515dde3b1
Merge pull request #507 from chrisbckr/php8-test_timezone_lc
* tests/timezones.phpt - added LC_ALL=C to prevent test failing when …
2023-02-20 11:26:24 +01:00
Christiano Becker
f24a8af0f5 * tests/timezones.phpt - added LC_ALL=C to prevent test failing when another locale is set as default 2023-02-20 07:13:41 -03:00
Stefan Siegl
eb61c4ddcf
Merge pull request #506 from redbullmarky/php8
Segfault fix when using empty()
2023-02-19 18:58:14 +01:00
Stefan Siegl
eb66c66cff
Merge pull request #505 from chrisbckr/php82-AllowDynamicProperties
* Added AllowDynamicPropertis on V8Js, V8Object and V8Function
2023-02-19 18:54:17 +01:00
Mark Grainger
79a46804dc empty() test 2023-02-18 15:12:29 +00:00
Mark Grainger
1e25cc8788 segfault fix when checking with empty 2023-02-18 14:58:43 +00:00
Christiano Becker
83431fbd52 * Added AllowDynamicPropertis on V8Js, V8Object and V8Function
* Added #[AllowDynamicProperties] on test classes that uses Dynamic Properties
2023-02-18 10:18:36 -03:00
Stefan Siegl
7c40690ec0
Merge pull request #503 from marekskopal/php8_0-build-fix
Fixed build on PHP 8.0.x
2023-02-08 20:42:37 +01:00
Marek Skopal
e06b382bd0
Fixed build on PHP 8.0.x 2023-02-08 14:04:03 +01:00