Stefan Siegl
54e3a07bc8
make exception_start_column.phpt green again, closes #302
...
Test began to fail with V8 ~5.9.35 which started to report different
column numbers of errors. Adapt test so it works well with older
and newer versions of V8.
2017-03-14 07:28:24 +01:00
Stefan Siegl
397c5f0e09
load ext-dom for test, if available, refs #270
2017-03-12 10:09:59 +01:00
Stefan Siegl
346c47b657
skip long_int64 test on 32bit PHP versions
2017-03-08 07:58:38 +01:00
Stefan Siegl
b45bef46de
pick up int64 export test from issue #287
2017-03-08 07:54:48 +01:00
Stefan Siegl
3970fdebc7
Adapt test output to V8 5.7
2017-01-22 14:18:26 +01:00
Stefan Siegl
de71f83b7f
Merge pull request #252 from stesie/issue-246
...
Handle Z_TYPE == IS_REFERENCE well, fixes #246
2016-08-12 15:42:40 +02:00
Stefan Siegl
9d3ff2868c
Remove hard-coded pathname from test
2016-08-12 01:11:51 +02:00
Stefan Siegl
5ae48bbda7
Fix refcounting, use zval_ptr_dtor, closes #250
2016-08-12 01:02:56 +02:00
Stefan Siegl
8126fc4928
Handle Z_TYPE == IS_REFERENCE well, fixes #246
2016-08-11 18:54:38 +02:00
Stefan Siegl
802cdd350a
Drop tests/magic_func.phpt which got flaky
...
Most recent PHP7.0 versions implicitly call __isset before __get, which
older ones don't.
The test needs some major refactoring, after all the file is huge
and better split into smaller pieces.
2016-05-22 23:28:02 +02:00
Stefan Siegl
e9e90bac65
Merge remote-tracking branch 'origin/master' into php7
...
Conflicts:
config.w32
package.xml
php_v8js_macros.h
v8js.cc
v8js_array_access.cc
v8js_class.cc
v8js_convert.cc
v8js_exceptions.cc
v8js_object_export.cc
v8js_timer.cc
v8js_v8.cc
v8js_v8object_class.cc
2016-05-22 22:30:19 +02:00
Stefan Siegl
3d5f163899
skip time/memory limit tests on SKIP_SLOW_TESTS
2016-03-26 11:47:58 +01:00
Stefan Siegl
b0f761ae3b
Merge pull request #221 from stesie/fluent-setters-js
...
Retain object identity on JS-side 'return this'
2016-03-25 23:20:16 +01:00
Stefan Siegl
93b1118fe8
Retain object identity on JS-side 'return this'
2016-03-25 22:15:05 +01:00
Stefan Siegl
d44592910d
Retain object indentity on 'return $this'
2016-03-25 19:15:25 +01:00
Stefan Siegl
d6394301b2
Pass back V8Object instances, don't re-wrap
2016-03-25 17:40:43 +01:00
Stefan Siegl
12903ca269
add V8Js::setAverageObjectSize method
2016-03-08 09:28:16 +01:00
Stefan Siegl
bf6effba63
Merge remote-tracking branch 'origin/master' into php7
2016-03-05 22:21:42 +01:00
Stefan Siegl
87b29749b9
Merge pull request #207 from stesie/custom-snapshots
...
Handle V8 heap snapshots well + allow custom snapshot generation
2016-03-05 19:27:40 +01:00
Stefan Siegl
67269ddfc4
Adapt test expectations to V8 error message changes
...
V8 5.1 uses slightly changed SyntaxError messages.
This adapts our tests as needed (for support of V8 5.1 as well
as older versions)
2016-03-05 17:11:52 +01:00
Stefan Siegl
4df6e80be9
Add testcase on V8Js::createSnapshot
2016-03-05 14:12:19 +01:00
Stefan Siegl
3808f69dea
Adapt tests V8 3.24 also
2016-01-09 21:45:10 +01:00
Stefan Siegl
796ae85cb6
Adapt tests to different V8 versions
2016-01-09 21:36:30 +01:00
Stefan Siegl
4a8a8b812f
Add test that V8Js::__sleep and V8Js::__wakeup are final
2016-01-09 19:15:12 +01:00
Stefan Siegl
d438624a3d
Don't export V8Js methods even if overwritten
2016-01-09 19:11:30 +01:00
Stefan Siegl
1e86e2c9f7
Don't export methods of V8Js object to V8
2016-01-09 19:02:58 +01:00
Stefan Siegl
e2636b2e71
Skip Generator export tests if not supported
2016-01-09 14:24:49 +01:00
Stefan Siegl
dbe29d7e96
Add more tests on exported (PHP) Generator objects
2016-01-09 13:19:23 +01:00
Stefan Siegl
a18ae9e853
Implement JS-side wrapper around PHP Generator objects
2016-01-09 12:50:40 +01:00
Stefan Siegl
e0f990bfa1
Add test with private/protected methods, refs #183
2016-01-08 15:47:24 +01:00
Stefan Siegl
38b9c053a1
Enable V8Generator support on V8 >= 3.30.0
2016-01-08 00:12:06 +01:00
Stefan Siegl
a4b4934361
Relax EXPECTF, some V8 versions fail to provide the error location
2016-01-08 00:00:12 +01:00
Stefan Siegl
c500d0c21e
Add test on property passing on generators
2016-01-07 23:19:31 +01:00
Stefan Siegl
798a87e481
Add test on fatal errors within JS generators
2016-01-07 23:16:59 +01:00
Stefan Siegl
46fba810af
Add test on PHP exceptions thrown by JS generators
2016-01-07 23:15:13 +01:00
Stefan Siegl
479d14b5b0
Handle exceptions thrown in JS generators well
2016-01-07 23:12:43 +01:00
Stefan Siegl
6fa6f9316e
Test yield from JS generators
2016-01-07 23:00:45 +01:00
Stefan Siegl
f97a25b69c
Test & implement PHP-side instantiation of JS generators
2016-01-07 22:57:50 +01:00
Stefan Siegl
da64b9f055
Handle rewind on primed V8Generator
2016-01-07 22:48:01 +01:00
Stefan Siegl
e686603b89
Implement direct iteration on JS generators
2016-01-07 22:41:13 +01:00
Stefan Siegl
2c7a7ab87d
Implement PHP-side iteration of JS generator objects
2016-01-07 21:35:44 +01:00
Stefan Siegl
ef779d8250
minimalist V8 -> PHP generator passing
2016-01-07 20:41:40 +01:00
Stefan Siegl
0945749e7c
add basic test on issue #183
2016-01-07 13:44:40 +01:00
Stefan Siegl
adb8288061
Make set_time_limit tests slower
...
... to reduce the risk of false positives on slower (or busier) boxes.
2016-01-06 17:23:22 +01:00
Stefan Siegl
1d1b87bda3
skip extensions_error.phpt on Windows
2016-01-06 13:26:55 +00:00
Stefan Siegl
c2a2cc341f
Initialize libv8_platform for Windows as well
...
V8 doesn't work without libplatform anymore, even under
Windows.
Furthermore adapted two tests to \r\n vs. \n line
ending differences
2016-01-06 11:58:40 +00:00
Stefan Siegl
362eb0b806
Merge pull request #190 from stesie/warn-only-on-v8-errors
...
Don't abort PHP on fatal V8 errors, just warn about it
2015-12-31 21:42:00 +01:00
Stefan Siegl
2d34adb91f
Merge remote-tracking branch 'origin/master'
...
This primarily ports features introduced with V8Js 0.4.0
to the PHP7 branch.
2015-12-31 20:25:24 +01:00
Stefan Siegl
de23e8dba4
Don't abort PHP on fatal V8 errors, just warn about it
...
This way the PHP script can handle V8 errors gracefully
(and e.g. provide feedback to the user).
This especially changes behaviour when circular extension
dependencies happen (PHP code can go on, just V8 fails
to start). This also fixes memory leaks of V8 and V8Js
itself caused by bailing out directly otherwise.
2015-12-30 17:53:46 +01:00
Stefan Siegl
3c5508b956
Provide correct "this" on V8Object method invocation, closes #185
2015-12-26 12:16:17 +01:00